P3 (Plugin Performance Profiler) - Version 1.0.3

Version Description

  • Enforcing WordPress 3.3 requirement during activation
    • Documented warning about usort() and php bug
Download this release

Release Info

Developer StarfieldTech
Plugin Icon wp plugin P3 (Plugin Performance Profiler)
Version 1.0.3
Comparing to
See all releases

Code changes from version 1.0.2 to 1.0.3

Files changed (3) hide show
  1. p3-profiler.php +11 -1
  2. readme.txt +9 -2
  3. templates/help.php +11 -0
p3-profiler.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: P3 (Plugin Performance Profiler)
4
  Plugin URI: http://support.godaddy.com/godaddy/wordpress-p3-plugin/
5
  Description: See which plugins are slowing down your site. Create a profile of your WordPress site's plugins' performance by measuring their impact on your site's load time.
6
  Author: GoDaddy.com
7
- Version: 1.0.2
8
  Author URI: http://www.godaddy.com/
9
  */
10
 
@@ -604,6 +604,16 @@ class P3_Profiler_Plugin {
604
  * @return void
605
  */
606
  public function activate() {
 
 
 
 
 
 
 
 
 
 
607
  $sapi = strtolower( php_sapi_name() );
608
 
609
  // .htaccess for mod_php
4
  Plugin URI: http://support.godaddy.com/godaddy/wordpress-p3-plugin/
5
  Description: See which plugins are slowing down your site. Create a profile of your WordPress site's plugins' performance by measuring their impact on your site's load time.
6
  Author: GoDaddy.com
7
+ Version: 1.0.3
8
  Author URI: http://www.godaddy.com/
9
  */
10
 
604
  * @return void
605
  */
606
  public function activate() {
607
+ global $wp_version;
608
+
609
+ // Version check, only 3.3+
610
+ if ( ! version_compare( $wp_version, '3.3', '>=') ) {
611
+ if ( function_exists('deactivate_plugins') )
612
+ deactivate_plugins(__FILE__);
613
+ die( '<strong>P3</strong> requires WordPress 3.3 or later' );
614
+ }
615
+
616
+
617
  $sapi = strtolower( php_sapi_name() );
618
 
619
  // .htaccess for mod_php
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: Godaddy, StarfieldTech
3
  Tags: debug, debugging, developer, development, performance, plugin, profiler, speed
4
  Requires at least: 3.3
5
  Tested up to: 3.3
6
- Stable tag: 1.0.2
7
 
8
  See which plugins are slowing down your site. This plugin creates a performance report for your site.
9
 
@@ -41,10 +41,17 @@ Manual installation:
41
  4. Then activate the Plugin from Plugins page.
42
 
43
  == Frequently Asked Questions ==
44
- No FAQs yet.
 
 
 
45
 
46
  == Changelog ==
47
 
 
 
 
 
48
  = 1.0.2 =
49
  * Fixed an error message when clicking "stop scan" too fast
50
  * Brought plugin version from php file in line with version from readme.txt and tag
3
  Tags: debug, debugging, developer, development, performance, plugin, profiler, speed
4
  Requires at least: 3.3
5
  Tested up to: 3.3
6
+ Stable tag: 1.0.3
7
 
8
  See which plugins are slowing down your site. This plugin creates a performance report for your site.
9
 
41
  4. Then activate the Plugin from Plugins page.
42
 
43
  == Frequently Asked Questions ==
44
+
45
+ = What if I get a warning about usort()? =
46
+
47
+ Warning messages like this: `Warning: usort() [function.usort]: Array was modified by the user comparison function` are due to a known php bug. See [php bug #50688](https://bugs.php.net/bug.php?id=50688) for more information. This warning does not affect the functionality of your site and it is not visible to your users.
48
 
49
  == Changelog ==
50
 
51
+ = 1.0.3 =
52
+ * Enforcing WordPress 3.3 requirement during activation
53
+ * Documented warning about usort() and php bug
54
+
55
  = 1.0.2 =
56
  * Fixed an error message when clicking "stop scan" too fast
57
  * Brought plugin version from php file in line with version from readme.txt and tag
templates/help.php CHANGED
@@ -286,6 +286,17 @@
286
  </blockquote>
287
  </div>
288
 
 
 
 
 
 
 
 
 
 
 
 
289
  <div class="p3-question">
290
  <h2 class="p3-help-question">My plugins don't seem to cause site slowness. Why is my site still slow?</h2>
291
  <blockquote>
286
  </blockquote>
287
  </div>
288
 
289
+ <div class="p3-question">
290
+ <h2 class="p3-help-question">What if I get a warning about usort()?</h2>
291
+ <blockquote>
292
+ Warning messages like this:
293
+ <code>Warning: usort() [function.usort]: Array was modified by the user comparison function</code> are due
294
+ to a known php bug. See <a href="https://bugs.php.net/bug.php?id=50688" target="_blank">php bug #50688</a>
295
+ for more information. This warning does not affect the functionality of your site and it is not visible
296
+ to your users.
297
+ </blockquote>
298
+ </div>
299
+
300
  <div class="p3-question">
301
  <h2 class="p3-help-question">My plugins don't seem to cause site slowness. Why is my site still slow?</h2>
302
  <blockquote>