How to Identify and Clean Up Autoloaded Data in Your wp_options Table to Boost WordPress Dashboard Speed

XeroWP May 31, 2026 6 min read
How to Identify and Clean Up Autoloaded Data in Your wp_options Table to Boost WordPress Dashboard Speed

The Silent Performance Killer: Your wp_options Table

Have you ever noticed your WordPress dashboard becoming sluggish, even though you have plenty of server resources? You click 'Posts' or 'Settings' and wait several seconds for the page to load. While many users immediately look at their plugins or hosting plan, the culprit is often hidden deep within the database: the wp_options table.

Specifically, the issue usually stems from autoloaded data. Every time a page loads in WordPress—whether it is the front-end for a visitor or the back-end for an admin—WordPress queries the wp_options table and pulls every single row where the autoload column is set to 'yes'. If this table is bloated, your site is essentially dragging a heavy anchor through every single request.

In this guide, we will walk through exactly how to identify if your wp_options table is the problem, how to find the specific rows causing the bloat, and how to safely clean it up to restore your site's snappiness.

Understanding Autoloaded Data

The wp_options table is the central storage hub for your site's settings. It stores everything from your site title and URL to plugin settings and theme configurations. The autoload column is a simple 'yes' or 'no' toggle.

When autoload is set to 'yes', WordPress loads that setting into memory on every single page load using the wp_load_alloptions() function. This is great for settings used on every page, like your active theme name. However, many developers incorrectly set their plugin settings to autoload even if they are only needed on a specific settings page. Over years of installing and deleting plugins, these "orphaned" settings accumulate, leading to a massive amount of data being loaded unnecessarily.

Why Does This Slow Down the Dashboard?

When you access your WordPress admin, the system has to process all that autoloaded data. If you have 2MB or 5MB of autoloaded data, the PHP process has to allocate memory for it and the database has to transmit it for every single click. This creates a bottleneck that no amount of caching can fully solve if the database query itself is the drag.

Step 1: Measuring Your Autoloaded Bloat

Before you start deleting things, you need to know if you actually have a problem. You can do this via tools like phpMyAdmin or through the command line via WP-CLI.

To check the total size of your autoloaded data, run this SQL query:

SELECT SUM(LENGTH(option_value)) AS autoload_size_bytes FROM wp_options WHERE autoload = 'yes';

Interpreting the Results:

  • Under 500 KB: Excellent. Your site is well-optimized.
  • 500 KB to 1 MB: Normal for most established sites.
  • 1 MB to 3 MB: You are entering the "danger zone." You will likely notice some lag in the dashboard.
  • Above 3 MB: Critical. Your dashboard is almost certainly slow because of this bloat.

Step 2: Identifying the Heavy Hitters

If your autoloaded size is high, you need to find the specific rows that are taking up the most space. Use the following query to list the top 20 largest autoloaded options:

SELECT option_name, length(option_value) AS option_value_length 
FROM wp_options 
WHERE autoload = 'yes' 
ORDER BY option_value_length DESC 
LIMIT 20;

Common culprits often include:

  • Transients: Temporary data that should have been deleted but wasn't (e.g., _transient_feed_...).
  • Plugin Logs: Some plugins mistakenly store logs or debug info in the options table.
  • Page Builder Data: Some older page builders store large CSS chunks or layout configurations here.
  • Abandoned Plugin Settings: Settings from plugins you uninstalled months ago.

Step 3: Cleaning Up the Data Safely

Warning: Before performing any database operations, take a full backup of your database. One wrong delete query can break your site.

Methodology A: Removing Orphaned Data

Look at the option_name results from your query. If you see an option like pms_member_levels but you uninstalled the "Paid Member Subscriptions" plugin a year ago, that data is orphaned. You can safely delete it.

DELETE FROM wp_options WHERE option_name = 'pms_member_levels';

Methodology B: Disabling Autoloading

Sometimes you need the data, but it doesn't need to be loaded on every page. For example, a large configuration array for a plugin that only runs on a specific page can have its autoload status changed to 'no'.

UPDATE wp_options SET autoload = 'no' WHERE option_name = 'very_large_plugin_setting';

By changing it to 'no', WordPress will only fetch that data when a plugin specifically requests it using get_option('very_large_plugin_setting').

Methodology C: Cleaning Up Transients

Transients are meant to be temporary. If you have thousands of rows of expired transients, you can safely clear them. While WordPress should handle this automatically, it often fails on high-traffic sites or sites with specific object caching configurations.

DELETE FROM wp_options WHERE option_name LIKE '%_transient_%';

Step 4: Automating with Plugins

If you aren't comfortable with SQL, there are plugins that can help, though they should be used with caution:

  1. Advanced DB Cleaner: This is a powerful tool that specifically highlights orphaned options and allows you to categorize them.
  2. WP-Optimize: A great all-in-one tool for database maintenance that can help clean up expired transients and optimize table overhead.

However, even with these plugins, the manual SQL approach is often the most precise because it allows you to see the exact size of the data you are dealing with.

Preventing Future Bloat

Database hygiene is an ongoing process. To keep your XeroWP-hosted site running at peak performance, follow these best practices:

  1. Audit Your Plugins: Every few months, review your active plugins. If you aren't using one, don't just deactivate it—delete it. Many plugins run cleanup scripts upon deletion.
  2. Avoid "Heavy" Plugins: Some plugins are notorious for database bloat. Before installing a new plugin, check reviews or search for issues related to its database usage.
  3. Use Object Caching: On XeroWP, we recommend using Redis or Memcached. Object caching stores the results of database queries in memory. This means even if your wp_options table is slightly large, the system won't have to hit the disk for every request, significantly mitigating the speed impact.

Conclusion

A slow WordPress dashboard is often a symptom of a cluttered database rather than a lack of server power. By identifying and cleaning up your autoloaded data in the wp_options table, you can shave seconds off your load times and create a much smoother management experience.

At XeroWP, we believe your hosting should be invisible. We provide the high-performance infrastructure and tools you need so you can focus on building your site, not troubleshooting database queries. If you're tired of fighting with slow dashboards, experience the difference of managed WordPress hosting optimized for speed from the ground up.