Linux 软件免费装
Banner图

Patchmark

开发者 cccode
更新时间 2026年11月6日 04:19
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

security plugin update integrity diff code review

下载

1.1.0 1.2.0 1.0.0

详情介绍:

When you upload a zip for a plugin or theme that is already installed, WordPress shows a small table (name, version, author, requirements) and a button to replace it. Patchmark takes over that screen and turns it into a proper review, with Cancel and Replace in its top bar. When there are serious findings, Replace takes a second click. The same review is available in three more places: Review Everything worth a second look, most serious first, each linked to the exact file and line: PHP is read with the tokenizer, so $db->exec() or "eval" in a comment is not mistaken for the real thing, and only code that was not in the installed copy of the same file is reported. Files Changelog The entries from readme.txt (or CHANGELOG.md) between the installed and the uploaded version, plus the Upgrade Notice for the new version. For a downgrade, the entries you would give up. API changes Functions, classes, public methods, hooks, REST routes, shortcodes, post types, blocks, scheduled events, admin screens, database tables, options and capabilities the new version adds or removes, plus Composer libraries that are added, removed or updated. Removed names are what breaks themes, snippets and other plugins that rely on them. Export Save any review as an HTML report (opens in any browser, prints to PDF), as Markdown for a ticket or pull request, or as a .patch. It is built in your browser from what is already on the page. Dark theme One click in the top bar. The choice is saved for your user and applies on every screen Patchmark shows. Light Nothing runs on the front end. On the upload screen Patchmark only steps in when the plugin or theme is already installed, and only files that changed are read. Reviews are never stored: leaving the page discards them. The only thing saved is your light or dark choice, as user meta. A clean review is not a guarantee. Only install code from sources you trust.

安装:

  1. Install and activate Patchmark.
  2. Upload a zip of a plugin or theme you already have installed (Plugins › Add New › Upload Plugin, or Appearance › Themes › Add New › Upload Theme), or click Review the changes first next to a plugin update.
  3. Read the review, then choose Replace or Update, or Cancel, in its top bar.
  4. To check installed plugins against WordPress.org, go to Tools › Patchmark.

屏幕截图:

  • The file browser with a split diff and word highlights.
  • Changelog entries between the two versions, with the upgrade notice.
  • API changes: removed and added functions, hooks and routes, and bundled libraries.
  • Tools › Patchmark: installed plugins checked against WordPress.org's checksums.
  • Reviewing an update from WordPress.org before installing it, in the dark theme.
  • The guided tour, here on the sample review.
  • The guide under Tools › Patchmark › Guide.

常见问题:

Can I try it without a zip?

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.

Where do I learn what everything does?

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.

Where are the settings?

There are none. The review appears on the upload screen when it has something to compare, and the integrity check is under Tools › Patchmark.

Does it work for themes?

Yes, for theme zips you upload. Update reviews and the integrity check are for plugins, since WordPress.org only publishes checksums for plugins.

Which plugins can the integrity check verify?

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.

How do I use it from the command line?

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).

How large a plugin can it handle?

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.

Is the code check a malware scanner?

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).

更新日志:

1.2.0 1.1.0 1.0.0