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

Debug Queries

外掛說明

List query-actions only for admins; for debug purposes. See all queries on the frontend of the blog and find the slowest part.

New release, new Plugin

Please use the plugin Debug Objects, provides more information and a cleaner query view as this older plugin.
The new solution list also the plugin and core queries in different views.

Since version 1.0.0 the plugin disable the MySQL query cache for the current connected session. That will show you the real execution time for a query. To disable this behavior set the constant QUERY_CACHE_TYPE_OFF to FALSE.

The plugin is perfect for WordPress developers, plugin and theme developers and site administrators who are trying to find out why the blog is too slow.

Params

The plugin has since version 1.0.0 a constant to disable the mySQL Session cache. On defoult is the value on true and the cache is off for an better analyse! For change this, set the constant QUERY_CACHE_TYPE_OFF to FALSE.

Example

This is a example for evaluation.

# Time: 0.00198888778687
Query: SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'
Call from: require, require_once, require_once, require_once, is_blog_installed, wp_load_alloptions
# Time: 0.000695943832397
Query: UPDATE 'wp_options' SET 'option_value' = 'a:3:{i:0;b:0;s:25:\"adminimize/adminimize.php\";a:2:{i:0;O:10:\"adminimize\":1:{s:12:\"wp_filter_id\";i:0;}i:1;s:12:\"on_deinstall\";}s:31:\"debug_queries/debug_queries.php\";a:2:{i:0;O:12:\"DebugQueries\":1:{s:12:\"wp_filter_id\";i:0;}i:1;s:10:\"deactivate\";}}' WHERE 'option_name' = 'uninstall_plugins'
Call from: require, require_once, require_once, require_once, include_once, adminimize->adminimize, register_uninstall_hook, update_option

. . .

Total query time: 0.0155501365662 for 23 queries.
Total num_query time: 0.392 for 23 num_queries.

Acknowledgements

Thanks to Joost de Valk on yoast.com for small modifed on the plugin for some extra info.

Licence

Good news, this plugin is free for everyone! Since it’s released under the GPL, you can use it free of charge on your personal or commercial blog. But if you enjoy this plugin, you can thank me and leave a small donation for the time I’ve spent writing and supporting this plugin. And I really don’t want to know how many hours of my life this plugin has already eaten 😉

螢幕擷圖

  • List queries in frontend on a example blog

安裝方式

  1. Unpack the download-package
  2. Upload all files to the /wp-content/plugins/ directory, without folder
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. That’s it! Now you are all set to go on to thr frontend of your weblog and see the list of queries. You find the querie-analysis on end of the blog. Only logged administrators can see the result.

See on the official website.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

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

參與者

將〈Debug Queries〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

v1.0.2 (01/04/2014)

  • Fix for php function ereg_replace. there is deprecated
  • Distinctive note to the new plugin Debug Objects, there have much more possibilities and more maintenance

v1.0.1 (03/23/2011)

  • fixes for changed functions of WP 3.1
  • changes on markup for better use on frontend
  • small changes for WP Codex

v1.0.0 (12/01/2010)

  • Feature: add constant for disable mySQL Session Cache; The plugin has since version 1.0.0 a constant to disable the mySQL Session cache. On defoult is the value on true and the cache is off for an better analyse! For change this, set the constant QUERY_CACHE_TYPE_OFF to FALSE.

v0.6 (01/19/2010)

  • Convert all applicable characters in queries to HTML entities