跳到内容

WP Tuner

v0.9.6

MrPeteH · 2008年11月14日 上架

Easily, powerfully, discover why your blog or plugin is slow or cranky. Comprehensive time and database access analyzer. WPmu. multi-lingual.

正在使用
10+
评分
1.5 / 5
累计下载
4.8 万
最近更新
2009年8月25日
8 条评价需要 WordPress 2.0.6+已测试到 2.8.4

贡献者

截图

One of the available analysis results. (This summarizes database queries, by plugin, widget, theme, or section of the core code in WordPress.)
One of the available analysis results. (This summarizes database queries, by plugin, widget, theme, or section of the core code in WordPress.)
The top portion of the WP Tuner admin page. (It includes simple one-click presets on the left, with detailed settings available on the right.)
The top portion of the WP Tuner admin page. (It includes simple one-click presets on the left, with detailed settings available on the right.)

The (mu-compatible) WP Tuner plugin for WordPress is a powerful and easy to use way to answer many hard questions about why your blog is slow or cranky. What’s causing the slowdown? Is it a plugin? Is it your host?

Used with a bit of common sense, this powerful plugin will help blog administrators as well as software developers improve their WordPress blog performance.

Perfect for WordPress site administrators, plugin and theme designers, developers

Fully translatable.

Advanced Use

Here are more advanced ways to make use of WP Tuner. Please share your questions and/or stories examples to share with others!

1) Hook any WordPress action

In wptuner.php, you will find a default set of action hooks. You can add as many hooks as you like for other actions. They look like this (just change “admin_footer” to the name of the action you want to measure):

add_action('admin_footer', 'wpTuneFilterTime' );

Each hook adds a line to the WP Tuner performance analysis table, when that action is triggered.

2) Time anything at all in WordPress

WP Tuner contains a function that causes performance analysis for any section of WordPress code. Just use
wpTuneMarkTime(‘My Marker string’);

…at the beginning of the code you want analyzed. Add another marker at the end if needed.

For example, suppose you want to know how much time is spent loading each of the plugins you have enabled. Here’s how to do it, by adding two simple lines to wp-settings.php:

if (function_exists(wpTuneMarkTime)) wpTuneMarkTime('Load Plugins'); // ** Add THIS line **

if ( get_option('active_plugins') ) {
  $current_plugins = get_option('active_plugins');
  if ( is_array($current_plugins) ) {
    foreach ($current_plugins as $plugin) {
      if (function_exists(wpTuneMarkTime)) wpTuneMarkTime('Plugin: '.$plugin); // ** Add THIS line **
      if ( '' != $plugin && 0 == validate_file($plugin) && file_exists(WP_PLUGIN_DIR . '/' . $plugin) )
        include_once(WP_PLUGIN_DIR . '/' . $plugin);
    }
  }
}<h3>Credits</h3>

Many thanks to the WP Tuner translation team!

Русский: Кактусу (updated through WP Tuner 0.9.3)

Readme Validator

This readme was validated using:
https://wordpress.org/extend/plugins/about/validator/

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums