Options Optimizer

Optimizes options by changing autoload values or deleting orphaned options.

Author:Keith P. Graham (profile at wordpress.org)
WordPress version required:3.1
WordPress version tested:3.5
Plugin version:1.0
Added to WordPress repository:30-08-2012
Last updated:30-08-2012
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:90
Rated by:11
Plugin URI:http://www.blogseye.com
Total downloads:10 598
Active installs:1 000+
plugin download
Click to start download

The Options Optimizer allows you to change plugin options so that they don't autoload. It also allows you to delete orphan options.

In WordPress, some options are loaded whenever WordPress loads a page. These are marked as autoload options. This is done to speed up WordPress and prevent the programs from hitting the database every time some plugin needs to look up an option. Automatic loading of options at start-up makes WordPress fast, but it can also use up memory for options that will seldom or never be used.

You can safely switch options so that they don't load automatically. Probably the worst thing that will happen is that the page will paint a little slower because the option is retrieved separately from other options. The best thing that can happen is there is a lower demand on memory because the unused options are not loaded when WordPress starts loading a page.

When plugins are uninstalled they are supposed to clean up their options. Many options do not do any clean-up during uninstall. It is quite possible that you have many orphan options from plugins that you deleted long ago. These are autoloaded on every page, slowing down your pages and eating up memory. These options can be safely marked so that they will not autoload. If you are sure they are not needed you can delete them.

You can change the autoload settings or delete an option on the form below. Be aware that you can break some plugins by deleting their options. I do not show most of the built-in options used by WordPress. The options list should be just plugin options.

It is far safer to change the autoload option value to no than deleting an option. Only delete an option if you are sure that it is from an uninstalled plugin.

In order to see if the change in autoload makes any difference, you can view the source of your blog pages and look for an html comment that shows your current memory usage and the load time for the page. This is added to the footer by this plugin. This is an HTML comment so you will have to view the page source and look for something like:

Options Optimizer: 29 queries in 0.282 seconds. Memory Usage Current: 13,893,944, Peak: 14,272,364

Deactivate the plugin when not in use.