WP.org Plugin Submit
WordPress.org 外掛上架送審工具
Clean zip builder · Pre-upload preflight · Review rules with sources
English · 正體中文
This is an unofficial community project. It is not made by, endorsed by, or affiliated with WordPress.org, the WordPress Plugin Review Team or the WordPress Foundation. WordPress is a trademark of the WordPress Foundation.
What it does
Gets a WordPress plugin through the wordpress.org automated scan and manual review without re-uploading five times. The rules come from the Plugin Check source and the Plugin Handbook, not from memory.
| Area | What you get |
|---|
| Review rules | 70 rules for the scan and the review team (prefixes, nonces, sanitize / escape, enqueue, readme, policy, AI / MCP), each with source, link and trust level |
| Plugin Check data | 36 checks and 111 result codes extracted from Plugin Check 2.2.0, plus 58 scan / PHPCS codes mapped to a fix |
| Clean zip | build packs tracked HEAD, strips dev files and every dotfile, installs vendor with --no-dev, zip root = slug |
| Preflight | 10 checks on a zip or folder before upload; any FAIL exits 1 |
| Review emails | 15 reference pages: the fix and a reply paragraph for each review category, plus the sweep that stops the same issue coming back |
| Lookup | Chinese or English questions answered from data/, each with its source |
Look a rule up
python scripts/wporg.py lookup hidden_files
# [errors] hidden_files
# fix: Strip all dotfiles from the zip; remove .gitkeep from git
# trust: 官方原始碼 | source: Plugin Check file_type check; plugin-check 2.2.0 @ c563e26
Build and preflight
python scripts/wporg.py build # from the plugin's git root
python scripts/wporg.py preflight my-plugin-1.4.0.zip # PREFLIGHT PASS, exit 0
Problems it fixes
| Rejection | Fix in this skill |
|---|
Upload scan: hidden files, .git, node_modules | build strips them; preflight [1]-[3] catch leftovers |
| "Generic function/class names", prefix too short | Prefix rules from the WPCS sniff; preflight [7] |
| Nonce / capability / sanitize / escape findings | references/review-categories.md fix + reply; sweep commands per category |
Raw <script> / CDN scripts | references/enqueue.md; preflight [8] |
| Stable tag ≠ Version, Requires headers drift | preflight [4]-[5] |
| Same issue comes back next round | "Examples are a sample": grep the whole tree (references/real-review-lessons.md) |
When to use
| Use it for | Use something else for |
|---|
| Packaging a plugin for wordpress.org, first submission or update | General plugin architecture, hooks, Settings API → wp-plugin-development |
| Answering a review-team email or an automated-scan rejection | REST endpoint design → wp-rest-api; WooCommerce code → woocommerce |
| Bumping versions across header, constant and readme | Driving the SVN release with Pressship → wordpress-plugin-publish |
| Checking a private plugin against the security rules | Translating the plugin → tw-translate |
Install
| Need | For |
|---|
| Python 3.9+ | wporg.py and preflight (standard library only) |
| bash, git, tar, zip or PowerShell | build (Git Bash on Windows) |
| composer (optional) | build when the plugin needs vendor/ |
| phpcs + a ruleset (optional) | preflight [6] |
| Windows, macOS or Linux | Everything |
Step 1: Pick an install method
Claude plugin (Claude Code; the Claude directory once listed):