Skip to content

Add first-class Plugin Check sandbox command #167

Description

@chubes4

Summary

Add a first-class WP Codebox command for running the official WordPress Plugin Check inside a disposable Playground sandbox.

Why

WP Codebox is being productized as a WordPress development sandbox. Plugin Check is a canonical WordPress validation workload and should be discoverable as a stable sandbox capability instead of requiring every caller to hand-roll wordpress.wp-cli recipes.

Proposed command

wp-codebox run \
  --mount ./my-plugin:/wordpress/wp-content/plugins/my-plugin \
  --command wordpress.plugin-check \
  --arg plugin-slug=my-plugin \
  --artifacts ./artifacts \
  --json

Scope

  • Register wordpress.plugin-check in wp-codebox commands --json.
  • Mount/load the target plugin from /wordpress/wp-content/plugins/<slug>.
  • Ensure the official Plugin Check plugin is installed or loaded inside the sandbox runtime.
  • Run Plugin Check with machine-readable output, preferably strict JSON when available.
  • Normalize findings into a stable WP Codebox artifact shape.
  • Capture raw Plugin Check output and normalized findings in the artifact bundle.
  • Add smoke coverage for the command and artifact shape.

Non-goals

  • WordPress.org login or submission.
  • Plugin packaging policy.
  • SVN release workflows.
  • Replacing Pressship or Homeboy release orchestration.

Acceptance criteria

  • wp-codebox commands --json includes wordpress.plugin-check.
  • A simple plugin mounted into Playground can run the command successfully.
  • JSON output includes command, target plugin, exit code/status, summary counts, and findings.
  • Artifact bundle includes raw and normalized Plugin Check output.
  • Existing npm run check remains green or the new targeted smoke is documented if full check is too expensive locally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions