{ }
Resource profile / WordPress WP-CLI Operations
About this skill

Workflow & requirements

BB Skills installed path and bounded native evidence (2026-10-04)

Set BB_SKILL_DIR to the absolute directory containing this installed SKILL.md and supply the actual WordPress root via --path=/absolute/root; on PowerShell use $env:BB_SKILL_DIR in the command. The helper and every reference are bundled. Review WP-CLI on PATH and the target installation before running: commands bootstrap WordPress and may load plugin code. Use an authorized disposable or staging target and an external time limit; the helper has no built-in subprocess timeout.

BB Skills executed native diagnostic helpers against a fresh WordPress 7.1.2 / WP-CLI 2.12.0 installation with synthetic options and file markers. Results, environment versions, image identities and exact source hashes are in examples/native-cli-evidence.json. The example runner and setup are included; its WP-CLI PHAR and Node executable must be obtained and verified separately. This checks selected helper behavior, not an AI client's execution of the complete skill. runtime_tested remains false for that full-skill claim. No performance benchmark, real migration, persistent cache, multisite operation or production site was tested.

Read JSON readiness fields rather than trusting process exit 0: a missing WP-CLI or invalid target still produces a report. An unavailable doctor/profile subcommand is not a clean diagnostic result. File-presence signals do not establish plugin activation, a functioning cache or a speedup. Use the original sources and authoring notices retained under upstream-original and source-context to distinguish upstream instructions from BB Skills additions. All additions follow GPL-2.0-or-later.

The native operations inspector identified this single-site install, core version and configured URLs. No search-replace, import/export restore, cron execution, cache flush, plugin update, user management or network-wide write was executed. Plan, back up and verify those operations separately before using their documented commands on a real installation. The upstream helper source is unchanged.

WP-CLI and Ops

When to use

Use this skill when the task involves WordPress operational work via WP-CLI, including:

  • wp search-replace (URL changes, domain migrations, protocol switch)
  • DB export/import, resets, and inspections (wp db *)
  • plugin/theme install/activate/update, language packs
  • cron event listing/running
  • cache/rewrite flushing
  • multisite operations (wp site *, --url, --network)
  • building repeatable scripts (wp-cli.yml, shell scripts, CI jobs)

Inputs required

  • Where WP-CLI will run (local dev, staging, production) and whether it’s safe to run.
  • How to target the correct site root:
  • --path=<wordpress-root> and (multisite) --url=<site-url>
  • Whether this is multisite and whether commands should run network-wide.
  • Any constraints (no downtime, no DB writes, maintenance window).

Procedure

0) Guardrails: confirm environment and blast radius

WP-CLI commands can be destructive. Before running anything that writes:

  1. Confirm environment (dev/staging/prod).
  2. Confirm targeting (path/url) so you don’t hit the wrong site.
  3. Make a backup when performing risky operations.

Read: - references/safety.md

1) Inspect WP-CLI and site targeting (deterministic)

Run the inspector:

  • node "$BB_SKILL_DIR/scripts/wpcli_inspect.mjs" --path=<path> [--url=<url>]

If WP-CLI isn’t available, fall back to installing it via the project’s documented tooling (Composer, container, or system package), or ask for the expected execution environment.

2) Choose the right workflow

A) Safe URL/domain migration (search-replace)

Follow a safe sequence:

  1. wp db export (backup)
  2. wp search-replace --dry-run (review impact)
  3. Run the real replace with appropriate flags
  4. Flush caches/rewrite if needed

Read: - references/search-replace.md

B) Plugin/theme operations

Use wp plugin * / wp theme * and confirm you’re acting on the intended site (and network) first.

Read: - references/packages-and-updates.md

C) Cron and queues

Inspect cron state and run individual events for debugging rather than “run everything blindly”.

Read: - references/cron-and-cache.md

D) Multisite operations

Multisite changes can affect many sites. Always decide whether you’re operating:

  • on a single site (--url=), or
  • network-wide (--network / iterating sites)

Read: - references/multisite.md

3) Automation patterns (scripts + wp-cli.yml)

For repeatable ops, prefer:

  • wp-cli.yml for defaults (path/url, PHP memory limits)
  • shell scripts that log commands and stop on error
  • CI jobs that run read-only checks by default

Read: - references/automation.md

Verification

  • Re-run wpcli_inspect after changes that could affect targeting or config.
  • Confirm intended side effects:
  • correct URLs updated
  • plugins/themes in expected state
  • cron/caches flushed where needed
  • If there’s a health check endpoint or smoke test suite, run it after ops changes.

Failure modes / debugging

  • “Error: This does not seem to be a WordPress installation.”
  • wrong --path, wrong container, or missing wp-config.php
  • Multisite commands affecting the wrong site
  • missing --url or wrong URL
  • Search-replace causes unexpected serialization issues
  • wrong flags or changing serialized data unsafely

See: - references/debugging.md

Escalation

  • If you cannot confirm environment safety, do not run write operations.
  • If the repo uses containerized tooling (Docker/wp-env) but you can’t access it, ask for the intended command runner or CI job.
PACKAGE TRANSPARENCY

Inspect before installing

Source: WordPress · GPL-2.0-or-later · SHA-256 shown alongside the download.

23 files39972 ZIP bytes5 script/code files

License file included. A license and checksum are not a security certification. Review package instructions and scripts before running them.

View files and uncompressed sizes
Machine-readable installation guide →
CATALOG REVIEW NOTES

Know what you need before installing

Source and packaging checks recorded on 2026-10-04. These notes are not safety certification or measured task performance.

Requirements

Node.js and a reviewed WP-CLI on PATH, PHP, and an authorized WordPress installation with explicit --path/--url targeting. Upstream targets WordPress 7.0+ / PHP 7.4.0+. All skill references and the helper are included; reproduction requires separately verified official runtime binaries.

Costs, access & practical limits

Free source package. Native helper checks used only disposable synthetic data; no AI client, full skill, measured speedup, migration or production operation was tested. Helpers can exit 0 when not ready and have no built-in subprocess timeout. File presence does not establish activation or working cache. CLI operations can write/delete data and need appropriate targeting/backups. Optional profiler purchases are not required; no paid API or external account credential was used.

View the recorded checks
  • Every included upstream original matches pinned Git blob and SHA-256
  • All original references included and installed helper path resolves
  • GPL grant, full license text and explicit adaptation attribution preserved
  • Actual native original/adapted helper observations recorded with source hashes
  • No AI-client execution, performance benchmark or production operation claimed

Upstream commit: 34da134e184ef93d6fb8c074fed309e06b964f34

Runtime status: not tested by this catalog. Configure your client and test the skill in your own environment.

LICENSE & ATTRIBUTION

GPL license & upstream grant

This source package retains the upstream copyright and GPLv2-or-later grant alongside the complete GPLv2 text. Read both before adapting or redistributing it. Keep the notices and supply corresponding source as required by the applicable GPL terms.

GPL-2.0-or-later ↗

Original upstream GPLv2-or-later grant covering instructions, references, helper and source context

Attribution: Copyright (C) 2026 WordPress Contributors

Changes: Primary instructions adapted for installed helper path and scope notes. Upstream helper unchanged. BB Skills synthetic fixture and evidence added. Other upstream files unchanged.

Included notice: wp-wpcli-and-ops/LICENSE.upstream.txt

Declared source ↗

GPL-2.0-or-later ↗

Complete GPLv2 text accompanying upstream grant and same-license BB Skills additions

Attribution: Free Software Foundation, Inc.; BB Skills additions under same GPLv2-or-later terms

Changes: Full license text unchanged; additions identified in SOURCE.txt

Included notice: wp-wpcli-and-ops/GPL-2.0-or-later.txt

Declared source ↗
SCENARIOS

Inputs, criteria and recorded outcomes

Records are supplied by the site administrator and bound to a specific package. They are not third-party safety certification. This page does not execute skills.

Native WP-CLI operations inspector in a disposable single-site fixture

Reported passed · v34da134e184e.bb1

View input and acceptance criteria

Input

Run the exact packaged native helper in a fresh disposable WordPress installation with synthetic options and file markers; review dependency/target failures, recorded output and stated subset scope. No production target or AI client.

Acceptance criteria

Operations inspector: missing dependency and invalid target reports, installed version, single-site status and synthetic URLs. No migration, restore, cache flush, cron execution, multisite write or AI-client workflow tested.

Recorded outcome

Operations inspector: missing dependency and invalid target reports, installed version, single-site status and synthetic URLs. No migration, restore, cache flush, cron execution, multisite write or AI-client workflow tested.

Shared fixture: 30 observations across both native helpers; this record covers only the stated subset.

{
  "format": 1,
  "executed_at": "2026-10-04T10:51:10.664995+00:00",
  "environment": {
    "wordpress": "7.1.2",
    "php": "8.3.35",
    "database": "11.4.13-MariaDB-ubu2404",
    "seeded_options": [
      {
        "name": "bb_probe_yes",
        "autoload": "yes",
        "bytes": 10
      },
      {
        "name": "bb_probe_on",
        "autoload": "on",
        "bytes": 20
      },
      {
        "name": "bb_probe_auto_on",
        "autoload": "auto-on",
        "bytes": 30
      },
      {
        "name": "bb_probe_auto",
        "autoload": "auto",
        "bytes": 40
      },
      {
        "name": "bb_probe_no",
        "autoload": "no",
        "bytes": 50
      },
      {
        "name": "bb_probe_off",
        "autoload": "off",
        "bytes": 60
      },
      {
        "name": "bb_probe_auto_off",
        "autoload": "auto-off",
        "bytes": 70
      }
    ]
  },
  "node": "v22.23.3",
  "wp_cli": {
    "version": "2.12.0",
    "source": "https://github.com/wp-cli/wp-cli/releases/download/v2.12.0/wp-cli-2.12.0.phar",
    "sha512": "be928f6b8ca1e8dfb9d2f4b75a13aa4aee0896f8a9a0a1c45cd5d2c98605e6172e6d014dda2e27f88c98befc16c040cbb2bd1bfa121510ea5cdf5f6a30fe8832",
    "sha256": "ce34ddd838f7351d6759068d09793f26755463b4a4610a5a5c0a97b68220d85c",
    "bytes": 7142777,
    "checksum_source": "https://github.com/docker-library/wordpress/blob/b962e97ba0d6cfd8784a521fb9d05fc89aa180a9/cli/php8.3/alpine/Dockerfile"
  },
  "images": {
    "wordpress": {
      "tag": "wordpress:7.1.2-php8.3-apache",
      "id": "sha256:4abf7a450ee477dde967584f8174d7e03221d224c4971a0c38d84e7254426e64",
      "digests": [
        "wordpress@sha256:4abf7a450ee477dde967584f8174d7e03221d224c4971a0c38d84e7254426e64"
      ]
    },
    "database": {
      "tag": "mariadb:11.4",
      "id": "sha256:1292844148b311e4ed4300022a996d39083f415a963e970cf47cad1b3b18e3a6",
      "digests": [
        "mariadb@sha256:1292844148b311e4ed4300022a996d39083f415a963e970cf47cad1b3b18e3a6"
      ]
    },
    "node": {
      "tag": "node:22-trixie-slim",
      "id": "sha256:b26b04c123d9ff8ab646ceb18b9d75a1173acf64b9a401094b906d27b29338d4",
      "digests": [
        "node@sha256:b26b04c123d9ff8ab646ceb18b9d75a1173acf64b9a401094b906d27b29338d4"
      ]
    }
  },
  "observations": 30,
  "cases": [
    {
      "name": "wp-cli-version",
      "observed": "WP-CLI 2.12.0",
      "expected": "WP-CLI 2.12.0",
      "status": "passed"
    },
    {
      "name": "perf-missing-cli",
      "observed": false,
      "expected": false,
      "status": "passed"
    },
    {
      "name": "perf-missing-cli-process-exit",
      "observed": 0,
      "expected": 0,
      "status": "passed"
    },
    {
      "name": "ops-missing-cli",
      "observed": false,
      "expected": false,
      "status": "passed"
    },
    {
      "name": "ops-missing-cli-process-exit",
      "observed": 0,
      "expected": 0,
      "status": "passed"
    },
    {
      "name": "perf-wrong-path",
      "observed": false,
      "expected": false,
      "status": "passed"
    },
    {
      "name": "ops-wrong-path",
      "observed": false,
      "expected": false,
      "status": "passed"
    },
    {
      "name": "ops-core-version",
      "observed": "7.1.2",
      "expected": "7.1.2",
      "status": "passed"
    },
    {
      "name": "ops-single-site",
      "observed": false,
      "expected": false,
      "status": "passed"
    },
    {
      "name": "ops-siteurl",
      "observed": "http://bb-v43-cli-wp",
      "expected": "http://bb-v43-cli-wp",
      "status": "passed"
    },
    {
      "name": "perf-installed",
      "observed": true,
      "expected": true,
      "status": "passed"
    },
    {
      "name": "perf-core-version",
      "observed": "7.1.2",
      "expected": "7.1.2",
      "status": "passed"
    },
    {
      "name": "core-active-autoload-values",
      "observed": [
        "yes",
        "on",
        "auto-on",
        "auto"
      ],
      "expected": [
        "yes",
        "on",
        "auto-on",
        "auto"
      ],
      "status": "passed"
    },
    {
      "name": "synthetic-active-autoload-bytes",
      "observed": 100,
      "expected": 100,
      "status": "passed"
    },
    {
      "name": "upstream-cli-seeded-bytes-excludes-auto-values",
      "observed": 30,
      "expected": 30,
      "status": "passed"
    },
    {
      "name": "upstream-helper-underreports-active-bytes",
      "observed": 1578,
      "expected": 1578,
      "status": "passed"
    },
    {
      "name": "doctor-uninstalled",
      "observed": false,
      "expected": false,
      "status": "passed"
    },
    {
      "name": "profile-uninstalled",
      "observed": false,
      "expected": false,
      "status": "passed"
    },
    {
      "name": "file-presence-signals",
      "observed": [
        true,
        true,
        true,
        true
      ],
      "expected": [
        true,
        true,
        true,
        true
      ],
      "status": "passed"
    },
    {
      "name": "marker-plugins-not-activated",
      "observed": [],
      "expected": [],
      "status": "passed"
    },
    {
      "name": "actual-custom-content-directory",
      "observed": "/tmp/custom-wp-content",
      "expected": "/tmp/custom-wp-content",
      "status": "passed"
    },
    {
      "name": "actual-custom-marker-files",
      "observed": [
        true,
        true
      ],
      "expected": [
        true,
        true
      ],
      "status": "passed"
    },
    {
      "name": "upstream-custom-directory-false-negatives",
      "observed": [
        false,
        false,
        false,
        false
      ],
      "expected": [
        false,
        false,
        false,
        false
      ],
      "status": "passed"
    },
    {
      "name": "adapted-helper-autoload-equals-core-sql",
      "observed": 30136,
      "expected": 30136,
      "status": "passed"
    },
    {
      "name": "adapted-helper-resolves-custom-directory",
      "observed": "/tmp/custom-wp-content",
      "expected": "/tmp/custom-wp-content",
      "status": "passed"
    },
    {
      "name": "adapted-custom-directory-presence-signals",
      "observed": [
        true,
        true,
        true,
        true
      ],
      "expected": [
        true,
        true,
        true,
        true
      ],
      "status": "passed"
    },
    {
      "name": "adapted-default-directory-resolved",
      "observed": "/var/www/html/wp-content",
      "expected": "/var/www/html/wp-content",
      "status": "passed"
    },
    {
      "name": "adapted-default-no-marker-signals",
      "observed": [
        false,
        false,
        false,
        false
      ],
      "expected": [
        false,
        false,
        false,
        false
      ],
      "status": "passed"
    },
    {
      "name": "adapted-missing-cli-fails-readiness",
      "observed": false,
      "expected": false,
      "status": "passed"
    },
    {
      "name": "adapted-bad-path-fails-readiness",
      "observed": false,
      "expected": false,
      "status": "passed"
    }
  ],
  "reports": {
    "perf-missing-cli": {
      "process_exit": 0,
      "report": {
        "tool": {
          "name": "perf_inspect",
          "version": "0.1.0"
        },
        "target": {
          "path": "/var/www/html",
          "url": null
        },
        "wpCli": {
          "available": false,
          "info": {
            "ok": false,
            "status": null,
            "error": {
              "message": "spawnSync wp ENOENT",
              "code": "ENOENT"
            },
            "stdout": "",
            "stderr": "",
            "args": [
              "--allow-root",
              "--info"
            ]
          }
        },
        "wp": {
          "isInstalled": null,
          "coreVersion": null
        },
        "commands": {
          "doctor": {
            "available": false
          },
          "profile": {
            "available": false
          }
        },
        "perfSignals": {
          "autoloadTotalBytes": null,
          "hasObjectCacheDropin": null,
          "hasAdvancedCacheDropin": null,
          "hasQueryMonitorPlugin": null,
          "hasPerformanceLabPlugin": null
        },
        "notes": [
          "WP-CLI not available on PATH. Run in the intended environment (container/ssh) or install WP-CLI."
        ],
        "_runs": []
      }
    },
    "ops-missing-cli": {
      "process_exit": 0,
      "report": {
        "tool": {
          "name": "wpcli_inspect",
          "version": "0.1.0"
        },
        "wpCli": {
          "available": false,
          "info": {
            "ok": false,
            "status": null,
            "error": {
              "message": "spawnSync wp ENOENT",
              "code": "ENOENT"
            },
            "stdout": "",
            "stderr": "",
            "args": [
              "--allow-root",
              "--info"
            ]
          }
        },
        "wordpress": {
          "path": "/var/www/html",
          "url": null,
          "isInstalled": null,
          "coreVersion": null,
          "isMultisite": null,
          "siteurl": null,
          "home": null
        },
        "notes": [
          "WP-CLI not available on PATH. Install WP-CLI or run inside the intended container/environment."
        ]
      }
    },
    "perf-bad-path": {
      "process_exit": 0,
      "report": {
        "tool": {
          "name": "perf_inspect",
          "version": "0.1.0"
        },
        "target": {
          "path": "/not-a-wordpress-install",
          "url": null
        },
        "wpCli": {
          "available": true,
          "info": {
            "ok": true,
            "status": 0,
            "error": null,
            "stdout": "OS:\tLinux 6.12.111+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.111-1 (2026-09-28) x86_64\nShell:\t\nPHP binary:\t/usr/local/bin/php\nPHP version:\t8.3.35\nphp.ini used:\t\nMySQL binary:\t\nMySQL version:\t\nSQL modes:\t\nWP-CLI root dir:\tphar://wp-cli.phar/vendor/wp-cli/wp-cli\nWP-CLI vendor dir:\tphar://wp-cli.phar/vendor\nWP_CLI phar path:\tphar:///fixture/wp-cli.phar\nWP-CLI packages dir:\t\nWP-CLI cache dir:\t/root/.wp-cli/cache\nWP-CLI global config:\t\nWP-CLI project config:\t\nWP-CLI version:\t2.12.0",
            "stderr": "",
            "args": [
              "--allow-root",
              "--info"
            ]
          }
        },
        "wp": {
          "isInstalled": false,
          "coreVersion": null
        },
        "commands": {
          "doctor": {
            "available": false
          },
          "profile": {
            "available": false
          }
        },
        "perfSignals": {
          "autoloadTotalBytes": null,
          "hasObjectCacheDropin": null,
          "hasAdvancedCacheDropin": null,
          "hasQueryMonitorPlugin": null,
          "hasPerformanceLabPlugin": null
        },
        "notes": [
          "WordPress not detected at the given --path/--url (check wp-config.php and targeting)."
        ],
        "_runs": [
          {
            "cmd": "--allow-root --path=/not-a-wordpress-install core is-installed",
            "ok": false,
            "status": 1,
            "error": null
          }
        ]
      }
    },
    "ops-bad-path": {
      "process_exit": 0,
      "report": {
        "tool": {
          "name": "wpcli_inspect",
          "version": "0.1.0"
        },
        "wpCli": {
          "available": true,
          "info": {
            "ok": true,
            "status": 0,
            "error": null,
            "stdout": "OS:\tLinux 6.12.111+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.111-1 (2026-09-28) x86_64\nShell:\t\nPHP binary:\t/usr/local/bin/php\nPHP version:\t8.3.35\nphp.ini used:\t\nMySQL binary:\t\nMySQL version:\t\nSQL modes:\t\nWP-CLI root dir:\tphar://wp-cli.phar/vendor/wp-cli/wp-cli\nWP-CLI vendor dir:\tphar://wp-cli.phar/vendor\nWP_CLI phar path:\tphar:///fixture/wp-cli.phar\nWP-CLI packages dir:\t\nWP-CLI cache dir:\t/root/.wp-cli/cache\nWP-CLI global config:\t\nWP-CLI project config:\t\nWP-CLI version:\t2.12.0",
            "stderr": "",
            "args": [
              "--allow-root",
              "--info"
            ]
          }
        },
        "wordpress": {
          "path": "/not-a-wordpress-install",
          "url": null,
          "isInstalled": false,
          "coreVersion": null,
          "isMultisite": null,
          "siteurl": null,
          "home": null
        },
        "notes": [
          "WordPress not detected at the given path/url. Check --path/--url (multisite) and that wp-config.php is present."
        ]
      }
    },
    "ops-valid": {
      "process_exit": 0,
      "report": {
        "tool": {
          "name": "wpcli_inspect",
          "version": "0.1.0"
        },
        "wpCli": {
          "available": true,
          "info": {
            "ok": true,
            "status": 0,
            "error": null,
            "stdout": "OS:\tLinux 6.12.111+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.111-1 (2026-09-28) x86_64\nShell:\t\nPHP binary:\t/usr/local/bin/php\nPHP version:\t8.3.35\nphp.ini used:\t\nMySQL binary:\t\nMySQL version:\t\nSQL modes:\t\nWP-CLI root dir:\tphar://wp-cli.phar/vendor/wp-cli/wp-cli\nWP-CLI vendor dir:\tphar://wp-cli.phar/vendor\nWP_CLI phar path:\tphar:///fixture/wp-cli.phar\nWP-CLI packages dir:\t\nWP-CLI cache dir:\t/root/.wp-cli/cache\nWP-CLI global config:\t\nWP-CLI project config:\t\nWP-CLI version:\t2.12.0",
            "stderr": "",
            "args": [
              "--allow-root",
              "--info"
            ]
          }
        },
        "wordpress": {
          "path": "/var/www/html",
          "url": null,
          "isInstalled": true,
          "coreVersion": "7.1.2",
          "isMultisite": false,
          "siteurl": "http://bb-v43-cli-wp",
          "home": "http://bb-v43-cli-wp"
        },
        "notes": []
      }
    },
    "perf-valid": {
      "process_exit": 0,
      "report": {
        "tool": {
          "name": "perf_inspect",
          "version": "0.1.0"
        },
        "target": {
          "path": "/var/www/html",
          "url": null
        },
        "wpCli": {
          "available": true,
          "info": {
            "ok": true,
            "status": 0,
            "error": null,
            "stdout": "OS:\tLinux 6.12.111+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.111-1 (2026-09-28) x86_64\nShell:\t\nPHP binary:\t/usr/local/bin/php\nPHP version:\t8.3.35\nphp.ini used:\t\nMySQL binary:\t\nMySQL version:\t\nSQL modes:\t\nWP-CLI root dir:\tphar://wp-cli.phar/vendor/wp-cli/wp-cli\nWP-CLI vendor dir:\tphar://wp-cli.phar/vendor\nWP_CLI phar path:\tphar:///fixture/wp-cli.phar\nWP-CLI packages dir:\t\nWP-CLI cache dir:\t/root/.wp-cli/cache\nWP-CLI global config:\t\nWP-CLI project config:\t\nWP-CLI version:\t2.12.0",
            "stderr": "",
            "args": [
              "--allow-root",
              "--info"
            ]
          }
        },
        "wp": {
          "isInstalled": true,
          "coreVersion": "7.1.2"
        },
        "commands": {
          "doctor": {
            "available": false
          },
          "profile": {
            "available": false
          }
        },
        "perfSignals": {
          "autoloadTotalBytes": 28558,
          "hasObjectCacheDropin": false,
          "hasAdvancedCacheDropin": false,
          "hasQueryMonitorPlugin": false,
          "hasPerformanceLabPlugin": false
        },
        "notes": [
          "Tip: install WP-CLI doctor: `wp package install wp-cli/doctor-command`.",
          "Tip: install WP-CLI profile: `wp package install wp-cli/profile-command`."
        ],
        "_runs": [
          {
            "cmd": "--allow-root --path=/var/www/html core is-installed",
            "ok": true,
            "status": 0,
            "error": null
          },
          {
            "cmd": "--allow-root --path=/var/www/html core version",
            "ok": true,
            "status": 0,
            "error": null
          },
          {
            "cmd": "--allow-root --path=/var/www/html doctor --help",
            "ok": false,
            "status": 1,
            "error": null
          },
          {
            "cmd": "--allow-root --path=/var/www/html profile --help",
            "ok": false,
            "status": 1,
            "error": null
          },
          {
            "cmd": "--allow-root --path=/var/www/html option list --autoload=on --format=total_bytes",
            "ok": true,
            "status": 0,
            "error": null
          }
        ]
      }
    },
    "perf-presence": {
      "process_exit": 0,
      "report": {
        "tool": {
          "name": "perf_inspect",
          "version": "0.1.0"
        },
        "target": {
          "path": "/var/www/html",
          "url": null
        },
        "wpCli": {
          "available": true,
          "info": {
            "ok": true,
            "status": 0,
            "error": null,
            "stdout": "OS:\tLinux 6.12.111+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.111-1 (2026-09-28) x86_64\nShell:\t\nPHP binary:\t/usr/local/bin/php\nPHP version:\t8.3.35\nphp.ini used:\t\nMySQL binary:\t\nMySQL version:\t\nSQL modes:\t\nWP-CLI root dir:\tphar://wp-cli.phar/vendor/wp-cli/wp-cli\nWP-CLI vendor dir:\tphar://wp-cli.phar/vendor\nWP_CLI phar path:\tphar:///fixture/wp-cli.phar\nWP-CLI packages dir:\t\nWP-CLI cache dir:\t/root/.wp-cli/cache\nWP-CLI global config:\t\nWP-CLI project config:\t\nWP-CLI version:\t2.12.0",
            "stderr": "",
            "args": [
              "--allow-root",
              "--info"
            ]
          }
        },
        "wp": {
          "isInstalled": true,
          "coreVersion": "7.1.2"
        },
        "commands": {
          "doctor": {
            "available": false
          },
          "profile": {
            "available": false
          }
        },
        "perfSignals": {
          "autoloadTotalBytes": 28558,
          "hasObjectCacheDropin": true,
          "hasAdvancedCacheDropin": true,
          "hasQueryMonitorPlugin": true,
          "hasPerformanceLabPlugin": true
        },
        "notes": [
          "Tip: install WP-CLI doctor: `wp package install wp-cli/doctor-command`.",
          "Tip: install WP-CLI profile: `wp package install wp-cli/profile-command`."
        ],
        "_runs": [
          {
            "cmd": "--allow-root --path=/var/www/html core is-installed",
            "ok": true,
            "status": 0,
            "error": null
          },
          {
            "cmd": "--allow-root --path=/var/www/html core version",
            "ok": true,
            "status": 0,
            "error": null
          },
          {
            "cmd": "--allow-root --path=/var/www/html doctor --help",
            "ok": false,
            "status": 1,
            "error": null
          },
          {
            "cmd": "--allow-root --path=/var/www/html profile --help",
            "ok": false,
            "status": 1,
            "error": null
          },
          {
            "cmd": "--allow-root --path=/var/www/html option list --autoload=on --format=total_bytes",
            "ok": true,
            "status": 0,
            "error": null
          }
        ]
      }
    },
    "perf-custom-content": {
      "process_exit": 0,
      "report": {
        "tool": {
          "name": "perf_inspect",
          "version": "0.1.0"
        },
        "target": {
          "path": "/var/www/html",
          "url": null
        },
        "wpCli": {
          "available": true,
          "info": {
            "ok": true,
            "status": 0,
            "error": null,
            "stdout": "OS:\tLinux 6.12.111+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.111-1 (2026-09-28) x86_64\nShell:\t\nPHP binary:\t/usr/local/bin/php\nPHP version:\t8.3.35\nphp.ini used:\t\nMySQL binary:\t\nMySQL version:\t\nSQL modes:\t\nWP-CLI root dir:\tphar://wp-cli.phar/vendor/wp-cli/wp-cli\nWP-CLI vendor dir:\tphar://wp-cli.phar/vendor\nWP_CLI phar path:\tphar:///fixture/wp-cli.phar\nWP-CLI packages dir:\t\nWP-CLI cache dir:\t/root/.wp-cli/cache\nWP-CLI global config:\t\nWP-CLI project config:\t\nWP-CLI version:\t2.12.0",
            "stderr": "",
            "args": [
              "--allow-root",
              "--info"
            ]
          }
        },
        "wp": {
          "isInstalled": true,
          "coreVersion": "7.1.2"
        },
        "commands": {
          "doctor": {
            "available": false
          },
          "profile": {
            "available": false
          }
        },
        "perfSignals": {
          "autoloadTotalBytes": 28558,
          "hasObjectCacheDropin": false,
          "hasAdvancedCacheDropin": false,
          "hasQueryMonitorPlugin": false,
          "hasPerformanceLabPlugin": false
        },
        "notes": [
          "Tip: install WP-CLI doctor: `wp package install wp-cli/doctor-command`.",
          "Tip: install WP-CLI profile: `wp package install wp-cli/profile-command`."
        ],
        "_runs": [
          {
            "cmd": "--allow-root --path=/var/www/html core is-installed",
            "ok": true,
            "status": 0,
            "error": null
          },
          {
            "cmd": "--allow-root --path=/var/www/html core version",
            "ok": true,
            "status": 0,
            "error": null
          },
          {
            "cmd": "--allow-root --path=/var/www/html doctor --help",
            "ok": false,
            "status": 1,
            "error": null
          },
          {
            "cmd": "--allow-root --path=/var/www/html profile --help",
            "ok": false,
            "status": 1,
            "error": null
          },
          {
            "cmd": "--allow-root --path=/var/www/html option list --autoload=on --format=total_bytes",
            "ok": true,
            "status": 0,
            "error": null
          }
        ]
      }
    },
    "perf-adapted-custom-content": {
      "process_exit": 0,
      "report": {
        "tool": {
          "name": "perf_inspect",
          "version": "0.1.0"
        },
        "target": {
          "path": "/var/www/html",
          "url": null
        },
        "wpCli": {
          "available": true,
          "info": {
            "ok": true,
            "status": 0,
            "error": null,
            "stdout": "OS:\tLinux 6.12.111+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.111-1 (2026-09-28) x86_64\nShell:\t\nPHP binary:\t/usr/local/bin/php\nPHP version:\t8.3.35\nphp.ini used:\t\nMySQL binary:\t\nMySQL version:\t\nSQL modes:\t\nWP-CLI root dir:\tphar://wp-cli.phar/vendor/wp-cli/wp-cli\nWP-CLI vendor dir:\tphar://wp-cli.phar/vendor\nWP_CLI phar path:\tphar:///fixture/wp-cli.phar\nWP-CLI packages dir:\t\nWP-CLI cache dir:\t/root/.wp-cli/cache\nWP-CLI global config:\t\nWP-CLI project config:\t\nWP-CLI version:\t2.12.0",
            "stderr": "",
            "args": [
              "--allow-root",
              "--info"
            ]
          }
        },
        "wp": {
          "isInstalled": true,
          "coreVersion": "7.1.2",
          "contentDirectory": "/tmp/custom-wp-content",
          "pluginDirectory": "/tmp/custom-wp-content/plugins"
        },
        "commands": {
          "doctor": {
            "available": false
          },
          "profile": {
            "available": false
          }
        },
        "perfSignals": {
          "autoloadTotalBytes": 30136,
          "hasObjectCacheDropin": true,
          "hasAdvancedCacheDropin": true,
          "hasQueryMonitorPlugin": true,
          "hasPerformanceLabPlugin": true
        },
        "notes": [
          "Tip: install WP-CLI doctor: `wp package install wp-cli/doctor-command`.",
          "Tip: install WP-CLI profile: `wp package install wp-cli/profile-command`."
        ],
        "_runs": [
          {
            "cmd": "--allow-root --path=/var/www/html core is-installed",
            "ok": true,
            "status": 0,
            "error": null
          },
          {
            "cmd": "--allow-root --path=/var/www/html core version",
            "ok": true,
            "status": 0,
            "error": null
          },
          {
            "cmd": "--allow-root --path=/var/www/html doctor --help",
            "ok": false,
            "status": 1,
            "error": null
          },
          {
            "cmd": "--allow-root --path=/var/www/html profile --help",
            "ok": false,
            "status": 1,
            "error": null
          },
          {
            "cmd": "--allow-root --path=/var/www/html eval echo array_sum(array_map('strlen', wp_load_alloptions()));",
            "ok": true,
            "status": 0,
            "error": null
          },
          {
            "cmd": "--allow-root --path=/var/www/html eval echo json_encode(['content'=>WP_CONTENT_DIR,'plugins'=>WP_PLUGIN_DIR]);",
            "ok": true,
            "status": 0,
            "error": null
          }
        ]
      }
    },
    "perf-adapted-default-content": {
      "process_exit": 0,
      "report": {
        "tool": {
          "name": "perf_inspect",
          "version": "0.1.0"
        },
        "target": {
          "path": "/var/www/html",
          "url": null
        },
        "wpCli": {
          "available": true,
          "info": {
            "ok": true,
            "status": 0,
            "error": null,
            "stdout": "OS:\tLinux 6.12.111+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.111-1 (2026-09-28) x86_64\nShell:\t\nPHP binary:\t/usr/local/bin/php\nPHP version:\t8.3.35\nphp.ini used:\t\nMySQL binary:\t\nMySQL version:\t\nSQL modes:\t\nWP-CLI root dir:\tphar://wp-cli.phar/vendor/wp-cli/wp-cli\nWP-CLI vendor dir:\tphar://wp-cli.phar/vendor\nWP_CLI phar path:\tphar:///fixture/wp-cli.phar\nWP-CLI packages dir:\t\nWP-CLI cache dir:\t/root/.wp-cli/cache\nWP-CLI global config:\t\nWP-CLI project config:\t\nWP-CLI version:\t2.12.0",
            "stderr": "",
            "args": [
              "--allow-root",
              "--info"
            ]
          }
        },
        "wp": {
          "isInstalled": true,
          "coreVersion": "7.1.2",
          "contentDirectory": "/var/www/html/wp-content",
          "pluginDirectory": "/var/www/html/wp-content/plugins"
        },
        "commands": {
          "doctor": {
            "available": false
          },
          "profile": {
            "available": false
          }
        },
        "perfSignals": {
          "autoloadTotalBytes": 30136,
          "hasObjectCacheDropin": false,
          "hasAdvancedCacheDropin": false,
          "hasQueryMonitorPlugin": false,
          "hasPerformanceLabPlugin": false
        },
        "notes": [
          "Tip: install WP-CLI doctor: `wp package install wp-cli/doctor-command`.",
          "Tip: install WP-CLI profile: `wp package install wp-cli/profile-command`."
        ],
        "_runs": [
          {
            "cmd": "--allow-root --path=/var/www/html core is-installed",
            "ok": true,
            "status": 0,
            "error": null
          },
          {
            "cmd": "--allow-root --path=/var/www/html core version",
            "ok": true,
            "status": 0,
            "error": null
          },
          {
            "cmd": "--allow-root --path=/var/www/html doctor --help",
            "ok": false,
            "status": 1,
            "error": null
          },
          {
            "cmd": "--allow-root --path=/var/www/html profile --help",
            "ok": false,
            "status": 1,
            "error": null
          },
          {
            "cmd": "--allow-root --path=/var/www/html eval echo array_sum(array_map('strlen', wp_load_alloptions()));",
            "ok": true,
            "status": 0,
            "error": null
          },
          {
            "cmd": "--allow-root --path=/var/www/html eval echo json_encode(['content'=>WP_CONTENT_DIR,'plugins'=>WP_PLUGIN_DIR]);",
            "ok": true,
            "status": 0,
            "error": null
          }
        ]
      }
    },
    "perf-adapted-missing-cli": {
      "process_exit": 0,
      "report": {
        "tool": {
          "name": "perf_inspect",
          "version": "0.1.0"
        },
        "target": {
          "path": "/var/www/html",
          "url": null
        },
        "wpCli": {
          "available": false,
          "info": {
            "ok": false,
            "status": null,
            "error": {
              "message": "spawnSync wp ENOENT",
              "code": "ENOENT"
            },
            "stdout": "",
            "stderr": "",
            "args": [
              "--allow-root",
              "--info"
            ]
          }
        },
        "wp": {
          "isInstalled": null,
          "coreVersion": null
        },
        "commands": {
          "doctor": {
            "available": false
          },
          "profile": {
            "available": false
          }
        },
        "perfSignals": {
          "autoloadTotalBytes": null,
          "hasObjectCacheDropin": null,
          "hasAdvancedCacheDropin": null,
          "hasQueryMonitorPlugin": null,
          "hasPerformanceLabPlugin": null
        },
        "notes": [
          "WP-CLI not available on PATH. Run in the intended environment (container/ssh) or install WP-CLI."
        ],
        "_runs": []
      }
    },
    "perf-adapted-bad-path": {
      "process_exit": 0,
      "report": {
        "tool": {
          "name": "perf_inspect",
          "version": "0.1.0"
        },
        "target": {
          "path": "/not-a-wordpress-install",
          "url": null
        },
        "wpCli": {
          "available": true,
          "info": {
            "ok": true,
            "status": 0,
            "error": null,
            "stdout": "OS:\tLinux 6.12.111+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.111-1 (2026-09-28) x86_64\nShell:\t\nPHP binary:\t/usr/local/bin/php\nPHP version:\t8.3.35\nphp.ini used:\t\nMySQL binary:\t\nMySQL version:\t\nSQL modes:\t\nWP-CLI root dir:\tphar://wp-cli.phar/vendor/wp-cli/wp-cli\nWP-CLI vendor dir:\tphar://wp-cli.phar/vendor\nWP_CLI phar path:\tphar:///fixture/wp-cli.phar\nWP-CLI packages dir:\t\nWP-CLI cache dir:\t/root/.wp-cli/cache\nWP-CLI global config:\t\nWP-CLI project config:\t\nWP-CLI version:\t2.12.0",
            "stderr": "",
            "args": [
              "--allow-root",
              "--info"
            ]
          }
        },
        "wp": {
          "isInstalled": false,
          "coreVersion": null
        },
        "commands": {
          "doctor": {
            "available": false
          },
          "profile": {
            "available": false
          }
        },
        "perfSignals": {
          "autoloadTotalBytes": null,
          "hasObjectCacheDropin": null,
          "hasAdvancedCacheDropin": null,
          "hasQueryMonitorPlugin": null,
          "hasPerformanceLabPlugin": null
        },
        "notes": [
          "WordPress not detected at the given --path/--url (check wp-config.php and targeting)."
        ],
        "_runs": [
          {
            "cmd": "--allow-root --path=/not-a-wordpress-install core is-installed",
            "ok": false,
            "status": 1,
            "error": null
          }
        ]
      }
    }
  },
  "autoload_cross_check": {
    "autoload_values": [
      "yes",
      "on",
      "auto-on",
      "auto"
    ],
    "total_bytes": 30136,
    "excluded_bytes": 1578,
    "seeded_bytes": 100
  },
  "custom_content_truth": {
    "content_dir": "/tmp/custom-wp-content",
    "object_cache_exists": true,
    "query_monitor_file_exists": true
  },
  "source_hashes": {
    "perf.mjs": "5031a0ce0b81074cbf0fb69be5a60b8031de78f33fe2d6325c0d022165d6b688",
    "ops.mjs": "156d432ad3867fa9e8d53d09c0614350c4d9e2f6909b861779de9b137e0857c1",
    "setup-cli-fixture.php": "a4dac17c948ed6b8146960984cd9793ff3f308454ff10bc208ed00bf716640e6",
    "run-cli-fixture.py": "a30ea157743d0a563728f9e95a6079bade808012f76e564be16f105567bdc043",
    "perf-adapted.mjs": "345b9755174127c5c77e50d3ecf14cfbe4b96130b282341184740872b0f6d0b2"
  },
  "scope": "Actual upstream native helper execution, dependency/target checks, synthetic autoload values and file-presence signals. No AI client, speed benchmark, migration, persistent cache, multisite or production site tested.",
  "observed_upstream_limitations": [
    "WP-CLI 2.12.0 autoload=on excluded auto/auto-on values in the synthetic fixture",
    "Upstream helper assumes default wp-content and plugin paths; configured content directory produced false negatives"
  ],
  "adapted_helper_verified": true,
  "runtime_tested": false,
  "native_helpers_executed": true,
  "internal_network": true,
  "published_ports": false,
  "production_mounts_or_networks": false,
  "credentials_saved_or_exported": false,
  "external_ai_calls": false
}

Environment

WordPress 7.1.2; PHP 8.3.35; MariaDB 11.4.13; WP-CLI 2.12.0; Node.js 22.23.3. Internal disposable Docker network; no published ports or production mounts.

Package SHA-256: 6afdcc6b07491902f2494578fd122510fbbeb6531e9dcb67513e92b60403abd2

Outcome recorded: 2026-10-04 10:51 UTC

Community reviews

★ New

Be the first to share your experience.

Sign in to leave a review →

Guides using this resource

All guides →
Practical guide

Read WordPress diagnostic reports before changing a site

Read a WordPress diagnostic report before changing a site. Our disposable WordPress fixture exposed misleading autoload totals and default-path assumptions, then checked a revised…

By BB Skills · Read guide →

More to explore

View all ↗