[WordPress] 外掛分享: CompatNav – PHP Upgrade Checker

首頁 › 外掛目錄 › CompatNav – PHP Upgrade Checker
WordPress 外掛 CompatNav – PHP Upgrade Checker 的封面圖片
20+
安裝啟用
—
尚無評分
13 天前
最後更新
—
問題解決
WordPress 6.0+ PHP 7.4+ v1.2.0 上架:2026-09-27

內容簡介

CompatNav 是一款 PHP 升級檢查外掛,能夠在您或您的主機將網站升級至新版本的 PHP 之前,檢查所有安裝的外掛和佈景主題的程式碼,並清楚告訴您哪些部分會出現問題,哪些僅會顯示過時通知。

【主要功能】
• 檢查 PHP 8.0 到 8.5 的相容性
• 提供清晰的升級建議和待辦事項
• 針對網站特定的變更進行報告
• 生成可分享的 HTML 或 CSV 報告
• 掃描過程可隨時暫停、恢復或取消
• 完全在本地伺服器上運行,無外部請求

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「CompatNav – PHP Upgrade Checker」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Before you or your host move your site to a newer PHP version, CompatNav reads the code of every installed plugin and theme and tells you, in plain words, what will break and what will only show deprecation notices.
Documentation and guides: compatnav.com
What you get

One clear answer. “Safe to upgrade to PHP 8.5”, or “Not ready yet” with a short “What to do first” list.
Checks for PHP 8.0 to 8.5. 58 checks for the changes each PHP version brings, from removed functions to new deprecations. You choose the version you plan to move to.
Only what changes for your site. CompatNav compares the PHP version your site runs today with the one you choose, and reports only what changes between the two.
Few, meaningful results. Each check looks for exact code patterns, and code that is already protected (by a PHP version check or function_exists()) is not reported. On three of the most-installed plugins (about 7,800 PHP files together), it reports 27 items for an upgrade from PHP 7.4 to 8.5 (tested in September 2026), all of them deprecation notices, each checked by hand.
Next steps you can act on. For each plugin and theme: whether an update is available, whether the code looks like your own, a plain explanation of each issue, and a before/after example for whoever maintains the code.
Reports to share. Download a self-contained HTML report (opens in any browser, can be printed to PDF) or a CSV file.
Built not to hang. The scan runs in short background steps with a progress bar, and you can pause, resume or cancel it. A file too heavy for your server’s memory is skipped and listed, and the scan continues. On a test site with 17 plugins and themes (8,374 PHP files), a full scan took about 70 seconds.

Private by design

The scan runs entirely on your own server. No code, file names or results are sent anywhere, and CompatNav makes no external requests.
It only reads files. It never runs or changes the code it checks.
It stores only scan results (file paths, line numbers, check IDs), never personal data.

Honest about its limits
CompatNav reads code; it does not run it. Some problems only appear when code runs with real data, and no code reader can see those. Files that could not be checked are listed with the reason, and while any active file could not be checked, the verdict never says “Safe to upgrade”.
Documentation and guides
The CompatNav website explains how to read the report and what to do when a plugin isn’t ready yet, with plain guides to PHP upgrades: PHP 8.2’s end of life, what changes in PHP 8.4 and 8.5, and how to fix a critical error after a PHP update.
Libraries
CompatNav includes PHP-Parser by Nikita Popov (BSD 3-Clause license), copied under CompatNav’s own namespace so it can never clash with another plugin’s copy.

延伸相關外掛

文章
Filter
Mastodon