[WordPress] 外掛分享: PHP Compatibility Checker

WordPress 外掛 PHP Compatibility Checker 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「PHP Compatibility Checker」是 2016-06-28 上架。
  • 目前有 200000 個安裝啟用數。
  • 上一次更新是 2023-12-14,距離現在已有 506 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 5.6 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
  • 有 129 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

cadic | pross | jcross | dkotter | rfmeier | jeffpaul | wpengine | octalmage | taylor4484 | stevenkword | ankit-k-gupta |

外掛標籤

php | php 7 | php 8 | compat | version |

內容簡介

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 [--scan=]


PHP version to test.

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

範例: wp phpcompat 7.2 --scan=active

原文外掛簡介

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

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「PHP Compatibility Checker」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.0 | 1.0.1 | 1.0.2 | 1.0.3 | 1.1.0 | 1.1.1 | 1.1.2 | 1.2.0 | 1.2.1 | 1.2.2 | 1.2.3 | 1.2.4 | 1.3.0 | 1.3.1 | 1.3.2 | 1.4.0 | 1.4.1 | 1.4.3 | 1.4.4 | 1.4.5 | 1.4.6 | 1.4.7 | 1.5.0 | 1.5.2 | 1.6.0 | 1.6.1 | 1.6.2 | 1.6.3 | trunk |

延伸相關外掛(你可能也想知道)

暫無相關外掛推薦。

文章
Filter
Apply Filters
Mastodon