| 开发者 | cccode |
|---|---|
| 更新时间 | 2026年11月26日 03:41 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
$db->exec() or "eval" in a comment is not mistaken for the real thing. Only code that was not in the installed copy of the same file is reported, which keeps the list short.
Changelog between versions
The entries from readme.txt or CHANGELOG.md between your version and the new one, plus the Upgrade Notice. For a downgrade, the entries you would give up.
API and breaking changes
Functions, classes, public methods, hooks (actions and filters), REST routes, shortcodes, post types, blocks, options and capabilities the new version adds or removes, plus Composer libraries that were added, removed or updated. Removed names are what breaks themes, snippets and other plugins that rely on them.
Plugin file integrity check
Tools › Patchmark verifies installed plugins against the official WordPress.org checksums (SHA-256 or MD5) and lists files that were modified, added or are missing. See what changed opens a diff of your copy against the original from WordPress.org, so you can see exactly what was altered.
WP-CLI
wp patchmark diff, wp patchmark update and wp patchmark check print the same findings as a table, JSON or Markdown, and exit with status 1 on serious findings.
Export and share
Save a review as an HTML report (opens in any browser, prints to PDF), as Markdown for a ticket or pull request, or as a git-style .patch that git apply applies to the installed copy.
Also included
Go to the Plugins screen and click Review the changes first under the update notice. You get the changed files as a diff, the changelog between the two versions, and a list of new code worth reading. Then click Update, or leave the page to skip the update.
Go to Tools › Patchmark and click Check all plugins. Each plugin from WordPress.org is compared with the official checksums for its version. Changed plugins list the modified, added and missing files, and See what changed shows the differences line by line.
Yes, with WP-CLI: wp patchmark diff old.zip new.zip. Each side can be a zip, a folder, or the folder name of an installed plugin or theme.
Yes. Upload the new zip under Plugins › Add New (or Appearance › Themes › Add New) and Patchmark compares it with the installed copy. Premium plugins with their own updater usually get the Review the changes first link too, as long as WordPress has a download for the update. Only the integrity check needs WordPress.org, since that is where the checksums come from.
Patchmark shows what a downgrade would change and which changelog entries you would give up before you replace the installed copy. Replacing the files is done by WordPress, as usual.
No. Nothing loads on the front end, and in wp-admin Patchmark only runs on its own screens.
Yes. Tools › Patchmark › See a sample review builds a review of a made-up plugin's update in a temporary folder and removes it again. Nothing is installed. The Live Preview button on this page opens the same sample in WordPress Playground.
Tools › Patchmark › Guide (the question mark on that screen, or the Guide link under Patchmark on the Plugins screen) explains each part. On any review, the question mark in the top bar starts a short tour of the screen you're looking at.
There are none. The review appears on the upload screen when it has something to compare, and the integrity check is under Tools › Patchmark.
Yes, for theme zips you upload. Update reviews and the integrity check are for plugins, since WordPress.org only publishes checksums for plugins.
Plugins hosted on WordPress.org, at a version WordPress.org still has. Premium plugins and plugins from GitHub show as "can't check"; review their updates by uploading the zip.
wp patchmark diff woocommerce ~/woocommerce.9.4.0.zip
wp patchmark diff ./old-folder ./new.zip --format=markdown > review.md
wp patchmark update akismet --fail-on=warn
wp patchmark check --all --diff
Each side of diff can be a folder, a zip, or the folder name of an installed plugin or theme. --format is table, json or markdown. The commands exit with status 1 when there are serious findings (or, for check, changed plugins).
Plugins with up to 20,000 files. A plugin like Formidable Forms (about 1,800 files, 29 MB) is compared in well under a second. Files over 512 KB, and anything past 8 MB of changed text, are compared and checked but their contents are not shown, to keep the page light.
No. It points at changes worth reading. It can't prove a plugin is safe, and it reports things that are normal in some plugins (a membership plugin creates users).
wp patchmark diff, update and check, with table, JSON and Markdown output and an exit status for CI.