📝 WordPress: Fix a Bloated Autoload Option Slowing Every Page Load
Every row in wp_options marked autoload = ‘yes’ gets pulled into a single query (the alloptions cache) that WordPress runs on literally every page load, whether that specific page actually needs the option or not – it’s meant for small, universally-needed settings like the site URL or active plugins list. A plugin that stores a large serialized array with autoload left at its default ‘yes’ (an oversized transient it forgot to expire, a settings blob that keeps growing) adds real, fixed overhead to that one query on every single request, and because the slowdown is spread evenly across the whole site rather than concentrated in one slow query somewhere, it rarely shows up in an obvious way.
🔎 The Problem
SELECT option_name, LENGTH(option_value) AS size_bytes FROM wp_options WHERE autoload = 'yes' ORDER BY size_bytes DESC LIMIT 10; -- option_name size_bytes -- _transient_old_plugin_report_cache 4,812,003 <- loaded on EVERY page -- some_plugin_settings_blob 891,220 <- same
✅ The Fix
- Run the query above (or use the free Query Monitor plugin’s database panel) right after noticing a site-wide slowdown, to find the actual oversized autoloaded rows instead of guessing at a cause.
- Set autoload = ‘no’ directly on any option that doesn’t need to be present on every single page view – most transients already default to ‘no’, so a large autoloaded transient is usually a sign of a plugin bug worth reporting, not a setting to leave alone.
- When fully removing a plugin, use its own ‘Delete’ action (not just Deactivate) so it cleans up its own options table rows, and periodically audit wp_options for rows belonging to plugins that are no longer even installed.
🚨 Why This Is Dangerous
Because this slowdown touches every page equally, it tends to get misdiagnosed as ‘the hosting is too slow’ or ‘we need more caching’ – spending money and effort on infrastructure upgrades when the actual fix is removing a handful of oversized rows from one database table.
Autoload isn’t a convenience setting WordPress ignores – it’s a promise that an option is small and needed everywhere, and an unexamined ‘yes’ is a promise most plugins never actually checked.




