Plugin that tracks autoloaded options usage and allows the user to optimize them.
This plugin tracks which of the autoloaded options are used on a page, and stores that data at the end of page render. It keeps an array of options that it has seen as being used. On the admin page, it compares all the autoloaded options to the array of stored options, and shows the autoloaded options that have not been used as you were browsing the site. If you’ve been to every page on your site, or you’ve kept the plugin around for a week or so, this means that those options probably don’t need to be autoloaded.
Install this plugin, and go through your entire site. Best is to use it normally for a couple of days, or to visit every page on your site and in your admin manually. Then go to the plugin’s settings screen, and go through the unused options. You can either decide to remove an unused option (they might for instance be for plugins you no longer use), or to set it to not autoload. The latter action is much less destructive: it’ll still be there, but it just won’t be autoloaded.
Because the plugin needs to measure options being loaded, it benefits from being loaded itself first. As WordPress loads plugins alphabetically,
starting the name with AAA made sense.
Yes!! Backup your database.
Please use our GitHub for reporting bugs or making code suggestions. Feel free to use the forums for asking questions too, of course.
For security issues, please see the next question.
Please do a pull request via GitHub on this file in the plugin.
You can report security bugs through the Patchstack Vulnerability Disclosure Program. The Patchstack team help validate, triage and handle any security vulnerabilities. Report a security vulnerability.
known-plugins.json
.known-plugins.json
.Enhancements:
Implement the missing functionality to create an option with value false
when it’s being loaded but doesn’t exist.
The plugin now recognizes plugins from which the options came (thanks to a great pull by Rogier Lankhorst). If you’re a plugin developer and want your plugin’s options
properly recognized, please do a pull request on this file.
Small enhancements:
Bugs fixed:
KB
to the table heading, so that you can now properly sort numbers.popover
, as suggested with a great pull request by @rogierlankhorst.Fixed an error with values that are objects, not strings, which also caused sorting not to work for some people.
Initial release on GitHub and WordPress.org.