WP Performance Score Booster - Version 1.2.1

Version Description

Download this release

Release Info

Developer dipakcg
Plugin Icon 128x128 WP Performance Score Booster
Version 1.2.1
Comparing to
See all releases

Code changes from version 1.2 to 1.2.1

Files changed (2) hide show
  1. readme.txt +6 -4
  2. wp-performance-score-booster.php +6 -29
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: dipakcg
3
  Tags: performance, speed, time, query, strings, gzip, compression, caching, boost, pingdom, gtmetrix, yslow, pagespeed, enqueue, scripts
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3S8BRPLWLNQ38
5
  Requires at least: 3.5
6
- Tested up to: 4.0
7
- Stable tag: 1.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -16,7 +16,6 @@ This plugin speed-up page load times and improve website scores in services like
16
  = This plugin will... =
17
  * Remove any query strings from static resources like CSS & JS files
18
  * Enable GZIP compression (compress text, html, javascript, css, xml and so on)
19
- * Enqueue scripts to footer
20
  * Add Vary: Accept-Encoding header, and
21
  * Set expires caching (leverage browser caching).
22
 
@@ -28,7 +27,7 @@ This plugin speed-up page load times and improve website scores in services like
28
  == Frequently Asked Questions ==
29
  = What does this plugin do? =
30
 
31
- It speed-up page load times and improve website scores in services like PageSpeed, YSlow, Pingdom and GTmetrix. It will remove any query strings from static resources like CSS & JS files, enable GZIP compression (compress text, html, javascript, css, xml and so on), enqueue scripts to footer, add Vary: Accept-Encoding header and set expires caching (leverage browser caching).
32
 
33
  = Any specific requirements for this plugin to work? =
34
 
@@ -43,6 +42,9 @@ Pretty much, yeah.
43
  1. Admin Settings
44
 
45
  == Changelog ==
 
 
 
46
  = 1.2, Nov 17, 2014 =
47
  * Added feature to enqueue scripts to footer
48
  * Added support for Vary: Accept-Encoding header
3
  Tags: performance, speed, time, query, strings, gzip, compression, caching, boost, pingdom, gtmetrix, yslow, pagespeed, enqueue, scripts
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3S8BRPLWLNQ38
5
  Requires at least: 3.5
6
+ Tested up to: 4.1
7
+ Stable tag: 1.2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
16
  = This plugin will... =
17
  * Remove any query strings from static resources like CSS & JS files
18
  * Enable GZIP compression (compress text, html, javascript, css, xml and so on)
 
19
  * Add Vary: Accept-Encoding header, and
20
  * Set expires caching (leverage browser caching).
21
 
27
  == Frequently Asked Questions ==
28
  = What does this plugin do? =
29
 
30
+ It speed-up page load times and improve website scores in services like PageSpeed, YSlow, Pingdom and GTmetrix. It will remove any query strings from static resources like CSS & JS files, enable GZIP compression (compress text, html, javascript, css, xml and so on), add Vary: Accept-Encoding header and set expires caching (leverage browser caching).
31
 
32
  = Any specific requirements for this plugin to work? =
33
 
42
  1. Admin Settings
43
 
44
  == Changelog ==
45
+ = 1.2.1, Nov 17, 2014 =
46
+ * Removed (temporarily) feature to enqueue scripts to footer
47
+
48
  = 1.2, Nov 17, 2014 =
49
  * Added feature to enqueue scripts to footer
50
  * Added support for Vary: Accept-Encoding header
wp-performance-score-booster.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: WP Performance Score Booster
4
  Plugin URI: https://github.com/dipakcg/wp-performance-score-booster
5
  Description: Speed-up page load times and improve website scores in services like PageSpeed, YSlow, Pingdom and GTmetrix.
6
  Author: Dipak C. Gajjar
7
- Version: 1.2
8
  Author URI: http://www.dipakgajjar.com/
9
  */
10
 
@@ -13,9 +13,9 @@ if (!defined('WPPSB_PLUGIN_VERSION')) {
13
  define('WPPSB_PLUGIN_VERSION', 'wppsb_plugin_version');
14
  }
15
  if (!defined('WPPSB_PLUGIN_VERSION_NUM')) {
16
- define('WPPSB_PLUGIN_VERSION_NUM', '1.2');
17
  }
18
- add_option(WPPSB_PLUGIN_VERSION, WPPSB_PLUGIN_VERSION_NUM);
19
 
20
  // Register with hook 'wp_enqueue_scripts', which can be used for front end CSS and JavaScript
21
  add_action( 'admin_init', 'wppsb_add_stylesheet' );
@@ -130,27 +130,6 @@ EOD;
130
  return $vary_accept_encoding_header . $rules;
131
  }
132
 
133
- // Defer parsing of java-script (to load at last)
134
- /* function defer_parsing_of_js ( $src ) {
135
- if ( FALSE === strpos( $src, '.js' ) )
136
- return $src;
137
- if ( strpos( $src, 'jquery.js' ) )
138
- return $src;
139
- return "$src' defer='defer";
140
- }
141
- add_filter( 'clean_url', 'defer_parsing_of_js', 11, 1 ); */
142
-
143
- // Enqueue scripts in the footer to speed-up page load
144
- /* function footer_enqueue_scripts() {
145
- remove_action('wp_head', 'wp_print_scripts');
146
- // remove_action('wp_head', 'wp_print_head_scripts', 9);
147
- remove_action('wp_head', 'wp_enqueue_scripts', 1);
148
- add_action('wp_footer', 'wp_print_scripts', 5);
149
- // add_action('wp_footer', 'wp_print_head_scripts', 5);
150
- add_action('wp_footer', 'wp_enqueue_scripts', 5);
151
- }
152
- add_action('after_setup_theme', 'footer_enqueue_scripts'); */
153
-
154
  function wppsb_admin_options() {
155
  ?>
156
  <div class="wrap">
@@ -286,13 +265,11 @@ function wppsb_deactivate_plugin() {
286
  remove_filter( 'script_loader_src', 'wppsb_remove_query_strings_emp');
287
  remove_filter( 'style_loader_src', 'wppsb_remove_query_strings_emp');
288
  remove_filter( 'mod_rewrite_rules', 'wppsb_enable_gzip_filter');
289
- remove_filter('mod_rewrite_rules', 'wppsb_vary_accept_encoding_filter');
290
  remove_filter( 'mod_rewrite_rules', 'wppsb_expire_caching_filter');
291
 
292
- // Delete default options value in the database
293
- /* delete_option( 'wppsb_remove_query_strings' );
294
- delete_option( 'wppsb_enable_gzip' );
295
- delete_option( 'wppsb_expire_caching' ); */
296
 
297
  flush_rewrite_rules();
298
  }
4
  Plugin URI: https://github.com/dipakcg/wp-performance-score-booster
5
  Description: Speed-up page load times and improve website scores in services like PageSpeed, YSlow, Pingdom and GTmetrix.
6
  Author: Dipak C. Gajjar
7
+ Version: 1.2.1
8
  Author URI: http://www.dipakgajjar.com/
9
  */
10
 
13
  define('WPPSB_PLUGIN_VERSION', 'wppsb_plugin_version');
14
  }
15
  if (!defined('WPPSB_PLUGIN_VERSION_NUM')) {
16
+ define('WPPSB_PLUGIN_VERSION_NUM', '1.2.1');
17
  }
18
+ update_option(WPPSB_PLUGIN_VERSION, WPPSB_PLUGIN_VERSION_NUM);
19
 
20
  // Register with hook 'wp_enqueue_scripts', which can be used for front end CSS and JavaScript
21
  add_action( 'admin_init', 'wppsb_add_stylesheet' );
130
  return $vary_accept_encoding_header . $rules;
131
  }
132
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
133
  function wppsb_admin_options() {
134
  ?>
135
  <div class="wrap">
265
  remove_filter( 'script_loader_src', 'wppsb_remove_query_strings_emp');
266
  remove_filter( 'style_loader_src', 'wppsb_remove_query_strings_emp');
267
  remove_filter( 'mod_rewrite_rules', 'wppsb_enable_gzip_filter');
268
+ remove_filter( 'mod_rewrite_rules', 'wppsb_vary_accept_encoding_filter');
269
  remove_filter( 'mod_rewrite_rules', 'wppsb_expire_caching_filter');
270
 
271
+ // Delete plugin version options value in the database
272
+ delete_option( 'wppsb_plugin_version' );
 
 
273
 
274
  flush_rewrite_rules();
275
  }