Version Description
Style updates for 4.1
Download this release
Release Info
| Developer | StarfieldTech |
| Plugin | |
| Version | 1.5.3.2 |
| Comparing to | |
| See all releases | |
Code changes from version 1.5.3.1 to 1.5.3.2
- classes/class.p3-profiler-plugin-admin.php +35 -35
- css/jquery-ui-fresh.css +7 -7
- css/logo.png +0 -0
- css/p3.css +6 -3
- p3-profiler.php +3 -1
- readme.txt +6 -2
- templates/template.php +17 -14
classes/class.p3-profiler-plugin-admin.php
CHANGED
|
@@ -7,7 +7,7 @@
|
|
| 7 |
* @package P3_Profiler
|
| 8 |
*/
|
| 9 |
class P3_Profiler_Plugin_Admin {
|
| 10 |
-
|
| 11 |
/**
|
| 12 |
* List table of the profile scans
|
| 13 |
* @var P3_Profiler_Table
|
|
@@ -19,7 +19,7 @@ class P3_Profiler_Plugin_Admin {
|
|
| 19 |
* @var string
|
| 20 |
*/
|
| 21 |
public static $scan = '';
|
| 22 |
-
|
| 23 |
/**
|
| 24 |
* Current action
|
| 25 |
* @var string
|
|
@@ -31,7 +31,7 @@ class P3_Profiler_Plugin_Admin {
|
|
| 31 |
* @var P3_Profiler_Reader
|
| 32 |
*/
|
| 33 |
public static $profile = '';
|
| 34 |
-
|
| 35 |
/**
|
| 36 |
* Remove the admin bar from the customer site when profiling is enabled
|
| 37 |
* to prevent skewing the numbers, as much as possible. Also prevent ssl
|
|
@@ -86,12 +86,12 @@ class P3_Profiler_Plugin_Admin {
|
|
| 86 |
*/
|
| 87 |
public static function load_styles() {
|
| 88 |
if ( 'classic' == get_user_option( 'admin_color' ) ) {
|
| 89 |
-
wp_enqueue_style ( 'jquery-ui-css', plugins_url() . '/p3-profiler/css/jquery-ui-classic.css' );
|
| 90 |
} else {
|
| 91 |
-
wp_enqueue_style ( 'jquery-ui-css', plugins_url() . '/p3-profiler/css/jquery-ui-fresh.css' );
|
| 92 |
}
|
| 93 |
-
wp_enqueue_style( 'p3_qtip_css', plugins_url() . '/p3-profiler/css/jquery.qtip.min.css' );
|
| 94 |
-
wp_enqueue_style( 'p3_css', plugins_url() . '/p3-profiler/css/p3.css' );
|
| 95 |
}
|
| 96 |
|
| 97 |
/**
|
|
@@ -111,7 +111,7 @@ class P3_Profiler_Plugin_Admin {
|
|
| 111 |
|
| 112 |
// Upgrade
|
| 113 |
self::upgrade();
|
| 114 |
-
|
| 115 |
// Set up the request based on p3_action
|
| 116 |
if ( !empty( $_REQUEST['p3_action'] ) ) {
|
| 117 |
self::$action = $_REQUEST['p3_action'];
|
|
@@ -171,21 +171,21 @@ class P3_Profiler_Plugin_Admin {
|
|
| 171 |
if ( !defined( 'WPP_PROFILING_STARTED' ) ) {
|
| 172 |
echo '<div class="updated usability-msg"><p>' . __( 'Click "Start Scan" to run a performance scan of your website.', 'p3-profiler' ) . '</p></div>';
|
| 173 |
}
|
| 174 |
-
|
| 175 |
// Load the list table, let it handle any bulk actions
|
| 176 |
if ( empty( self::$profile ) && in_array( self::$action, array( 'list-scans', 'current-scan' ) ) ) {
|
| 177 |
self::$scan_table = new P3_Profiler_Table();
|
| 178 |
self::$scan_table->prepare_items();
|
| 179 |
}
|
| 180 |
-
|
| 181 |
// Load scripts & styles
|
| 182 |
self::load_scripts();
|
| 183 |
self::load_styles();
|
| 184 |
-
|
| 185 |
// Show the page
|
| 186 |
require_once P3_PATH . '/templates/template.php';
|
| 187 |
}
|
| 188 |
-
|
| 189 |
/**
|
| 190 |
* Get a list of pages for the auto-scanner
|
| 191 |
* @return array
|
|
@@ -223,7 +223,7 @@ class P3_Profiler_Plugin_Admin {
|
|
| 223 |
}
|
| 224 |
}
|
| 225 |
}
|
| 226 |
-
|
| 227 |
// Scan some admin pages, too
|
| 228 |
$pages[] = admin_url();
|
| 229 |
$pages[] = admin_url('edit.php');
|
|
@@ -249,7 +249,7 @@ class P3_Profiler_Plugin_Admin {
|
|
| 249 |
* @param string $message
|
| 250 |
*/
|
| 251 |
public static function ajax_die( $message ) {
|
| 252 |
-
global $wp_version;
|
| 253 |
if ( version_compare( $wp_version, '3.4-dev' ) >= 0 ) {
|
| 254 |
wp_die( $message );
|
| 255 |
} else {
|
|
@@ -262,7 +262,7 @@ class P3_Profiler_Plugin_Admin {
|
|
| 262 |
*/
|
| 263 |
public static function ajax_start_scan() {
|
| 264 |
|
| 265 |
-
// Check nonce
|
| 266 |
if ( !check_admin_referer( 'p3_ajax_start_scan', 'p3_nonce' ) ) {
|
| 267 |
wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
|
| 268 |
}
|
|
@@ -331,7 +331,7 @@ class P3_Profiler_Plugin_Admin {
|
|
| 331 |
* Save advanced settings
|
| 332 |
*/
|
| 333 |
public static function ajax_save_settings() {
|
| 334 |
-
|
| 335 |
// Check nonce
|
| 336 |
if ( !check_admin_referer( 'p3_save_settings', 'p3_nonce' ) ) {
|
| 337 |
wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
|
|
@@ -345,7 +345,7 @@ class P3_Profiler_Plugin_Admin {
|
|
| 345 |
$opts['ip_address'] = ( $_POST['p3_ip_address'] );
|
| 346 |
$opts['debug'] = ('true' == $_POST['p3_debug'] );
|
| 347 |
update_option( 'p3-profiler_options', $opts );
|
| 348 |
-
|
| 349 |
// Clear the debug log if it's full
|
| 350 |
if ( 'true' === $_POST['p3_debug'] ) {
|
| 351 |
$log = get_option( 'p3-profiler_debug_log' );
|
|
@@ -356,7 +356,7 @@ class P3_Profiler_Plugin_Admin {
|
|
| 356 |
|
| 357 |
self::ajax_die( 1 );
|
| 358 |
}
|
| 359 |
-
|
| 360 |
|
| 361 |
/**************************************************************/
|
| 362 |
/** EMAIL RESULTS **/
|
|
@@ -378,7 +378,7 @@ class P3_Profiler_Plugin_Admin {
|
|
| 378 |
$subject = trim( $_POST['p3_subject'] );
|
| 379 |
$message = strip_tags( $_POST['p3_message'] );
|
| 380 |
$results = strip_tags( $_POST['p3_results'] );
|
| 381 |
-
|
| 382 |
// Append the results to the message ( if a messge was specified )
|
| 383 |
if ( empty( $message ) ) {
|
| 384 |
$message = stripslashes( $results );
|
|
@@ -404,11 +404,11 @@ class P3_Profiler_Plugin_Admin {
|
|
| 404 |
}
|
| 405 |
self::ajax_die( '' );
|
| 406 |
}
|
| 407 |
-
|
| 408 |
/**************************************************************/
|
| 409 |
/** DEBUG LOG FUNCTIONS **/
|
| 410 |
/**************************************************************/
|
| 411 |
-
|
| 412 |
/**
|
| 413 |
* Clear the debug log
|
| 414 |
*/
|
|
@@ -419,7 +419,7 @@ class P3_Profiler_Plugin_Admin {
|
|
| 419 |
update_option( 'p3-profiler_debug_log', array() );
|
| 420 |
wp_redirect( add_query_arg( array( 'p3_action' => 'help' ) ) );
|
| 421 |
}
|
| 422 |
-
|
| 423 |
/**
|
| 424 |
* Download the debug log
|
| 425 |
*/
|
|
@@ -433,13 +433,13 @@ class P3_Profiler_Plugin_Admin {
|
|
| 433 |
}
|
| 434 |
header('Pragma: public');
|
| 435 |
header('Expires: 0');
|
| 436 |
-
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
|
| 437 |
header('Content-Type: application/force-download');
|
| 438 |
header('Content-Type: application/octet-stream');
|
| 439 |
header('Content-Type: application/download');
|
| 440 |
header('Content-Disposition: attachment; filename="p3debug.csv";');
|
| 441 |
header('Content-Transfer-Encoding: binary');
|
| 442 |
-
|
| 443 |
// File header
|
| 444 |
printf('"%s","%s","%s","%s","%s","%s","%s","%s","%s"' . "\n",
|
| 445 |
__( 'Profiling Enabled', 'p3-profiler' ),
|
|
@@ -451,7 +451,7 @@ class P3_Profiler_Plugin_Admin {
|
|
| 451 |
__( 'Visitor IP', 'p3-profiler' ),
|
| 452 |
__( 'Time', 'p3-profiler' ),
|
| 453 |
_x( 'PID', 'Abbreviation for process id', 'p3-profiler' )
|
| 454 |
-
);
|
| 455 |
|
| 456 |
foreach ( (array) $log as $entry ) {
|
| 457 |
printf('"%s","%s","%s","%s","%s","%s","%s","%s","%d"' . "\n",
|
|
@@ -562,7 +562,7 @@ class P3_Profiler_Plugin_Admin {
|
|
| 562 |
file_put_contents( $path. DIRECTORY_SEPARATOR . 'index.php', '<' . "?php header( 'Status: 404 Not found' ); ?" . ">\nNot found" );
|
| 563 |
}
|
| 564 |
}
|
| 565 |
-
|
| 566 |
/**
|
| 567 |
* Delete the profiles folder
|
| 568 |
* @param string $path
|
|
@@ -578,7 +578,7 @@ class P3_Profiler_Plugin_Admin {
|
|
| 578 |
}
|
| 579 |
closedir( $dir );
|
| 580 |
rmdir( $path );
|
| 581 |
-
}
|
| 582 |
|
| 583 |
/**
|
| 584 |
* Check to see if a scan is enabled
|
|
@@ -591,7 +591,7 @@ class P3_Profiler_Plugin_Admin {
|
|
| 591 |
}
|
| 592 |
return false;
|
| 593 |
}
|
| 594 |
-
|
| 595 |
/**
|
| 596 |
* Convert a filesize ( in bytes ) to a human readable filesize
|
| 597 |
* @param int $size
|
|
@@ -611,7 +611,7 @@ class P3_Profiler_Plugin_Admin {
|
|
| 611 |
$size /= pow( 1024, $pow );
|
| 612 |
return round( $size, 0 ) . ' ' . $units[$pow];
|
| 613 |
}
|
| 614 |
-
|
| 615 |
/**
|
| 616 |
* Actions to take when a multisite blog is removed
|
| 617 |
*/
|
|
@@ -629,7 +629,7 @@ class P3_Profiler_Plugin_Admin {
|
|
| 629 |
* Check options, perform any necessary data conversions
|
| 630 |
*/
|
| 631 |
public static function upgrade() {
|
| 632 |
-
|
| 633 |
// Get the current version
|
| 634 |
$version = get_option( 'p3-profiler_version' );
|
| 635 |
|
|
@@ -640,7 +640,7 @@ class P3_Profiler_Plugin_Admin {
|
|
| 640 |
update_option( 'p3-profiler_ip_address', '' );
|
| 641 |
update_option( 'p3-profiler_version', '1.1.0' );
|
| 642 |
}
|
| 643 |
-
|
| 644 |
// Upgrading from < 1.1.2
|
| 645 |
if ( empty( $version) || version_compare( $version, '1.1.2' ) < 0 ) {
|
| 646 |
update_option( 'p3-profiler_cache_buster', true );
|
|
@@ -667,11 +667,11 @@ class P3_Profiler_Plugin_Admin {
|
|
| 667 |
@unlink( P3_PATH . '/.profiling_enabled' );
|
| 668 |
}
|
| 669 |
}
|
| 670 |
-
|
| 671 |
// Upgrading from < 1.3.0
|
| 672 |
if ( empty( $version) || version_compare( $version, '1.3.0' ) < 0 ) {
|
| 673 |
update_option( 'p3-profiler_version', '1.3.0' );
|
| 674 |
-
|
| 675 |
// Move to a serialized single option
|
| 676 |
$opts = array(
|
| 677 |
'profiling_enabled' => get_option( 'p3-profiler_profiling_enabled' ),
|
|
@@ -679,7 +679,7 @@ class P3_Profiler_Plugin_Admin {
|
|
| 679 |
'use_current_ip' => get_option( 'p3-profiler_use_current_ip' ),
|
| 680 |
'ip_address' => get_option( 'p3-profiler_ip_address' ),
|
| 681 |
'cache_buster' => get_option( 'p3-profiler_cache_buster' ),
|
| 682 |
-
'debug' => get_option( 'p3-profiler_debug' )
|
| 683 |
);
|
| 684 |
update_option( 'p3-profiler_options', $opts );
|
| 685 |
|
|
@@ -701,5 +701,5 @@ class P3_Profiler_Plugin_Admin {
|
|
| 701 |
$uploads_dir = wp_upload_dir();
|
| 702 |
$folder = $uploads_dir['basedir'] . DIRECTORY_SEPARATOR . 'profiles';
|
| 703 |
self::make_profiles_folder( $folder );
|
| 704 |
-
}
|
| 705 |
}
|
| 7 |
* @package P3_Profiler
|
| 8 |
*/
|
| 9 |
class P3_Profiler_Plugin_Admin {
|
| 10 |
+
|
| 11 |
/**
|
| 12 |
* List table of the profile scans
|
| 13 |
* @var P3_Profiler_Table
|
| 19 |
* @var string
|
| 20 |
*/
|
| 21 |
public static $scan = '';
|
| 22 |
+
|
| 23 |
/**
|
| 24 |
* Current action
|
| 25 |
* @var string
|
| 31 |
* @var P3_Profiler_Reader
|
| 32 |
*/
|
| 33 |
public static $profile = '';
|
| 34 |
+
|
| 35 |
/**
|
| 36 |
* Remove the admin bar from the customer site when profiling is enabled
|
| 37 |
* to prevent skewing the numbers, as much as possible. Also prevent ssl
|
| 86 |
*/
|
| 87 |
public static function load_styles() {
|
| 88 |
if ( 'classic' == get_user_option( 'admin_color' ) ) {
|
| 89 |
+
wp_enqueue_style ( 'jquery-ui-css', plugins_url() . '/p3-profiler/css/jquery-ui-classic.css', array(), P3_VERSION );
|
| 90 |
} else {
|
| 91 |
+
wp_enqueue_style ( 'jquery-ui-css', plugins_url() . '/p3-profiler/css/jquery-ui-fresh.css', array(), P3_VERSION );
|
| 92 |
}
|
| 93 |
+
wp_enqueue_style( 'p3_qtip_css', plugins_url() . '/p3-profiler/css/jquery.qtip.min.css', array(), P3_VERSION );
|
| 94 |
+
wp_enqueue_style( 'p3_css', plugins_url() . '/p3-profiler/css/p3.css', array(), P3_VERSION );
|
| 95 |
}
|
| 96 |
|
| 97 |
/**
|
| 111 |
|
| 112 |
// Upgrade
|
| 113 |
self::upgrade();
|
| 114 |
+
|
| 115 |
// Set up the request based on p3_action
|
| 116 |
if ( !empty( $_REQUEST['p3_action'] ) ) {
|
| 117 |
self::$action = $_REQUEST['p3_action'];
|
| 171 |
if ( !defined( 'WPP_PROFILING_STARTED' ) ) {
|
| 172 |
echo '<div class="updated usability-msg"><p>' . __( 'Click "Start Scan" to run a performance scan of your website.', 'p3-profiler' ) . '</p></div>';
|
| 173 |
}
|
| 174 |
+
|
| 175 |
// Load the list table, let it handle any bulk actions
|
| 176 |
if ( empty( self::$profile ) && in_array( self::$action, array( 'list-scans', 'current-scan' ) ) ) {
|
| 177 |
self::$scan_table = new P3_Profiler_Table();
|
| 178 |
self::$scan_table->prepare_items();
|
| 179 |
}
|
| 180 |
+
|
| 181 |
// Load scripts & styles
|
| 182 |
self::load_scripts();
|
| 183 |
self::load_styles();
|
| 184 |
+
|
| 185 |
// Show the page
|
| 186 |
require_once P3_PATH . '/templates/template.php';
|
| 187 |
}
|
| 188 |
+
|
| 189 |
/**
|
| 190 |
* Get a list of pages for the auto-scanner
|
| 191 |
* @return array
|
| 223 |
}
|
| 224 |
}
|
| 225 |
}
|
| 226 |
+
|
| 227 |
// Scan some admin pages, too
|
| 228 |
$pages[] = admin_url();
|
| 229 |
$pages[] = admin_url('edit.php');
|
| 249 |
* @param string $message
|
| 250 |
*/
|
| 251 |
public static function ajax_die( $message ) {
|
| 252 |
+
global $wp_version;
|
| 253 |
if ( version_compare( $wp_version, '3.4-dev' ) >= 0 ) {
|
| 254 |
wp_die( $message );
|
| 255 |
} else {
|
| 262 |
*/
|
| 263 |
public static function ajax_start_scan() {
|
| 264 |
|
| 265 |
+
// Check nonce
|
| 266 |
if ( !check_admin_referer( 'p3_ajax_start_scan', 'p3_nonce' ) ) {
|
| 267 |
wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
|
| 268 |
}
|
| 331 |
* Save advanced settings
|
| 332 |
*/
|
| 333 |
public static function ajax_save_settings() {
|
| 334 |
+
|
| 335 |
// Check nonce
|
| 336 |
if ( !check_admin_referer( 'p3_save_settings', 'p3_nonce' ) ) {
|
| 337 |
wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
|
| 345 |
$opts['ip_address'] = ( $_POST['p3_ip_address'] );
|
| 346 |
$opts['debug'] = ('true' == $_POST['p3_debug'] );
|
| 347 |
update_option( 'p3-profiler_options', $opts );
|
| 348 |
+
|
| 349 |
// Clear the debug log if it's full
|
| 350 |
if ( 'true' === $_POST['p3_debug'] ) {
|
| 351 |
$log = get_option( 'p3-profiler_debug_log' );
|
| 356 |
|
| 357 |
self::ajax_die( 1 );
|
| 358 |
}
|
| 359 |
+
|
| 360 |
|
| 361 |
/**************************************************************/
|
| 362 |
/** EMAIL RESULTS **/
|
| 378 |
$subject = trim( $_POST['p3_subject'] );
|
| 379 |
$message = strip_tags( $_POST['p3_message'] );
|
| 380 |
$results = strip_tags( $_POST['p3_results'] );
|
| 381 |
+
|
| 382 |
// Append the results to the message ( if a messge was specified )
|
| 383 |
if ( empty( $message ) ) {
|
| 384 |
$message = stripslashes( $results );
|
| 404 |
}
|
| 405 |
self::ajax_die( '' );
|
| 406 |
}
|
| 407 |
+
|
| 408 |
/**************************************************************/
|
| 409 |
/** DEBUG LOG FUNCTIONS **/
|
| 410 |
/**************************************************************/
|
| 411 |
+
|
| 412 |
/**
|
| 413 |
* Clear the debug log
|
| 414 |
*/
|
| 419 |
update_option( 'p3-profiler_debug_log', array() );
|
| 420 |
wp_redirect( add_query_arg( array( 'p3_action' => 'help' ) ) );
|
| 421 |
}
|
| 422 |
+
|
| 423 |
/**
|
| 424 |
* Download the debug log
|
| 425 |
*/
|
| 433 |
}
|
| 434 |
header('Pragma: public');
|
| 435 |
header('Expires: 0');
|
| 436 |
+
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
|
| 437 |
header('Content-Type: application/force-download');
|
| 438 |
header('Content-Type: application/octet-stream');
|
| 439 |
header('Content-Type: application/download');
|
| 440 |
header('Content-Disposition: attachment; filename="p3debug.csv";');
|
| 441 |
header('Content-Transfer-Encoding: binary');
|
| 442 |
+
|
| 443 |
// File header
|
| 444 |
printf('"%s","%s","%s","%s","%s","%s","%s","%s","%s"' . "\n",
|
| 445 |
__( 'Profiling Enabled', 'p3-profiler' ),
|
| 451 |
__( 'Visitor IP', 'p3-profiler' ),
|
| 452 |
__( 'Time', 'p3-profiler' ),
|
| 453 |
_x( 'PID', 'Abbreviation for process id', 'p3-profiler' )
|
| 454 |
+
);
|
| 455 |
|
| 456 |
foreach ( (array) $log as $entry ) {
|
| 457 |
printf('"%s","%s","%s","%s","%s","%s","%s","%s","%d"' . "\n",
|
| 562 |
file_put_contents( $path. DIRECTORY_SEPARATOR . 'index.php', '<' . "?php header( 'Status: 404 Not found' ); ?" . ">\nNot found" );
|
| 563 |
}
|
| 564 |
}
|
| 565 |
+
|
| 566 |
/**
|
| 567 |
* Delete the profiles folder
|
| 568 |
* @param string $path
|
| 578 |
}
|
| 579 |
closedir( $dir );
|
| 580 |
rmdir( $path );
|
| 581 |
+
}
|
| 582 |
|
| 583 |
/**
|
| 584 |
* Check to see if a scan is enabled
|
| 591 |
}
|
| 592 |
return false;
|
| 593 |
}
|
| 594 |
+
|
| 595 |
/**
|
| 596 |
* Convert a filesize ( in bytes ) to a human readable filesize
|
| 597 |
* @param int $size
|
| 611 |
$size /= pow( 1024, $pow );
|
| 612 |
return round( $size, 0 ) . ' ' . $units[$pow];
|
| 613 |
}
|
| 614 |
+
|
| 615 |
/**
|
| 616 |
* Actions to take when a multisite blog is removed
|
| 617 |
*/
|
| 629 |
* Check options, perform any necessary data conversions
|
| 630 |
*/
|
| 631 |
public static function upgrade() {
|
| 632 |
+
|
| 633 |
// Get the current version
|
| 634 |
$version = get_option( 'p3-profiler_version' );
|
| 635 |
|
| 640 |
update_option( 'p3-profiler_ip_address', '' );
|
| 641 |
update_option( 'p3-profiler_version', '1.1.0' );
|
| 642 |
}
|
| 643 |
+
|
| 644 |
// Upgrading from < 1.1.2
|
| 645 |
if ( empty( $version) || version_compare( $version, '1.1.2' ) < 0 ) {
|
| 646 |
update_option( 'p3-profiler_cache_buster', true );
|
| 667 |
@unlink( P3_PATH . '/.profiling_enabled' );
|
| 668 |
}
|
| 669 |
}
|
| 670 |
+
|
| 671 |
// Upgrading from < 1.3.0
|
| 672 |
if ( empty( $version) || version_compare( $version, '1.3.0' ) < 0 ) {
|
| 673 |
update_option( 'p3-profiler_version', '1.3.0' );
|
| 674 |
+
|
| 675 |
// Move to a serialized single option
|
| 676 |
$opts = array(
|
| 677 |
'profiling_enabled' => get_option( 'p3-profiler_profiling_enabled' ),
|
| 679 |
'use_current_ip' => get_option( 'p3-profiler_use_current_ip' ),
|
| 680 |
'ip_address' => get_option( 'p3-profiler_ip_address' ),
|
| 681 |
'cache_buster' => get_option( 'p3-profiler_cache_buster' ),
|
| 682 |
+
'debug' => get_option( 'p3-profiler_debug' )
|
| 683 |
);
|
| 684 |
update_option( 'p3-profiler_options', $opts );
|
| 685 |
|
| 701 |
$uploads_dir = wp_upload_dir();
|
| 702 |
$folder = $uploads_dir['basedir'] . DIRECTORY_SEPARATOR . 'profiles';
|
| 703 |
self::make_profiles_folder( $folder );
|
| 704 |
+
}
|
| 705 |
}
|
css/jquery-ui-fresh.css
CHANGED
|
@@ -343,7 +343,7 @@
|
|
| 343 |
*
|
| 344 |
* http://docs.jquery.com/UI/Autocomplete#theming
|
| 345 |
*/
|
| 346 |
-
.ui-autocomplete { position: absolute; cursor: default; }
|
| 347 |
|
| 348 |
/* workarounds */
|
| 349 |
* html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */
|
|
@@ -399,8 +399,8 @@
|
|
| 399 |
.ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */
|
| 400 |
.ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */
|
| 401 |
button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */
|
| 402 |
-
.ui-button-icons-only { width: 3.4em; }
|
| 403 |
-
button.ui-button-icons-only { width: 3.7em; }
|
| 404 |
|
| 405 |
/*button text element */
|
| 406 |
.ui-button .ui-button-text { display: block; line-height: 1.4; }
|
|
@@ -436,9 +436,9 @@ button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra pad
|
|
| 436 |
*/
|
| 437 |
.ui-dialog { position: fixed; padding: .2em; width: 300px; overflow: hidden; }
|
| 438 |
.ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative; }
|
| 439 |
-
.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; }
|
| 440 |
.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
|
| 441 |
-
.ui-dialog .ui-dialog-titlebar-close span { display: block;
|
| 442 |
.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; }
|
| 443 |
.ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; }
|
| 444 |
.ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; }
|
|
@@ -508,7 +508,7 @@ button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra pad
|
|
| 508 |
.ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; }
|
| 509 |
.ui-datepicker .ui-datepicker-title select { font-size:1em; margin:1px 0; }
|
| 510 |
.ui-datepicker select.ui-datepicker-month-year {width: 100%;}
|
| 511 |
-
.ui-datepicker select.ui-datepicker-month,
|
| 512 |
.ui-datepicker select.ui-datepicker-year { width: 49%;}
|
| 513 |
.ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; }
|
| 514 |
.ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0; }
|
|
@@ -572,4 +572,4 @@ button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra pad
|
|
| 572 |
background-image: -moz-linear-gradient(bottom, rgb(114,167,207) 0%, rgb(144,197,238) 100%);
|
| 573 |
background-image: -webkit-linear-gradient(bottom, rgb(114,167,207) 0%, rgb(144,197,238) 100%);
|
| 574 |
background-image: -ms-linear-gradient(bottom, rgb(114,167,207) 0%, rgb(144,197,238) 100%);
|
| 575 |
-
}
|
| 343 |
*
|
| 344 |
* http://docs.jquery.com/UI/Autocomplete#theming
|
| 345 |
*/
|
| 346 |
+
.ui-autocomplete { position: absolute; cursor: default; }
|
| 347 |
|
| 348 |
/* workarounds */
|
| 349 |
* html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */
|
| 399 |
.ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */
|
| 400 |
.ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */
|
| 401 |
button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */
|
| 402 |
+
.ui-button-icons-only { width: 3.4em; }
|
| 403 |
+
button.ui-button-icons-only { width: 3.7em; }
|
| 404 |
|
| 405 |
/*button text element */
|
| 406 |
.ui-button .ui-button-text { display: block; line-height: 1.4; }
|
| 436 |
*/
|
| 437 |
.ui-dialog { position: fixed; padding: .2em; width: 300px; overflow: hidden; }
|
| 438 |
.ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative; }
|
| 439 |
+
.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; }
|
| 440 |
.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
|
| 441 |
+
.ui-dialog .ui-dialog-titlebar-close span { display: block; }
|
| 442 |
.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; }
|
| 443 |
.ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; }
|
| 444 |
.ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; }
|
| 508 |
.ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; }
|
| 509 |
.ui-datepicker .ui-datepicker-title select { font-size:1em; margin:1px 0; }
|
| 510 |
.ui-datepicker select.ui-datepicker-month-year {width: 100%;}
|
| 511 |
+
.ui-datepicker select.ui-datepicker-month,
|
| 512 |
.ui-datepicker select.ui-datepicker-year { width: 49%;}
|
| 513 |
.ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; }
|
| 514 |
.ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0; }
|
| 572 |
background-image: -moz-linear-gradient(bottom, rgb(114,167,207) 0%, rgb(144,197,238) 100%);
|
| 573 |
background-image: -webkit-linear-gradient(bottom, rgb(114,167,207) 0%, rgb(144,197,238) 100%);
|
| 574 |
background-image: -ms-linear-gradient(bottom, rgb(114,167,207) 0%, rgb(144,197,238) 100%);
|
| 575 |
+
}
|
css/logo.png
ADDED
|
Binary file
|
css/p3.css
CHANGED
|
@@ -292,8 +292,8 @@ p3-glossary-container {
|
|
| 292 |
}
|
| 293 |
#p3-copyright img {
|
| 294 |
margin-bottom: 7px;
|
| 295 |
-
height: 47px;
|
| 296 |
-
width: 125px;
|
| 297 |
}
|
| 298 |
|
| 299 |
|
|
@@ -369,9 +369,12 @@ div.p3-question h2.p3-help-question {
|
|
| 369 |
|
| 370 |
|
| 371 |
/** Did you liek this plugin? **/
|
|
|
|
|
|
|
|
|
|
| 372 |
div#p3-reminder {
|
| 373 |
position: relative;
|
| 374 |
-
z-index:
|
| 375 |
float: left;
|
| 376 |
bottom: 0;
|
| 377 |
left: 0;
|
| 292 |
}
|
| 293 |
#p3-copyright img {
|
| 294 |
margin-bottom: 7px;
|
| 295 |
+
#height: 47px;
|
| 296 |
+
#width: 125px;
|
| 297 |
}
|
| 298 |
|
| 299 |
|
| 369 |
|
| 370 |
|
| 371 |
/** Did you liek this plugin? **/
|
| 372 |
+
div#p3-footer-wrapper {
|
| 373 |
+
min-height: 150px;
|
| 374 |
+
}
|
| 375 |
div#p3-reminder {
|
| 376 |
position: relative;
|
| 377 |
+
z-index: 0;
|
| 378 |
float: left;
|
| 379 |
bottom: 0;
|
| 380 |
left: 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.5.3.
|
| 8 |
Author URI: http://www.godaddy.com/
|
| 9 |
Text Domain: p3-profiler
|
| 10 |
Domain Path: /languages
|
|
@@ -25,6 +25,8 @@ load_plugin_textdomain( 'p3-profiler', false, plugin_basename( P3_PATH ) . '/lan
|
|
| 25 |
// Plugin slug
|
| 26 |
define( 'P3_PLUGIN_SLUG', 'p3-profiler' );
|
| 27 |
|
|
|
|
|
|
|
| 28 |
/**************************************************************************/
|
| 29 |
/** AUTOLOADING **/
|
| 30 |
/**************************************************************************/
|
| 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.3.2
|
| 8 |
Author URI: http://www.godaddy.com/
|
| 9 |
Text Domain: p3-profiler
|
| 10 |
Domain Path: /languages
|
| 25 |
// Plugin slug
|
| 26 |
define( 'P3_PLUGIN_SLUG', 'p3-profiler' );
|
| 27 |
|
| 28 |
+
define( 'P3_VERSION', '1.3.5.2' );
|
| 29 |
+
|
| 30 |
/**************************************************************************/
|
| 31 |
/** AUTOLOADING **/
|
| 32 |
/**************************************************************************/
|
readme.txt
CHANGED
|
@@ -2,8 +2,8 @@
|
|
| 2 |
Contributors: Godaddy, StarfieldTech, kurtpayne, cklosows
|
| 3 |
Tags: debug, debugging, developer, development, performance, plugin, profiler, speed
|
| 4 |
Requires at least: 3.3
|
| 5 |
-
Tested up to: 4.
|
| 6 |
-
Stable tag: 1.5.3.
|
| 7 |
License: GPLv2
|
| 8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 9 |
|
|
@@ -46,6 +46,8 @@ Manual installation:
|
|
| 46 |
4. Then activate the Plugin from Plugins page.
|
| 47 |
|
| 48 |
== Upgrade Notice ==
|
|
|
|
|
|
|
| 49 |
|
| 50 |
= 1.5.3.1 =
|
| 51 |
Fixed logic bug in determining debug_backtrace arguements
|
|
@@ -151,6 +153,8 @@ add_filter( 'p3_automatic_scan_urls', 'my_p3_auto_scan_pages' );
|
|
| 151 |
</code>
|
| 152 |
|
| 153 |
== Changelog ==
|
|
|
|
|
|
|
| 154 |
|
| 155 |
= 1.5.3.1 =
|
| 156 |
* Fixed logic bug in determining debug_backtrace arguements
|
| 2 |
Contributors: Godaddy, StarfieldTech, kurtpayne, cklosows
|
| 3 |
Tags: debug, debugging, developer, development, performance, plugin, profiler, speed
|
| 4 |
Requires at least: 3.3
|
| 5 |
+
Tested up to: 4.1
|
| 6 |
+
Stable tag: 1.5.3.2
|
| 7 |
License: GPLv2
|
| 8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 9 |
|
| 46 |
4. Then activate the Plugin from Plugins page.
|
| 47 |
|
| 48 |
== Upgrade Notice ==
|
| 49 |
+
= 1.5.3.2 =
|
| 50 |
+
Style updates for 4.1
|
| 51 |
|
| 52 |
= 1.5.3.1 =
|
| 53 |
Fixed logic bug in determining debug_backtrace arguements
|
| 153 |
</code>
|
| 154 |
|
| 155 |
== Changelog ==
|
| 156 |
+
= 1.5.3.2 =
|
| 157 |
+
* Style Updates for 4.1
|
| 158 |
|
| 159 |
= 1.5.3.1 =
|
| 160 |
* Fixed logic bug in determining debug_backtrace arguements
|
templates/template.php
CHANGED
|
@@ -46,7 +46,7 @@ if ( 'current-scan' == self::$action || !empty( $_REQUEST['current_scan'] ) ) {
|
|
| 46 |
}
|
| 47 |
});
|
| 48 |
});
|
| 49 |
-
|
| 50 |
// Callouts
|
| 51 |
$( "div#p3-reminder-wrapper" )
|
| 52 |
.corner( "round 8px" )
|
|
@@ -70,7 +70,7 @@ if ( 'current-scan' == self::$action || !empty( $_REQUEST['current_scan'] ) ) {
|
|
| 70 |
<label for="button-history-scans" class="history-tab"><?php _e( 'History', 'p3-profiler' ); ?></label>
|
| 71 |
<input type="radio" name="p3-nav" id="button-help" <?php echo $button_help_checked; ?> /><label for="button-help" class="help-tab"><?php _e( 'Help', 'p3-profiler' ); ?></label>
|
| 72 |
</div>
|
| 73 |
-
|
| 74 |
<div id="p3-scan-label">
|
| 75 |
<?php if ( !empty( self::$profile ) ) : ?>
|
| 76 |
<?php _e( 'Scan name:', 'p3-profiler' ); ?> <?php echo self::$profile->profile_name; ?>
|
|
@@ -92,18 +92,21 @@ if ( 'current-scan' == self::$action || !empty( $_REQUEST['current_scan'] ) ) {
|
|
| 92 |
|
| 93 |
</div>
|
| 94 |
|
| 95 |
-
<div id="p3-
|
| 96 |
-
<div id="p3-reminder
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
<
|
| 100 |
-
|
| 101 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 102 |
</div>
|
| 103 |
</div>
|
| 104 |
|
| 105 |
-
<div id="p3-copyright">
|
| 106 |
-
<img src="<?php echo plugins_url() . '/p3-profiler/css/logo.gif'; ?>" alt="<?php esc_attr_e( 'Logo', 'p3-profiler' ); ?>" title="<?php esc_attr_e( 'Logo', 'p3-profiler' ); ?>" />
|
| 107 |
-
<br />
|
| 108 |
-
<?php printf( __( 'P3 (Plugin Performance Profiler) is Copyright © %1$s - %2$s <a href="%3$s" target="_blank">GoDaddy.com</a>. All rights reserved.', 'p3-profiler' ), 2011, date( 'Y' ), 'http://www.godaddy.com/' ); ?>
|
| 109 |
-
</div>
|
| 46 |
}
|
| 47 |
});
|
| 48 |
});
|
| 49 |
+
|
| 50 |
// Callouts
|
| 51 |
$( "div#p3-reminder-wrapper" )
|
| 52 |
.corner( "round 8px" )
|
| 70 |
<label for="button-history-scans" class="history-tab"><?php _e( 'History', 'p3-profiler' ); ?></label>
|
| 71 |
<input type="radio" name="p3-nav" id="button-help" <?php echo $button_help_checked; ?> /><label for="button-help" class="help-tab"><?php _e( 'Help', 'p3-profiler' ); ?></label>
|
| 72 |
</div>
|
| 73 |
+
|
| 74 |
<div id="p3-scan-label">
|
| 75 |
<?php if ( !empty( self::$profile ) ) : ?>
|
| 76 |
<?php _e( 'Scan name:', 'p3-profiler' ); ?> <?php echo self::$profile->profile_name; ?>
|
| 92 |
|
| 93 |
</div>
|
| 94 |
|
| 95 |
+
<div id="p3-footer-wrapper">
|
| 96 |
+
<div id="p3-reminder">
|
| 97 |
+
<div id="p3-reminder-wrapper">
|
| 98 |
+
<?php _e( 'Do you like this plugin?', 'p3-profiler' ); ?>
|
| 99 |
+
<ul>
|
| 100 |
+
<li><a href="http://twitter.com/home?status=<?php echo rawurlencode( sprintf( __( 'I just optimized my WordPress site with %1$s %2$s', 'p3-profiler' ), '#p3plugin', 'http://wordpress.org/extend/plugins/p3-profiler/') ); ?>" target="_blank"><?php _e( 'Tweet about it', 'p3-profiler' ); ?></a></li>
|
| 101 |
+
<li><a href="http://wordpress.org/extend/plugins/p3-profiler/" target="_blank"><?php _e( 'Rate it on the repository', 'p3-profiler' ); ?></a></li>
|
| 102 |
+
</ul>
|
| 103 |
+
</div>
|
| 104 |
+
</div>
|
| 105 |
+
|
| 106 |
+
<div id="p3-copyright">
|
| 107 |
+
<img src="<?php echo plugins_url() . '/p3-profiler/css/logo.png'; ?>" alt="<?php esc_attr_e( 'Logo', 'p3-profiler' ); ?>" title="<?php esc_attr_e( 'Logo', 'p3-profiler' ); ?>" />
|
| 108 |
+
<br />
|
| 109 |
+
<?php printf( __( 'P3 (Plugin Performance Profiler) is Copyright © %1$s - %2$s <a href="%3$s" target="_blank">GoDaddy.com</a>. All rights reserved.', 'p3-profiler' ), 2011, date( 'Y' ), 'http://www.godaddy.com/' ); ?>
|
| 110 |
</div>
|
| 111 |
</div>
|
| 112 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
