PHP Compatibility Checker

説明

WP Engine の PHP Compatibility Checker は、あらゆる Web サーバーで運用する WordPress で PHP バージョンの互換性を確認することができます。

このプラグインは、あなたの WordPress サイトにインストールしているテーマとプラグインのコードを構文的にチェックし、Tide が報告した互換性の問題を。互換性の問題はエラーと警告に分類され、問題のあるコードのファイルと行番号、およびその行のコードが選択した PHP のバージョンと互換性がない理由について情報を示します。このプラグインは、テーマとプラグインの更新を提案することもあります。新しいバージョンでは互換性のあるコードが提供される可能性があるためです。

このプラグインはテーマやプラグインのコードを実行しないので、ランタイムの互換性に関する問題を検出することはできません。

互換性の確認は完璧ではないことを理解してください。このプラグインでは、下位互換で使用する未知のコード/パスを互換性無しと判定することがあります。誤判定の可能性があるプラグインはプラグインのホワイトリストにまとめています。最も正確なチェック結果になるよう、継続して取り組んでいます。

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.

PHP 7.4 にアップデートする

  • このプラグインを使って、PHP 8.0とサイトとの互換性を確認しましょう !
  • 2022年7月現在、WordPress サイト全体の 8.52% は PHP 7.0 以前のバージョンで動作しています。
  • これらのバージョンの PHP は、2年以上前に非推奨およびサポート終了されています。
  • 最新の現行 PHP バージョンである PHP 8 で動作する WordPress は、全体の 7.1% です。

免責事項

このプラグインはできる限り多くの問題を正確に検出するよう作成していますが、100%確実な検出は非常に困難です。新しい PHP バージョンに移行する前に、総合テストの実施をお勧めします。

このプラグインは、WordPress コミュニティで最新 PHP バージョンの利用促進を支援する目的で WP Engine により作成しました。このプラグインへのコントリビューターを歓迎するとともに、開発者や WordPress を運用している方がどのように利用しているのか伺うことに興奮しています。

このプラグインにおける非公開のセキュリティに関する問題の詳細は、 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. WP Engine ホスティングアカウント以外でも動作しますか ?

はい、このプラグインはすべてのサーバーで運用する WordPress で利用することができます。

2. WP-CLI コマンドに対応していますか ?

このプラグインのバージョン 1.6.0 以降では、phpcompat WP-CLI コマンドは含まれなくなりました。もし、それを引き続き使用する必要がある場合は、このプラグインのバージョン 1.5.2 かそれより以前のバージョンをご利用ください。それらのバージョンは WP-CLI の機能を使用したコマンドで実行しているからです。

3. 作成したプラグインは互換性がないと表示されています。どうすればよいですか ?

誤判定の可能性があるプラグインはプラグインのホワイトリストにまとめています。もし、スキャン結果が誤っているプラグインがあれば、GitHub issue に Issue を追加するか、wordpress@wpengine.com 宛にプラグインに関する詳細な情報と、互換性に関する情報 (スキャン結果、互換性のテストに失敗したパスなど) を含めてメールで連絡をください。

4. WordPress 以外の PHP プロジェクトをテストするために使うことはできますか ?

はい ! このプラグインを使用して WordPress 以外のプロジェクトをテストすることはできませんが、プラグインで利用している Open Source PHPCompatibility Library を使用することが可能です。

5. どうして自分のプラグインやテーマがスキップされたのでしょうか ?

もし、あなたのプラグインやテーマが WordPress.org に無い場合、Tide はそのプラグインやテーマの調査ならびにその結果を提供することができません。

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. スキャンが途中で停止しました。何ができますか ?

このプラグインのバージョン 1.6.0 以降では、WordPress をホストするサーバーでの実行がなくなるため、スキャンが途中で停止する問題は発生しないはずです。もし WordPress.org で利用可能なプラグインやテーマから非常に遅い動作や応答のない結果が見られる場合は、この問題を報告してください。Tide チームが調査し、その特定のプラグインやテーマのバージョンが Tide の結果に表示されない理由を調べます。

7. バグを見つけたり、提案したいのですが、どのように貢献することができますか ?

はい ! 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.

評価

2023年10月27日
It hangs like many others say. No replies on the forum. You're giving people false hope.Just get it offline and focus on your other plugins (which are working very well, btw); you'll do yourself and many others a favor.
2023年5月19日
ran the plugin on quite a few sites and most timeout after a couple of plugins are tested. Lots of false positives and errors. surely there is a better plugin out there?
2023年5月9日
Useless! Gives a 404 error on plugins that ARE PHP 8 compatible. and then hangs. I've been waiting 30 minutes for it to unhang, and I finally gave up. It sure would be nice if this thing worked as advertised. Here's what I got: MaxButtons Pro 9.5.5 Response status: 404 Message: The audit requested does not exist. Am I supposed to know what that means? How do I fix it? Right now it's completely useless, and it hangs the software -- never goes any farther to get to the rest of my plugins. Not a bit of help as is.
2023年4月25日
Rates several themes and plugins as compatible, which definitely are not and have crashed under newer PHP versions (Random Text 0.3.0, WP Bakery 6.0.5, Slideshow 2.3.1 (dereg'd since Apr '22)) -- and has rated several themes and plugins as incompatible which seem to work fine under PHP 7.4 previous versions (Duplicator 1.5.3.1, LayerSlider WP 6.8.2, UpdraftPlus - Backup/Restore 1.23.3, WP Mail SMTP 3.7.0). So to have false evals of plugins and themes, both directions, makes this a useless tool and a waste of time. It's a great idea of course, but with the errors I've seen it means it can't even be relied upon to give some clues in a PHP problem hunt. If I'm missing something will happily change my tune -- because like ChatGPT, it sure gives some attractive, confident-looking answers! And linting ought not be so buggy as all this. Truly quite surprised.
2023年4月19日
Obviously the website's current php is working or the website wouldn't render. But you have no way to check future php versions and website compatibility. I wanted to see if my website would be compatible to PHP 8.0. This plugin redirects you to LocalWP .... whatever that is.
2023年4月7日
WordPress 6.2.0PHP 8.0 and 8.1PHP CC Plugin 1.6.1 Although plugin page says: "check your site for compatibility up to PHP 7.4!", I found when using the plugin it will automatically use whatever PHP version the site is using--up to PHP v8.0. Tried using 8.0 and then 8.1 but the results showed were still only up to 8.0. No errors, no problems, just results I could use. Based on screenshots shown on the plugin page, the new interface is very nice, make one choice then go. This is a no maintenance plugin - bonus!
130件のレビューをすべて表示

貢献者と開発者

PHP Compatibility Checker はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“PHP Compatibility Checker” は22ロケールに翻訳されています。 翻訳者のみなさん、翻訳へのご協力ありがとうございます。

“PHP Compatibility Checker” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

1.6.3

Fix issue where Buffer was not available to the scans.

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

  • ホワイトリストに登録のプラグイン一覧に Smart Plugin Manager を追加しました。

1.5.0

  • PHP 7.3 の互換性チェックを追加しました。

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

  • WP-CLI コマンドのバグを解決
  • ホワイトリストに PHP7 対応のプラグインを追加

1.0.2

  • 権限グループの保護をさらに追加しました。
  • 結果がより一目で分かるよう UI の色を変更しました。
  • node_modules と tmp ディレクトリをスキャンから除外しました。
  • 子テーマに関連する親テーマのスキャンに対応しました。

1.0.1

  • 互換性ライブラリにいくつかのバグ修正を加えて更新
  • チェックが途中で停止しないよう、スキップする処理を追加

1.0.0

  • PHP 7 サポートの確認を追加するためのメジャーアップデート
  • プログレスバーの UX を改善しました。
  • プラグインメニューの登録手順におけるバグを解決しました。

0.1.0

  • 最初のバージョン
  • PHP 5.5/5.4/5.3に対応しました。
  • 基本的な WP-CLI コマンド