P3 (Plugin Performance Profiler) - Version 1.5.1

Version Description

Fix a bug which broke debug mode and caused scanning to not work properly for some users.

Download this release

Release Info

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

Code changes from version 1.5.0 to 1.5.1

classes/class.p3-profiler-plugin-admin.php CHANGED
@@ -273,6 +273,9 @@ class P3_Profiler_Plugin_Admin {
273
  // Add the entry ( multisite installs can run more than one concurrent profile )
274
  delete_option( 'p3_profiler-error_detection' );
275
  $opts = get_option( 'p3-profiler_options' );
 
 
 
276
  $opts['profiling_enabled'] = array(
277
  'ip' => stripslashes( $_POST['p3_ip'] ),
278
  'disable_opcode_cache' => ( 'true' == $_POST['p3_disable_opcode_cache'] ),
@@ -452,7 +455,7 @@ class P3_Profiler_Plugin_Admin {
452
 
453
  foreach ( (array) $log as $entry ) {
454
  printf('"%s","%s","%s","%s","%s","%s","%s","%s","%d"' . "\n",
455
- $entry['profiling_enabled'] ? 'true' : 'false',
456
  $entry['recording_ip'],
457
  $entry['scan_name'],
458
  $entry['recording'] ? 'true' : 'false',
@@ -584,7 +587,7 @@ class P3_Profiler_Plugin_Admin {
584
  public static function scan_enabled() {
585
  $opts = get_option( 'p3-profiler_options' );
586
  if ( !empty( $opts['profiling_enabled'] ) ) {
587
- return $opts['profiling_enabled'];
588
  }
589
  return false;
590
  }
@@ -691,7 +694,7 @@ class P3_Profiler_Plugin_Admin {
691
 
692
  // Upgrading from < 1.5.0
693
  if ( empty( $version) || version_compare( $version, '1.5.0' ) < 0 ) {
694
- update_option( 'p3-profiler_version', '1.3.0' );
695
  }
696
 
697
  // Ensure the profiles folder is there
273
  // Add the entry ( multisite installs can run more than one concurrent profile )
274
  delete_option( 'p3_profiler-error_detection' );
275
  $opts = get_option( 'p3-profiler_options' );
276
+ if( empty( $opts ) || !is_array( $opts ) ) {
277
+ $opts = array();
278
+ }
279
  $opts['profiling_enabled'] = array(
280
  'ip' => stripslashes( $_POST['p3_ip'] ),
281
  'disable_opcode_cache' => ( 'true' == $_POST['p3_disable_opcode_cache'] ),
455
 
456
  foreach ( (array) $log as $entry ) {
457
  printf('"%s","%s","%s","%s","%s","%s","%s","%s","%d"' . "\n",
458
+ is_array( $entry['profiling_enabled'] ) ? 'true' : 'false',
459
  $entry['recording_ip'],
460
  $entry['scan_name'],
461
  $entry['recording'] ? 'true' : 'false',
587
  public static function scan_enabled() {
588
  $opts = get_option( 'p3-profiler_options' );
589
  if ( !empty( $opts['profiling_enabled'] ) ) {
590
+ return isset( $opts['profiling_enabled'] );
591
  }
592
  return false;
593
  }
694
 
695
  // Upgrading from < 1.5.0
696
  if ( empty( $version) || version_compare( $version, '1.5.0' ) < 0 ) {
697
+ update_option( 'p3-profiler_version', '1.5.0' );
698
  }
699
 
700
  // Ensure the profiles folder is there
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.5.0
8
  Author URI: http://www.godaddy.com/
9
  Text Domain: p3-profiler
10
  Domain Path: /languages
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.5.1
8
  Author URI: http://www.godaddy.com/
9
  Text Domain: p3-profiler
10
  Domain Path: /languages
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: Godaddy, StarfieldTech, kurtpayne
3
  Tags: debug, debugging, developer, development, performance, plugin, profiler, speed
4
  Requires at least: 3.3
5
- Tested up to: 3.9
6
- Stable tag: 1.5.0
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -47,6 +47,9 @@ Manual installation:
47
 
48
  == Upgrade Notice ==
49
 
 
 
 
50
  = 1.5.0 =
51
  Avoid a race condition on NFS systems. Also fix PHP strict notices and stylesheet conflict with MP6/3.8 admin theme.
52
 
@@ -82,6 +85,10 @@ This version addresses a path disclosure issue. Users are encouraged to upgrade
82
 
83
  == Frequently Asked Questions ==
84
 
 
 
 
 
85
  = I installed P3, what now? =
86
 
87
  Open the **Tools** menu, then open **P3 Plugin Profiler** then click **Scan Now**.
@@ -140,6 +147,9 @@ add_filter( 'p3_automatic_scan_urls', 'my_p3_auto_scan_pages' );
140
 
141
  == Changelog ==
142
 
 
 
 
143
  = 1.5.0 =
144
  * Fixed a CSS compatibility issue between WordPress 3.8 / MP6 and jQuery UI (props mintfactory)
145
 
2
  Contributors: Godaddy, StarfieldTech, kurtpayne
3
  Tags: debug, debugging, developer, development, performance, plugin, profiler, speed
4
  Requires at least: 3.3
5
+ Tested up to: 4.0
6
+ Stable tag: 1.5.1
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
47
 
48
  == Upgrade Notice ==
49
 
50
+ = 1.5.1 =
51
+ Fix a bug which broke debug mode and caused scanning to not work properly for some users.
52
+
53
  = 1.5.0 =
54
  Avoid a race condition on NFS systems. Also fix PHP strict notices and stylesheet conflict with MP6/3.8 admin theme.
55
 
85
 
86
  == Frequently Asked Questions ==
87
 
88
+ = Why are Jetpack and Yoast SEO slowing my site down so much? =
89
+
90
+ They're really not. P3 measures your site's performance while you're logged in. This activates extra features on these plugins for administrators that will not be visible to your users. The teams behind these plugins have put a lot of work on optimizing their plugins for performance and you should feel safe leaving these plugins installed and active.
91
+
92
  = I installed P3, what now? =
93
 
94
  Open the **Tools** menu, then open **P3 Plugin Profiler** then click **Scan Now**.
147
 
148
  == Changelog ==
149
 
150
+ = 1.5.1 =
151
+ * Fix a bug which broke debug mode and caused scanning to not work properly for some users.
152
+
153
  = 1.5.0 =
154
  * Fixed a CSS compatibility issue between WordPress 3.8 / MP6 and jQuery UI (props mintfactory)
155