finds orphaned options and allows for their removal from the wp_options table
The Clean Option plugin searches only PHP files in your blog's folders for get_option('option_name') and get_settings('option_name'). It does match slight variations such as get_option - space - ( - space - " etc. but there may be instances where files use values in the wp_options table that do not match these patterns. 2 of these alternate forms of syntax are looked for and if found, the plugin will display a warning to help you indentify options that may not really be orphaned.
Nor does the plugin find unused options. It finds orphaned options, that is, options that do not have any files that "get" their values. Some options are known to have been created by files that are temporary, such as during upgrade and back-up.
This plugin finds ALL of the "rss_hash" options, even those that are current. Rather than tasking the server with a script that identifies current options, this plugin indentifies options that are likely to be current based on their timestamp.
Because of these limitations, the fact that unused options in the wp_options table have only a negligible effect upon performance, and the unknown effects of removing needed options, only options that are known to have been orphaned or deprecated should be removed.
Yes. I honestly don't know why some hosts still offer PHP 4 as version 5 has been out for quite some time, but yes, this plugin works with PHP >= 4.2.0 and PHP 5. Because the Clean Options plugin uses native WordPress functions whenever possible, as long as WordPress works with PHP version 4 so will this plugin.
If you find any bugs with this plugin, please let me know. Many thanks to those that have reported problems with the plugin.
I have mixed feelings about the "Alternate Syntax" warnings. On the one hand, not having them may result with those less cautious accidentally deleting options that are not truly orphaned. On the other, having as much information about various situations available should be helpful in making wiser decisions about what options to delete. Alas, many plugins safely use "non-string" option names in their code, and in these cases the warning is not needed as there are no options associated with them listed. This introduces a proverbial "cry wolf" scenario that could be potentially annoying at best and distracting at worse. If you encounter such warnings (with a plugin from the WordPress plugin repository only, please), please leave a brief comment at the blog Alternate Syntax so I can analyze the plugin and add it to the "ignore" list if it is safe to do so. For those that would rather not see the Alternate Syntax Warnings every time, the show/hide feature can be used. The Alternate Syntax Warnings are not important when dealing with "rss_hash" options, but it is recommended that you show them before deleting any possibly orphaned plugin options.
The plugin attempts to remedy this in several ways. A "Delete ALL 'rss' Options" has been added to the plugin (see Other Notes - RSS Options). There is also a limited "Find" (see Other Notes - RSS Options) that will find rss_hash options limited to batches of various numbers of pairs.
Requires: 2.3 or higher
Compatible up to: 2.9.2
Last Updated: 7 years ago
Active Installs: 8,000+
Got something to say? Need help?