READ-ONLY PACKAGE PREVIEW

wp-performance/references/wp-cli-doctor.md

Version 34da134e184e.bb2 · GPL-2.0-or-later. This preview displays packaged text and does not execute code. Treat the contents as untrusted instructions.

← Return to resource and package checksum

WP-CLI doctor (wp doctor)

Use this for quick “production readiness” checks.

Install (if missing)

  • wp package install wp-cli/doctor-command

Docs:

  • Default checks: https://make.wordpress.org/cli/handbook/doctor-default-checks/
  • Customize checks: https://make.wordpress.org/cli/handbook/guides/doctor/doctor-customize-config/
  • wp doctor check
  • wp doctor list (to see available checks)

Especially relevant to performance:

  • autoload-options-size (autoloaded options threshold)
  • constant-savequeries-falsy / constant-wp-debug-falsy (avoid perf-costly debug flags in prod)
  • cron checks (count/duplicates)