[WordPress] 外掛分享: PHP Compatibility Checker

首頁外掛目錄 › PHP Compatibility Checker
WordPress 外掛 PHP Compatibility Checker 的封面圖片
200,000+
安裝啟用
★★☆☆☆
2.7/5 分(131 則評價)
824 天前
最後更新
0%
問題解決
WordPress 5.6+ PHP 5.6+ v1.6.3 上架:2016-06-28

內容簡介

WP Engine PHP Compatibility Checker 外掛可以讓任何 WordPress 網站在任何網頁主機上檢查 PHP 版本相容性。

此外掛會在 WordPress 檔案系統中 lint 主題和外掛程式碼,並回報相容性問題以便修復。相容性問題分為錯誤和警告,並列出有問題的程式碼檔案和行號,以及說明為何該行程式碼與所選的 PHP 版本不相容的資訊。此外掛也會建議更新主題和外掛程式,因為新版本可能提供相容的程式碼。

由於此外掛未執行您的主題和外掛程式碼,因此它無法偵測執行階段的相容性問題。

請注意,linting 程式碼並非完美的。此外掛無法偵測可能用於向後相容性的未使用程式碼路徑,因此可能顯示誤報。 我們維護一個插件白名單,可以引起誤報。 我們會持續努力確保檢查程式提供最準確的結果。

此外掛依賴 WP-Cron 在背景掃描檔案。如果網站的 WP-Cron 運行不正確,則掃描將會停止。有關更多信息,請參閱常見問題解答。

升級至 PHP 7.3

使用此外掛檢查您的網站是否符合 PHP 7.3 的相容性!
截至 2019 年 7 月,20.1% 的 WordPress 網站運行舊版 PHP 5.6 以下的版本。
這些 PHP 版本已於 2 年以上前不再維護。
只有 54.1% 的 WordPress 網站運行 PHP 7,這是當前主要版本的 PHP。

聲明

雖然此外掛已盡力檢測問題,但百分之百可靠的檢測很難保證。在遷移至新 PHP 版本之前,最佳做法是進行全面測試。

此外掛由 WP Engine 開發,協助 WordPress 社群推廣現代 PHP 版本。我們歡迎開發人員貢獻此外掛,期待看到其他開發者和 WordPress 網頁主機如何使用此外掛。

若有針對此外掛的安全性問題,請通過電子郵件 [email protected] 聯絡。

PHP Compatibility Checker 包括 WP-CLI 命令支援:

wp phpcompat <version> [--scan=<scan>]

<version>
PHP version to test.

[--scan=<scan>]
是否僅掃描活動中的外掛和佈景主題或全部外掛和佈景主題。
預設值: active
選項:
- active
- all

範例: wp phpcompat 7.2 --scan=active

外掛標籤

開發者團隊

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

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

原文外掛簡介

The WP Engine PHP Compatibility Checker can be used by any WordPress website on any web host to check PHP version compatibility.
This plugin will lint theme and plugin code installed on your WordPress site and give you back a report of compatibility issues as reported by Tide for you to fix. Compatibility issues are categorized into errors and warnings and will list the file and line number of the offending code, as well as the info about why that line of code is incompatible with the chosen version of PHP. The plugin will also suggest updates to themes and plugins, as a new version may offer compatible code.
This plugin does not execute your theme and plugin code, as such this plugin cannot detect runtime compatibility issues.
Please note that linting code is not perfect. This plugin cannot detect unused code-paths that might be used for backwards compatibility, and thus might show false positives. We maintain a whitelist of plugins that can cause false positives. We are continuously working to ensure the checker provides the most accurate results possible.
This plugin relies on Tide that constantly scans updated versions of plugins and themes in the background. Your scan results should be near real-time, but if not that just means Tide has not yet scanned your specific plugin or theme version. Please be patient as this may take up to 10 minutes for results to be returned from Tide. Please see the FAQ for more information.
Update to PHP 7.4

Use this plugin to check your site for compatibility up to PHP 8.0!
As of July 2022, 8.52% of WordPress websites run a PHP version older than PHP 7.0.
These versions of PHP have been deprecated and unsupported for over 2 years.
Only 7.1% of WordPress websites run PHP 8, the current main version of PHP.

Disclaimer
While this plugin is written to detect as many problems as accurately as possible, 100% reliable detection is very difficult to ensure. It is best practice to run comprehensive tests before you migrate to a new PHP version.
The plugin was created by WP Engine to help the WordPress community increase adoption of modern PHP versions. We welcome contributors to this plugin, and are excited to see how developers and other WordPress hosts use this plugin.
To disclose security issues for this plugin please email [email protected].

延伸相關外掛

文章
Filter
Apply Filters
Mastodon