↑ ↓ select, Enter open, Esc close

Find the largest autoloaded options in WordPress

Adjust the values, the command updates live
user@server
wp option list --autoload=on --orderby=size_bytes --order=desc --fields=option_name,size_bytes --path=/var/www/vhosts/example.com/httpdocs | head -n 20

Shows the 20 largest options that WordPress loads into memory on every request. These are often leftovers from uninstalled plugins or bloated caches. Use --format=total_bytes instead of the field list to get the total size. Faster load times also help the Core Web Vitals.

Note: Do not delete options blindly. First find out which plugin creates them.

Open question before approval: Prüfen, ob --autoload=on seit WordPress 6.6 auch die neuen Werte auto-on und auto erfasst oder nur yes und on.

Also searched as

  • wordpress slow wp_options
  • autoloaded options too large
  • site health autoload warning

Related one-liners

All in WP-CLI

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.