SmartOptimizer is an out of the box PHP utility to improve your website performance using techniques such as minification and gzip compression.
How does it work?
SmartOptimizer stores compressed and minified files in a cache folder. So it doesn't need to repeat the process for further requests.
Where should I use it?
If your website has a lot of scripts and styles, and YSlow or Page Speed shows a low grade for it, then using SmartOptimizer might be useful to improve its performance.
Where should I avoid it?
Well, actually SmartOptimizer improves the front-end of your website not the back-end. In the back-end SmartOptimizer slightly increases cpu and memory usages. So it might cause problems for your server if you have a popular website with lots of visitors.
First of all your website must be hosted on an Apache web server with enabled rewrite module, otherwise it won't work out of the box for you.
- Download it from here.
- Extract it and upload smartoptimizer folder to your web root directory.
- SmartOptimizer needs write access to
smartoptimzer/cachefolder. Make sure it's writable.
- In the extracted files there is a .htaccess file beside smartoptimizer folder. If you don't already have a .htaccess file in your root directory, put this file in there, otherwise put smartoptimizer htaccess contents inside your own .htaccess at the beginning of the file.
- That's it. Now check your website to see if anything works correctly.
What is next?
Actually it's an old project of mine and I'm not satisfied with the quality of the code and its architecture. So I'm not willing to continue developing this project, but also this is the most popular project in my github account and I'm not going to abandon it. So I'm planning a whole rewrite of the project from scratch as soon as I can.