Skip to content

Performance

wp-autoload-audit

Audit WordPress autoloaded options

Measures WordPress autoloaded options, finds who owns the largest entries, and safely removes, deletes or changes what should not load on every request.

Area
Performance
Checked against
WordPress 7.1.2, WP-CLI 2.12.0
Last verified
26 September 2026
Files
SKILL.md, 7 references, 4 scripts

How it works

  1. 1Record WordPress, cache, options and autoload state with read-only checks.
  2. 2Measure loaded option counts, bytes, request cost and cache state.
  3. 3Find the owner of each large loaded option.
  4. 4Decide whether each option should stay loaded, switch off, be deleted or need source changes.
  5. 5Export affected rows and test the change and its undo on staging.
  6. 6Make one approved change, then repeat the same measurements.
  7. 7Verify changed options and watch the site for errors.

Use it when

  • Investigate a large or growing autoloaded options total.
  • Respond to the Site Health autoloaded options warning.
  • Trace slow uncached requests or an oversized alloptions cache entry.
  • Find options left behind after removing plugins or themes.

How it stays safe

  • Starts read-only and waits for owner approval before each change.
  • Exports the options table and affected rows before changes, with restore testing on staging.
  • Tests every change and its undo on staging before production.
  • Prints option names and sizes while keeping stored values and credentials private.

Install it

Copy the whole wp-autoload-audit folder into your agent's skills folder, not only SKILL.md.

git clone --depth 1 https://github.com/hamzaahmadaslam/agent-skills.git
cp -R agent-skills/wp-autoload-audit "<your agent's skills folder>/"

More skills in the collection

All 11 skills