Contributors: DavidAnderson, ruhanirabin, DNutbourne, aporter, snightingale, lumberhack
Donate link: https://david.dw-perspective.org.uk/donate
Tags: cache, optimizing, database, image optimize, performance, clean, spam, speed, caching, smush, smushing
Requires at least: 3.9
Tested up to: 5.3
Stable tag: 3.0.16
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Makes your site fast and efficient. It cleans the database, compresses images and caches pages. Cached sites attract more traffic and users.
== Description ==
WP-Optimize is a revolutionary, all-in-one plugin that cleans your database, compresses your images and caches your site.
Our cache feature is built around the world’s fastest caching engine. This simple, popular and highly effective tool has everything you need to keep your website fast and thoroughly optimized!
It does it in three clever ways:
* It allows you to clean and optimise your database.
* It gives you the option to compress your images.
* It allows you cache your pages, for super fast load times (read more caching information below).
Extensive tests show the cache feature alone can make WordPress sites faster than any other caching plugin available. But when you combine the cache with the database and image optimize features, the difference with alternative solutions is significant.
= 1. Cleans the database =
Your WordPress database stores everything that you need for your website – plus many things that you don’t. WP-Optimize clears out all of this unnecessary data, cleans up your tables and even retrieves space lost to data fragmentation.
Mobile-friendly and incredibly simple to use, it:
* Removes all unnecessary data (e.g. trashed/unapproved/spam comments, stale data) plus pingbacks, trackbacks and expired transient options
* Compacts/de-fragment MySQL tables with a button-press
* Detailed control of which optimizations you wish to carry out
* Carries out automatic weekly (or otherwise) clean-ups
* Retains a set number of weeks’ data during clean-ups
* Performs optimizations without the need for running manual queries
* Automatically trigger a pre-optimize backup via UpdraftPlus
* Show database statistics and potential savings
Why is this important?
* The tables in MySQL (the database that WordPress uses) will, over time, become inefficient as data is added, removed, moved around. Asking MySQL to optimize its tables every now and again will keep your site running as fast as possible. It won’t happen by itself.
* Every-time you save a new post or pages, WordPress creates a revision of that post or page. If you edit a post 6 times you might have 5 copy of that post as revisions. This quickly adds lots of rarely-used data to your database tables, making them unnecessarily bloated, and slower to access.
* There might be thousands of spam and un-approved comments in your comments table, WP-Optimize can clean and remove those in a single click.
* WP-Optimize reports which database tables have overhead and wasted spaces also it allows you to shrink and get rid of those wasted spaces.
* Automatically cleans your database every week and respects the “Keep last [selected number] weeks data” option.
= WP-Optimize helps you to: =
* Make space: When you edit a post or page on your website, WordPress automatically saves the new revision to the database. If you edit things a few times (and particularly if the post is long), your database soon gets clogged up with old revisions that just sit there, taking up valuable space. WP-Optimize removes these unnecessary post revisions, freeing up valuable Megabytes of data and increasing speed and efficiency. It also cleans up your comments table, removing all the spam and un-approved comments that have built up with a single click.
* Take control: WP-Optimize reports on exactly which of your database tables have overhead and wasted space, giving you the insight, control and power to keep your website neat, fast and efficient.
* Keep it clean and fast: Once enabled, WP-Optimize can run an automatic clean-up on a schedule, keeping a selected number of weeks’ data, according to your specification.
= 2. Compresses images =
Loading large images is often the biggest culprit in slowing your site’s loading time.
WP-Optimize also has an image-compression tool that uses cutting-edge lossy compression techniques to convert large images (which take a long time to load up) into compressed files saved in your image library, where they can be uploaded in an instant.
It enables you to compress PNG, JPG, GIF, BMP and TIF pictures up to 5MG in size, and it’s packed with other useful features, including:
* Bulk compression, allowing you to compress multiple existing images at the same time.
* Intelligent, multi-pass lossy compression algorithm, which gives you twice the compression with much less loss of resolution.
* ‘Restore Originals’ function, which allows you to retrieve or revert back to your original images at any point.
* Auto-compress function, which automatically compress images as they’re added to the site.
* EXIF Data-Keeping means image information is retained even once the image is compressed.
* ‘Compress Big Files function’ allowing you to compress images up to 64MB- much higher than any other plugin.
Smaller yet high quality images means significantly faster page loading times and frees up server space and bandwidth for more customers.
= 3. Caches pages =
Page caching is probably what will make the biggest difference to your website's performance.
Caching involves keeping dynamic data in a temporary storage area so that it can be retrieved in an instant. Caching is a sure-fire way to ensure that web pages load at lightning-fast speed.
Practically, our powerful yet simple cache feature generates the cache when a visitor visits any page or post on your site. WordPress processes the dynamic php files to generate that page, and we save it into a static html file in the cache folder, so that when the next user visits, the page is cached and doesn't need processing. This caching results in a much faster loading time, and gives a slight break to your server. So caching increases speed and performance while reducing the server's use of resources.
With minimal configuration, caching your site with WP-Optimize is easy to do thanks to a load of useful features, including:
* Cache preloading to ensure the cache is always ready and loaded.
* Device-Specific cache to ensure the optimized page version is always served.
* Advanced cache exclusion rules, so that you can cache almost anything by excluding logged in users, specific URLs or cookies.
* Browser Cache to instruct client browsers to reuse cached resources (HTML, CSS, JS) if no changes were made since the last request.
Overall WP-Optimize brings the best cache and optimization technology together in a single seamless plugin to make your WordPress site fast, lean and efficient.
= WP-Optimize Premium =
Our free version of WP-Optimize is great, but we also have an even more powerful Premium version with extra features that offer the ultimate in freedom and flexibility:
* Multisite Support: extends database optimisations so they function for multiple WordPress sites at a time. If you manage more than one website, you will need WP-Optimize Premium.
* Flexibility and Control: gives you the power to optimize select individual tables or a particular combination of tables on one or more WordPress websites, rather than having to optimize all database tables.
* Deleting unused and unwanted images: removes orphaned images from your WordPress site, plus images of a certain, pre-defined size.
* Sophisticated Scheduling: offers a wide range of options for scheduling automatic optimization. Specify an exact time and run clean-ups daily, weekly, fortnightly or monthly and perform any number of additional once off optimizations.
* Seamless Graphical User Interface: for superb clarity in scheduling and managing of multi-site optimizations.
* WP-CLI support: provides a way to manage optimizations from command-line interface if you have lots of sites
* Lazy Loading: load only the images and part of a web-page when it is visible to the user so they can see something very quickly.
* Optimization Preview: gives users the ability to preview, select and remove data and records available for optimization from the database.
* Premium support - caching is one of the most complex things you can do for a website, so premium support offers you peace of mind there’s someone to talk quickly to if you need any technical answers or help configuring the optimizations or cache settings for your website.
= Translations =
Translators are welcome to contribute to the plugin. Please use the [WordPress translation website](https://translate.wordpress.org/projects/wp-plugins/wp-optimize).
== Installation ==
There are 3 different ways to install WP-Optimize, as with any other wordpress.org plugin.
= Using the WordPress dashboard =
1. Navigate to the 'Add New' in the plugins dashboard
2. Search for 'WP-Optimize'
3. Click 'Install Now'
4. Activate the plugin on the Plugin dashboard
= Uploading in WordPress Dashboard =
1. Download the latest version of this plugin from https://wordpress.org/plugins/wp-optimize/
2. Navigate to the 'Add New' in the plugins dashboard
3. Navigate to the 'Upload' area
4. Select the zip file (from step 1.) from your computer
5. Click 'Install Now'
6. Activate the plugin in the Plugin dashboard
= Using FTP =
1. Download the latest version of this plugin from https://wordpress.org/plugins/wp-optimize/
2. Unzip the zip file, which will extract the wp-optimize directory to your computer
3. Upload the wp-optimize directory to the /wp-content/plugins/ directory in your web space
4. Activate the plugin in the Plugin dashboard
== Frequently Asked Questions ==
= Isn't it better to use a dedicated caching plugin to cache my site? =
We've built WP-Optimize around the most advanced and powerful caching technology. Our caching tests and feedback from real-world users show that the caching feature alone can make your site faster than any other cache plugin or optimization. See these speed test results.
= Is optimizing my database safe? =
Yes; optimizing does not involve any "tricks" or poking around in dangerous ways. It involves running routine clean-up operations using well-defined, common MySQL commands. Nevertheless, we always recommend backups, which cover every possibility; not just database malfunctions, but hackers, human errors, etc. We recommend UpdraftPlus.
= What savings can I expect to make? =
This is a "how long is string?" sort of question. It depends completely on your site - how big it is, how many users interact on it, how long it has been running, and when you last optimised it. However, the savings and speed-ups can be substantial; it is always worth making sure that your database is optimised.
= How do I get support? =
In our support forum, here: https://wordpress.org/support/plugin/wp-optimize/
= WP-Optimize does not make large savings on my database =
This is rare; it’s probably because you’re with a shared web hosting company that doesn’t allow scripts to run an optimize command via SQL statements (SQL "OPTIMIZE" instruction). Please consult your web hosting company on this matter.
= Is the plugin tried and tested? =
Yes - WP-Optimize is WordPress's #1 most-installed optimisation plugin, with over 800,000 users and a pedigree going back over 8 years.
= Does WP-Optimize support InnoDB tables? =
WP-Optimize will disable some features if it detects InnoDB tables. Optimization of the database tables on-disk is not available, but other clean up features would work.
= Can you help me restore my database? =
Not unless you have an existing backup. Please ensure that you make a backup of your entire database before using WP-Optimize for the first time, and when you upgrade to a major new version of it. We recommend UpdraftPlus.
= Are there any bugs in this plugin? =
The plugin is an ongoing work; that means that it is impossible to rule out unforeseen situations and bugs. So I would recommend you to test it out on your local system or make a backup of your database (just to be extra careful).
= How do I stop transient options from coming back automatically each time I clear them? =
When WordPress uses a particular transient, that specific transient is re-created automatically. So, it's normally for ones which are in active use to gradually re-appear. The best way to keep things optimal is to clear the transient options on a scheduled basis. For example, WordPress may create 50 transient option in a week. If you schedule WP-Optimize to clear these options on a weekly basis, you’ll have far fewer building up.
= The table size shows wrong / Not optimizing =
Please check your database for corrupted tables. That can happen, usually your web hosting company can run the repair command on the db.
= Which WordPress and PHP versions are supported? =
To use all features in the plugin, a minimum of version WordPress 4 with PHP 5.3 are required. But we do recommend to use the latest version of WordPress. Using PHP 7+ is also highly recommended, as our caching feature will work even faster.
= Which optimisation will make the biggest difference? =
This depends on your setup (theme, number and quality of plugins used, etc...), but generally, caching will make the biggest visible difference to your website's performance. Indeed, the cache functionality bypasses most of WordPress code to serve your pre-optimised cached pages directly to your visitor, significantly increasing the speed.
= What is caching, or page caching? =
"Caching", from Wikipedia: "In computing, a cache is a hardware or software component that stores data so that future requests for that data can be served faster; the data stored in a cache might be the result of an earlier computation or a copy of data stored elsewhere. A cache hit occurs when the requested data can be found in a cache, while a cache miss occurs when it cannot." — WP-Optimize cache does this by saving the page computed by WordPress on the disk. When a user visits a page, WP-Optimize will serve the cached page before WordPress is loaded. If the page wasn't cached before, it will be computed by WordPress, and WP-Optimize will then save the result to the cache.
= Why should I use a caching plugin on my website? =
You think your site is fast without caching? A caching plugin will make your website even faster. A faster cached website will increase SEO, it will improve your visitors experience. Caching will also save your server's resources.
= Is the WP-Optimize page cache compatible with Gutenberg and WordPress 5.0+? =
Yes, your Gutenberg pages will be cached, as well as those created with page builder plugins such as Elementor.
= How do I know my webpage is being cached (or why it isn’t)? =
If cache is enabled, and in order to see if your page is cached, use the “View Source” function in your web browser to view the page source. To find caching information, scroll down to the bottom, and you should see a line added by the cache: `