AAA Option Optimizer

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.

The plugin tries to detect the source of the autoloaded option, by recognizing the naming pattern.

How to use this plugin

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.

Frequently asked questions

Why the AAA prefix in the plugin name?

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.

Get the plugin

Want to get the plugin? Search for aaa option in your WP admin or download the plugin from WordPress.org!

Download

Download the plugin on WordPress.org:

GitHub

Want to follow development, submit an issue or a patch? Come to the GitHub repo.

Security issues

Please report security issues through our Patchstack VDP.