WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

WP Tuner

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

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

Credits

Many thanks to the WP Tuner translation team!

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

Readme Validator

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

Requires: 2.0.6 or higher
Compatible up to: 2.8.4
Last Updated: 2009-8-24
Downloads: 40,088

Ratings

3 stars
3.1 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,2,2
100,2,2
67,6,4
100,7,7
7,14,1
6,18,1
0,4,0
0,1,0
0,1,0
0,19,0
100,1,1
0,2,0
0,1,0
0,9,0
0,2,0
0,14,0
0,7,0
0,4,0
0,3,0
0,3,0
0,4,0
0,2,0
0,2,0
0,1,0