Skip to the guide
All guides

WooCommerce extensions

Review, build or debug WooCommerce extensions, from HPOS order access and checkout to payments, refunds, stock and scheduled jobs.

app WordPress DevKit 2.0.3checked reading 4 minutes

On this page

When to use it

Use this skill for code that touches orders, payments or checkout. It covers HPOS (high-performance order storage) order access, classic and block checkout, the Store API, gateways, refunds, stock, payment webhooks, Action Scheduler jobs and template overrides.

General plugin or REST problems belong to the plugin and REST skills.

Where it stops

  • Exploitable authorization, XSS or SQL injection in general plugin code: wp-devkit-security-review.
  • REST route design: wp-devkit-rest-api-development.
  • Plugin lifecycle and uninstall: wp-devkit-plugin-development.
  • Slowness that is measured and goes beyond WooCommerce internals: wp-devkit-performance-review.
  • Data upgrades: wp-devkit-migration-upgrade-review.

Run a review in Claude

With the plugin loaded, start a read-only review of a bounded target:

Text
/wp-devkit:woocommerce-review <target-path>

The short form /wp-devkit:woocommerce runs a quick scan.

Run a review in Codex, ChatGPT or Antigravity

Name the installed skill and keep the request small. Replace the target with your files or journey.

Text
$wp-devkit-woocommerce-dev
Review the target without editing files.
Read the project instructions and the skill's engineering contract first.
Separate confirmed findings from candidates and state the evidence and checks you could not run.

The engineering contract is the set of rules every DevKit skill follows. It defines how findings are classified and how severe each one is.

Reference files

The agent loads only the file that matches your task.

  • order-storage-and-hpos.md: used for order CRUD (create, read, update, delete), queries, admin screens, sync and WP-CLI.
  • checkout-blocks-and-store-api.md: used for hook parity between classic and block checkout, fields, the Store API, block payments and totals.
  • payments-refunds-and-stock.md: used for the gateway contract, order statuses, stock, refunds and how money is handled.
  • payment-and-job-reliability.md: used for webhooks, inbox and outbox patterns and Action Scheduler.
  • templates-sessions-and-performance.md: used for template overrides, fragments, sessions and product handling.

How a review runs

  1. The agent reproduces or describes the journey. It records the checkout type and the storage mode. A finding applies only to the modes with evidence.
  2. It traces each order read and write to its object: order CRUD, product CRUD or another post type. Direct post-meta use on things that are not orders is fine.
  3. It follows the money path: amount, currency, tax, shipping, coupon and refund. At each step it identifies who is authoritative, the provider event or the order state.
  4. For callbacks and jobs, it looks for the authentication step, the point where the work is durably accepted, the idempotency key (which keeps a repeated event from running twice) and the recovery path if a crash happens between steps.
  5. It compares overrides and extension points with the installed version, using a template diff, a hook table and the Store API route source.
  6. It confirms each candidate with a code path and, when possible, a runtime check on a disposable store. Otherwise it reports the candidate with the missing evidence.

Insufficient evidence is a valid result. The report says what could not be established, such as provider behavior, a live runner or a tax jurisdiction, and which check would settle it.

What you get back

A review starts with the result and the scope it covered. Each confirmed finding gives its severity, the file and line, who is affected, the trigger, the path that reaches it, the impact on money, stock or data, the confidence, a minimal fix and a regression test. Candidates and items that were not verified are listed apart.

An implementation report lists the boundaries changed, behavior before and after, the storage and checkout modes covered, commands run with their exit status, checks not run, residual risk and a rollback note. The rollback is a flag or a revert path. Data changes need a backup and restore plan.

Note

Reviews are read-only. A clean review covers only the inspected scope and does not certify the project. Ask for implementation as a separate, bounded task with a regression check.

Where to go next

Use review to fix to turn findings into a bounded change. Use Doctor and reports for environment and evidence tooling.