説明
WP Engine の PHP Compatibility Checker は、あらゆる Web サーバーで運用する WordPress で PHP バージョンの互換性を確認することができます。
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 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 7.4!
- As of July 2022, 8.52% of WordPress websites run a PHP version older than PHP 7.0.
- これらのバージョンの PHP は、2年以上前に非推奨およびサポート終了されています。
- Only 7.1% of WordPress websites run PHP 8, the current main version of PHP.
免責事項
このプラグインはできる限り多くの問題を正確に検出するよう作成していますが、100%確実な検出は非常に困難です。新しい PHP バージョンに移行する前に、総合テストの実施をお勧めします。
このプラグインは、WordPress コミュニティで最新 PHP バージョンの利用促進を支援する目的で WP Engine により作成しました。このプラグインへのコントリビューターを歓迎するとともに、開発者や WordPress を運用している方がどのように利用しているのか伺うことに興奮しています。
To disclose security issues for this plugin please email WordPress@wpengine.com.
インストール
Note: Go to ‘Plugins’ > ‘Add New’ in the WordPress admin and search for “PHP Compatibility Checker” and install it from there.
手動インストール手順:
1. phpcompat
を /wpengine-wp-content/plugins/
ディレクトリにアップロードしてください
2. WordPress 管理画面「プラグイン」メニューで、プラグインを有効にしてください
このプラグインの設定画面は、WordPress 管理画面 ツール => PHP Compatibility
メニューにあります。 サイトをスキャン
をクリックすると数分程度かけてスキャンを実施します。スキャン中はページを離れてもかまわず、後ほど設定画面に戻ることで結果を表示します。
FAQ
-
1. Will this work outside of the WP Engine hosting account?
-
はい、このプラグインはすべてのサーバーで運用する WordPress で利用することができます。
-
2. Are there WP-CLI commands available?
-
As of the 1.6.0 release this plugin no longer includes the
phpcompat
WP-CLI command. If you still require use of that command, then please run version 1.5.2 or older of this plugin as those versions extend WP-CLI and provide commands. -
3. A plugin I created is listed as not compatible, what should I do?
-
誤判定の可能性があるプラグインはプラグインのホワイトリストにまとめています。もし、スキャン結果が誤っているプラグインがあれば、GitHub issue に Issue を追加するか、wordpress@wpengine.com 宛にプラグインに関する詳細な情報と、互換性に関する情報 (スキャン結果、互換性のテストに失敗したパスなど) を含めてメールで連絡をください。
-
4. Can I use this to test non-WordPress PHP Projects?
-
はい ! このプラグインを使用して WordPress 以外のプロジェクトをテストすることはできませんが、プラグインで利用している Open Source PHPCompatibility Library を使用することが可能です。
-
5. Why was my plugin/theme skipped?
-
If your plugin or theme is not available on WordPress.org, then Tide will not be able to scan or return results of that plugin or theme.
If your plugin or theme is available on WordPress.org, but Tide is not immediately returning results than it likely means Tide has not yet audited that plugin or theme and within a few minutes results should be available once Tide completes its audit.
-
6. The scan is stuck, what can I do?
-
As of version 1.6.0 of this plugin, there should no longer be issues of the scan getting stuck as it no longer runs on your WordPress host server. If you are seeing significantly slow or unresponsive results from a plugin or theme that is available on WordPress.org, then please open an issue with those details for the Tide team to investigate why that specific plugin or theme version is not appearing in the Tide results.
-
7. I found a bug, or have a suggestion, can I contribute back?
-
はい ! WP Engine では、本プラグインに貢献することができる GitHub に公開のリポジトリがあります。Plugin GitHub に issue を立ててください。私たちは本プラグインを積極的に開発しており、プルリクエストを受けていることがいつもうれしいです。
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 WordPress@wpengine.com.
評価
貢献者と開発者
PHP Compatibility Checker はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。
貢献者変更履歴
1.6.2
- Update packages.
1.6.1
- Fix issue on update where old files were included.
1.6.0
- Changed from running PHP Compatibility scans on your WordPress server to using scan data from Tide.
- Removed
phpcompat
WP-CLI command. - 依存関係を更新しました
1.5.2
- PHP 5.2 のチェックを削除しました。
- PHP 8 でプラグインがアンインストールできない問題を修正しました。
1.5.1
- Added Smart Plugin Manager to whitelisted plugins.
1.5.0
- Added support for PHP 7.3 compatibility checks.
1.4.8
- 依存関係を更新しました
1.4.7
- よりよい翻訳サポート。
1.4.6
- 誤検知を防ぐために新しい PHPCompatibilityWP ライブラリに切り替えました。
1.4.5
- スクリプトとスタイルのエンキューにプラグインのバージョン情報を使用するようにしました。
1.4.4
- PHP 5.2 & PHP 7.1 と 7.2 の構文チェックに対応します。
- プラットフォームごとにサイドバーの CTA (コール・トゥ・アクション) を更新しました。
1.4.3
- Composer の問題を解決しました。
1.4.1
- セキュリティ勧告を修正するため PHP_CodeSniffer を更新しました。
- 複数のプラグインをホワイトリストに追加しました。
1.4.0
- PHP エラーを直感的に表示し、スクロールが少なくて済むよう UX をアップデートしました。
- 技術者ではない方への機能として、開発者が PHP のエラー修正や、PHP 7対応のサーバー環境でのテストを支援するためのリンクを追加しました。
1.3.2
- 「Clean up」ボタンと uninstall.php を追加しました。
- phpcompat_phpversions のチェックを追加しました。
1.3.1
- 複数のプラグインをホワイトリストに追加しました。
1.3.0
- 「PHPCompatibility」を最新バージョンに更新しました。誤判定の多くが修正されたはずです。
- 言語を切り替え、管理画面にヘルプテキストを追加しました。
1.2.4
- Composer の問題を解決しました。
1.2.3
- 「PHPCompatibility」を最新バージョンに更新しました。
- 「TablePress」をホワイトリストに追加しました。
1.2.2
- 「UpdraftPlus」と「Max Mega Menu」をホワイトリストに追加しました。
1.2.1
- 「PHPCompatibility」を最新バージョンに更新しました。
1.2.0
- 「PHPCompatibility」を最新バージョンに更新しました。
- PHP 5.6に対応しました。
1.1.2
- WordPress の通知がプラグインのヘッダーを壊す問題を解決しました。
- JSON の送信と解析の方法を変更しました。
- 実行中のスキャンの再開ができるようになりました。
- Safari に対応するため download.js を v4.2 に更新しました。
1.1.1
- 実行中のジョブ表示のバグを解決しました。
- プログレスバーの計算方法を更新しました。
1.1.0
- テスト結果は、ページリロードしても残存します。
- テストに失敗した結果について、概要が表示されます。
- スキャン中にタイムアウトする事象について、絞り込みを設定することができるようになりました。詳細は FAQ を参照してください。
1.0.3
- Fixed a bug in the WP-CLI command.
- Added a handful of PHP 7 compatible plugins to the whitelist.
1.0.2
- Added additional role protections.
- Changed the UI colors to better understand output at a glance.
- Exclude checking node_modules and tmp directories.
- Added support for child theme’s parent theme.
1.0.1
- Updated compatibility library with a few bugfixes.
- Added skip logic to prevent checker from hanging.
1.0.0
- Major update to add PHP 7 checking support.
- Improved the UX of the progress bar.
- Fixed bug with the way the plugin menu was registered.
0.1.0
- Initial version.
- PHP 5.5, 5.4, and 5.3 Support.
- Basic WP-CLI Commands.