Skip to content

Basic profiler for WordPress plugins. Measures response times with and without a given plugin activated.

License

Notifications You must be signed in to change notification settings

yasenn/wp-plugin-profiler

 
 

Repository files navigation

WordPress Plugin Profiler

Basic profiler for WordPress Plugins. Benchmarks any given plugin by testing response times with and without the plugin activated.

Installation

Plugin Profiler is hosted on the WordPress.org plugin repository so you can install it from there like any other plugin. Here's a guide on how to install Plugin Profiler for your WordPress site.

If you want to run the latest development version, you have two options:

  • You can download the repository .zip file: plugin-profiler.zip
  • You can clone the GitHub repository using Git:

git clone git@github.com:dannyvankooten/wp-plugin-profiler.git plugin-profiler

This will download the latest development version of the WordPress Plugin Profiler plugin.

Usage

Since this plugin needs to have control over the plugins which are loaded, it needs to be in your mu-plugins folder. An easy way to do so is by installing the plugin in your plugins folder and then placing the following file in /wp-content/mu-plugins/plugin-profiler.php.

// load the plugin profiler plugin early, please ensure you're using the correct plugin directory name here
require_once WP_PLUGIN_DIR . '/plugin-profiler/plugin-profiler.php';

To run a profile on any given plugin, visit Tools > Plugin Profiler in your WordPress admin area and select the plugin to profile.

Here's a rundown of the configuration settings.

URL parameter Description
slug The full file slug of the plugin you want to profile
n The number of times the profile should run for each step. (default=10)
url The URL which should be profiled against. (default=homepage)

About

Basic profiler for WordPress plugins. Measures response times with and without a given plugin activated.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 53.5%
  • JavaScript 41.4%
  • CSS 5.1%