このプラグインは WordPress の最新3回のメジャーリリースに対してテストされていません。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress で使用した場合は互換性の問題が発生する可能性があります。

Debug Bar Query Count Alert

説明

Replaces the default text in the Debug Bar button (which is “Debug Bar” by default in English) with the page’s query count and total sql time. The button will be red if there were more than 200 queries or they took more than 1 second to run, and orange if the page required more than 100 queries or took more than 0.5 seconds to run.

Requires the Debug Bar plugin and for the constant SAVEQUERIES to be true.

Inspired by the Admin Bar on WordPress.com VIP, which offers similar functionality.

スクリーンショット

  • This is the normal state.
  • This is the notice state.
  • This is the warning state.

インストール

  1. Upload to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

FAQ

Can I alter the color-coded thresholds?

Yes, absolutely. In your theme or plugin, you can set these values as follows:

`

Lower the query count limits to 50 and 100

Debug_Bar_Query_Count_Button()->query_count_limits = array( 50, 100 );

Lower the query time limits to 250ms and 500ms

Debug_Bar_Query_Count_Button()->query_time_limits = array( 0.25, 0.5 );
`

評価

2件のレビューをすべて表示

貢献者と開発者

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

貢献者

“Debug Bar Query Count Alert” をあなたの言語に翻訳しましょう。

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

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

変更履歴

0.1

Brand new.