Title: Debug Bar Query Count Alert
Author: Matthew Boynes
Published: <strong>2014 年 2 月 2 日</strong>
Last modified: 2014 年 2 月 2 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/debug-bar-query-count-alert.svg)

# Debug Bar Query Count Alert

 由 [Matthew Boynes](https://profiles.wordpress.org/mboynes/) 開發

[下載](https://downloads.wordpress.org/plugin/debug-bar-query-count-alert.0.1.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/debug-bar-query-count-alert/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/debug-bar-query-count-alert/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/debug-bar-query-count-alert/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/debug-bar-query-count-alert/#developers)

 [技術支援](https://wordpress.org/support/plugin/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](https://wordpress.org/plugins/debug-bar-console/)
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

## 常見問題集

  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 );
 `

## 使用者評論

![](https://secure.gravatar.com/avatar/d5b5a5df8b4349f5099d481e4dc9d2f09fb038135614b022d58e4d1535e81479?
s=60&d=retro&r=g)

### 󠀁[Excellent](https://wordpress.org/support/topic/excellent-4426/)󠁿

 [shaeirving1](https://profiles.wordpress.org/shaeirving1/) 2017 年 2 月 8 日

Excellent plugin, has helped our business in many ways

 [ 閱讀全部 2 則使用者評論 ](https://wordpress.org/support/plugin/debug-bar-query-count-alert/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Debug Bar Query Count Alert〉的開發相關工作。

參與者

 *   [ Matthew Boynes ](https://profiles.wordpress.org/mboynes/)
 *   [ Alley ](https://profiles.wordpress.org/alleyinteractive/)

[將〈Debug Bar Query Count Alert〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/debug-bar-query-count-alert)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/debug-bar-query-count-alert/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/debug-bar-query-count-alert/)，
或透過 [RSS](https://plugins.trac.wordpress.org/log/debug-bar-query-count-alert/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/debug-bar-query-count-alert/)。

## 變更記錄

#### 0.1

Brand new.

## 中繼資料

 *  版本 **0.1**
 *  最後更新 **12 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 3.1 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.7.41**
 *  語言
 * [English (US)](https://wordpress.org/plugins/debug-bar-query-count-alert/)
 * 標籤:
 * [debug](https://tw.wordpress.org/plugins/tags/debug/)[debug bar](https://tw.wordpress.org/plugins/tags/debug-bar/)
   [developer](https://tw.wordpress.org/plugins/tags/developer/)[mysql](https://tw.wordpress.org/plugins/tags/mysql/)
   [performance](https://tw.wordpress.org/plugins/tags/performance/)
 *  [進階檢視](https://tw.wordpress.org/plugins/debug-bar-query-count-alert/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  2 個 5 星使用者評論     ](https://wordpress.org/support/plugin/debug-bar-query-count-alert/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/debug-bar-query-count-alert/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/debug-bar-query-count-alert/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/debug-bar-query-count-alert/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/debug-bar-query-count-alert/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/debug-bar-query-count-alert/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/debug-bar-query-count-alert/reviews/)

## 參與者

 *   [ Matthew Boynes ](https://profiles.wordpress.org/mboynes/)
 *   [ Alley ](https://profiles.wordpress.org/alleyinteractive/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/debug-bar-query-count-alert/)