Speed Booster Pack - Version 1.6

Version Description

  • Fixed some errors and missed codes from plugin fuctions.
Download this release

Release Info

Developer tiguan
Plugin Icon 128x128 Speed Booster Pack
Version 1.6
Comparing to
See all releases

Code changes from version 1.5 to 1.6

css/sbp_style.min.css CHANGED
@@ -1 +1 @@
1
- .wrap .sb-pack{margin-bottom:50px}.wrap .sb-pack .welcome-panel h4{margin:1.33em 0 20px}.wrap .sb-pack .sbp-title-div{height:50px;clear:both}.wrap .sb-pack .sbp-box hr{margin-left:70px}.wrap .sb-pack .sbp-1{padding-top:10px}.wrap .sb-pack .sbp-2{padding-bottom:15px}.wrap .sb-pack .sbp-3{padding-top:5px}.wrap .sb-pack .sbp-title-div .sbp-title{font-size:23px;font-weight:300;line-height:26px;padding-top:16px;padding-right:15px;display:block;float:left}.wrap .sb-pack .sbp-box{background:#fff;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,0.04);padding:15px;margin-bottom:15px;position:relative;overflow:hidden}.wrap .sb-pack .sbp-box p{margin:5px 0 5px 70px;color:#777}.wrap .sb-pack .sbp-infos{display:block;margin:0 auto;padding-left:70px;font-weight:700;color:#777}.wrap .sb-pack .sbp-infos span{color:#777;font-weight:400}.wrap .sb-pack .sbp-infos-title{font-weight:700;color:#777}.wrap .sb-pack .sbp-box-legend,.wrap .sb-pack .sbp-box-version{position:absolute;left:0;top:0;height:100%}.wrap .sb-pack .sbp-box-version{background:none repeat scroll 0 0 #80828f;padding:20px 15px}.wrap .sb-pack .sbp-box-legend{background:none repeat scroll 0 0 #fcc500;padding:15px 15px}.wrap .sb-pack .sbp-box-legend:hover{background-color:#f39c12}.wrap .sb-pack .sbp-box-version:hover{background-color:#6c6e79}.wrap .sb-pack .sbp-icon-help,.wrap .sb-pack .sbp-icon-version{color:#FFF;font-size:25px}.wrap .sb-pack .sbp-icon:before{content:"\f185";display:inline-block;-webkit-font-smoothing:antialiased;font:normal 36px/0.7 'dashicons';vertical-align:top;color:#fa5148;padding-right:5px}.wrap .sb-pack label{display:inline-block;cursor:pointer;position:relative;padding-left:35px;font-size:16px}.wrap .sb-pack label:before{content:"\2717";font-size:16px;-webkit-font-smoothing:antialiased;text-align:center;color:#fff;display:inline-block;width:24px;height:24px;margin-right:10px;position:absolute;left:0;background:#c9d6e2;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);box-shadow:inset 0 1px 2px rgba(0,0,0,0.1)}.wrap .sb-pack input[type=checkbox]{display:none}.wrap .sb-pack input[type=checkbox]:checked+label:before{content:"\2714";background:#2dcb73;text-shadow:1px 1px 1px #148d44;font-size:16px;-webkit-font-smoothing:antialiased;color:#fff;text-align:center}.wrap .sb-pack .sbp-icon-version:before{content:"\f348";display:inline-block;-webkit-font-smoothing:antialiased;font:normal 30px/1 'dashicons';vertical-align:top}.wrap .sb-pack .sbp-icon-help:before{content:"\f123";display:inline-block;-webkit-font-smoothing:antialiased;font:normal 30px/1 'dashicons';vertical-align:top}.wrap .sb-pack .sbp-stats{font-size:16px}.wrap .sb-pack .sbp-progress.time,.wrap .sb-pack .sbp-progress.queries{height:20px;width:80%;display:inline-block;position:relative;background-color:#f1f2f7;overflow:hidden;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);box-shadow:inset 0 1px 2px rgba(0,0,0,0.1)}.wrap .sbp-progress.time>span,.wrap .sbp-progress.queries>span{background-color:#7edba5;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0,#7edba5),color-stop(1,#2dcb73));background-image:-webkit-linear-gradient(top,#7edba5,#2dcb73);background-image:-moz-linear-gradient(top,#7edba5,#2dcb73);background-image:-ms-linear-gradient(top,#7edba5,#2dcb73);background-image:-o-linear-gradient(top,#7edba5,#f36d0a);color:#fff;width:0;max-width:98%;float:left;display:block;height:100%;position:relative;overflow:hidden}.wrap .sb-pack .sbp-progress.time>span{-webkit-animation:progress-bar-time 2s 1 forwards;-moz-animation:progress-bar-time 2s 1 forwards;-ms-animation:progress-bar-time 2s 1 forwards;-o-animation:progress-bar-time 2s 1 forwards;animation:progress-bar-time 2s 1 forwards}.wrap .sb-pack .sbp-progress.queries>span{-webkit-animation:progress-bar-queries 2s 1 forwards;-moz-animation:progress-bar-queries 2s 1 forwards;-ms-animation:progress-bar-queries 2s 1 forwards;-o-animation:progress-bar-queries 2s 1 forwards;animation:progress-bar-queries 2s 1 forwards}.wrap .sb-pack .sbp-values{float:right;padding:0 5px;background-color:#3498db;color:#fff;width:14%;height:20px;line-height:19px;text-align:center;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.wrap .sb-pack .sbp-numbers{-webkit-animation:opacity 2s;-moz-animation:opacity 2s;-ms-animation:opacity 2s;-o-animation:opacity 2s;animation:opacity 2s;transition-delay:2s;-moz-transition-delay:2s;-webkit-transition-delay:2s;-o-transition-delay:2s}@keyframes opacity{from{opacity:0}to{opacity:1}}@-moz-keyframes opacity{from{opacity:0}to{opacity:1}}@-webkit-keyframes opacity{from{opacity:0}to{opacity:1}}@-ms-keyframes opacity{from{opacity:0}to{opacity:1}}​ @-o-keyframes opacity{from{opacity:0}to{opacity:1}}​
1
+ .wrap .sb-pack{margin-bottom:50px}.wrap .sb-pack .welcome-panel h4{margin:1.33em 0 20px}.wrap .sb-pack .sbp-title-div{height:50px;clear:both}.wrap .sb-pack .php-version{margin-top:20px;border:1px solid #E5E5E5;padding:12px 10px;background-color:#F1F1F1;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.wrap .sb-pack .sbp-box hr{margin-left:70px}.wrap .sb-pack .sbp-1{padding-top:10px}.wrap .sb-pack .sbp-2{padding-bottom:15px}.wrap .sb-pack .sbp-3{padding-top:5px}.wrap .sb-pack .sbp-title-div .sbp-title{font-size:23px;font-weight:300;line-height:26px;padding-top:16px;padding-right:15px;display:block;float:left}.wrap .sb-pack .sbp-box{background:#fff;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,0.04);padding:15px;margin-bottom:15px;position:relative;overflow:hidden}.wrap .sb-pack .sbp-box p{margin:5px 0 5px 70px;color:#777}.wrap .sb-pack .sbp-infos{display:block;margin:0 auto;padding-left:70px;font-weight:700;color:#777}.wrap .sb-pack .sbp-infos span{color:#777;font-weight:400}.wrap .sb-pack .sbp-infos-title{font-weight:700;color:#777}.wrap .sb-pack .sbp-box-legend,.wrap .sb-pack .sbp-box-version{position:absolute;left:0;top:0;height:100%}.wrap .sb-pack .sbp-box-version{background:none repeat scroll 0 0 #80828f;padding:20px 15px}.wrap .sb-pack .sbp-box-legend{background:none repeat scroll 0 0 #fcc500;padding:15px 15px}.wrap .sb-pack .sbp-box-legend:hover{background-color:#f39c12}.wrap .sb-pack .sbp-box-version:hover{background-color:#6c6e79}.wrap .sb-pack .sbp-icon-help,.wrap .sb-pack .sbp-icon-version{color:#FFF;font-size:25px}.wrap .sb-pack .sbp-icon:before{content:"\f185";display:inline-block;-webkit-font-smoothing:antialiased;font:normal 36px/0.7 'dashicons';vertical-align:top;color:#fa5148;padding-right:5px}.wrap .sb-pack label{display:inline-block;cursor:pointer;position:relative;padding-left:35px;font-size:16px}.wrap .sb-pack label:before{content:"\2717";font-size:16px;-webkit-font-smoothing:antialiased;text-align:center;color:#fff;display:inline-block;width:24px;height:24px;margin-right:10px;position:absolute;left:0;background:#c9d6e2;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);box-shadow:inset 0 1px 2px rgba(0,0,0,0.1)}.wrap .sb-pack input[type=checkbox]{display:none}.wrap .sb-pack input[type=checkbox]:checked+label:before{content:"\2714";background:#2dcb73;text-shadow:1px 1px 1px #148d44;font-size:16px;-webkit-font-smoothing:antialiased;color:#fff;text-align:center}.wrap .sb-pack .sbp-icon-version:before{content:"\f348";display:inline-block;-webkit-font-smoothing:antialiased;font:normal 30px/1 'dashicons';vertical-align:top}.wrap .sb-pack .sbp-icon-help:before{content:"\f123";display:inline-block;-webkit-font-smoothing:antialiased;font:normal 30px/1 'dashicons';vertical-align:top}.wrap .sb-pack .sbp-stats{font-size:16px}.wrap .sb-pack .sbp-progress.time,.wrap .sb-pack .sbp-progress.queries{height:30px;width:80%;display:inline-block;position:relative;background-color:#f1f2f7;overflow:hidden;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);box-shadow:inset 0 1px 2px rgba(0,0,0,0.1)}.wrap .sbp-progress.time>span,.wrap .sbp-progress.queries>span{background-color:#7edba5;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0,#7edba5),color-stop(1,#2dcb73));background-image:-webkit-linear-gradient(top,#7edba5,#2dcb73);background-image:-moz-linear-gradient(top,#7edba5,#2dcb73);background-image:-ms-linear-gradient(top,#7edba5,#2dcb73);background-image:-o-linear-gradient(top,#7edba5,#f36d0a);color:#fff;width:0;max-width:98%;float:left;display:block;height:100%;position:relative;overflow:hidden}.wrap .sb-pack .sbp-progress.time>span{-webkit-animation:progress-bar-time 2s 1 forwards;-moz-animation:progress-bar-time 2s 1 forwards;-ms-animation:progress-bar-time 2s 1 forwards;-o-animation:progress-bar-time 2s 1 forwards;animation:progress-bar-time 2s 1 forwards}.wrap .sb-pack .sbp-progress.queries>span{-webkit-animation:progress-bar-queries 2s 1 forwards;-moz-animation:progress-bar-queries 2s 1 forwards;-ms-animation:progress-bar-queries 2s 1 forwards;-o-animation:progress-bar-queries 2s 1 forwards;animation:progress-bar-queries 2s 1 forwards}.wrap .sb-pack .sbp-values{float:right;padding:0 5px;background-color:#3498db;color:#fff;width:14%;height:30px;line-height:30px;text-align:center;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.wrap .sb-pack .sbp-numbers{-webkit-animation:opacity 2s;-moz-animation:opacity 2s;-ms-animation:opacity 2s;-o-animation:opacity 2s;animation:opacity 2s;transition-delay:2s;-moz-transition-delay:2s;-webkit-transition-delay:2s;-o-transition-delay:2s;font-size: 16px}@keyframes opacity{from{opacity:0}to{opacity:1}}@-moz-keyframes opacity{from{opacity:0}to{opacity:1}}@-webkit-keyframes opacity{from{opacity:0}to{opacity:1}}@-ms-keyframes opacity{from{opacity:0}to{opacity:1}}​ @-o-keyframes opacity{from{opacity:0}to{opacity:1}}​
css/style.dev.css CHANGED
@@ -11,6 +11,16 @@
11
  clear: both;
12
  }
13
 
 
 
 
 
 
 
 
 
 
 
14
  .wrap .sb-pack .sbp-box hr {
15
  margin-left: 70px;
16
  }
@@ -178,7 +188,7 @@
178
  -------------------------------------------------------------- */
179
  .wrap .sb-pack .sbp-progress.time,
180
  .wrap .sb-pack .sbp-progress.queries {
181
- height: 20px;
182
  width: 80%;
183
  display: inline-block;
184
  position: relative;
@@ -236,8 +246,8 @@
236
  background-color: #3498DB;
237
  color: #fff;
238
  width: 14%;
239
- height: 20px;
240
- line-height: 19px;
241
  text-align: center;
242
  -webkit-border-radius: 4px;
243
  -moz-border-radius: 4px;
@@ -254,6 +264,7 @@
254
  -moz-transition-delay: 2s; /* Firefox 4 */
255
  -webkit-transition-delay: 2s; /* Safari and Chrome */
256
  -o-transition-delay: 2s; /* Opera */
 
257
  }
258
 
259
  @keyframes opacity {
11
  clear: both;
12
  }
13
 
14
+ .wrap .sb-pack .php-version {
15
+ margin-top: 20px;
16
+ border: 1px solid #E5E5E5;
17
+ padding: 12px 10px 12px 10px;
18
+ background-color: #F1F1F1;
19
+ -webkit-border-radius: 4px;
20
+ -moz-border-radius: 4px;
21
+ border-radius: 4px;
22
+ }
23
+
24
  .wrap .sb-pack .sbp-box hr {
25
  margin-left: 70px;
26
  }
188
  -------------------------------------------------------------- */
189
  .wrap .sb-pack .sbp-progress.time,
190
  .wrap .sb-pack .sbp-progress.queries {
191
+ height: 30px;
192
  width: 80%;
193
  display: inline-block;
194
  position: relative;
246
  background-color: #3498DB;
247
  color: #fff;
248
  width: 14%;
249
+ height: 30px;
250
+ line-height: 30px;
251
  text-align: center;
252
  -webkit-border-radius: 4px;
253
  -moz-border-radius: 4px;
264
  -moz-transition-delay: 2s; /* Firefox 4 */
265
  -webkit-transition-delay: 2s; /* Safari and Chrome */
266
  -o-transition-delay: 2s; /* Opera */
267
+ font-size: 16px;
268
  }
269
 
270
  @keyframes opacity {
inc/core.php CHANGED
@@ -212,6 +212,12 @@ public function sbp_junk_header_tags() {
212
  remove_action('wp_head', 'wp_generator');
213
  }
214
 
 
 
 
 
 
 
215
  } // END public function sbp_junk_header_tags
216
 
217
 
212
  remove_action('wp_head', 'wp_generator');
213
  }
214
 
215
+ // Remove all feeds
216
+ if ( isset( $sbp_options['remove_all_feeds'] ) ) {
217
+ remove_action( 'wp_head', 'feed_links_extra', 3 ); // remove the feed links from the extra feeds such as category feeds
218
+ remove_action( 'wp_head', 'feed_links', 2 ); // remove the feed links from the general feeds: Post and Comment Feed
219
+ }
220
+
221
  } // END public function sbp_junk_header_tags
222
 
223
 
inc/settings.php CHANGED
@@ -6,9 +6,9 @@ if( !class_exists( 'Speed_Booster_Pack_Options' ) ) {
6
 
7
  private $sbp_options;
8
 
9
- /*----------------------------------------------
10
  Construct the plugin object
11
- -----------------------------------------------*/
12
 
13
  public function __construct() {
14
 
@@ -40,9 +40,9 @@ if( !class_exists( 'Speed_Booster_Pack_Options' ) ) {
40
  }
41
 
42
 
43
- /*----------------------------------------------
44
  Global Variables used on options HTML page
45
- ----------------------------------------------*/
46
 
47
  global $sbp_options;
48
 
6
 
7
  private $sbp_options;
8
 
9
+ /*--------------------------------------------------------------------------------------------------------
10
  Construct the plugin object
11
+ ---------------------------------------------------------------------------------------------------------*/
12
 
13
  public function __construct() {
14
 
40
  }
41
 
42
 
43
+ /*--------------------------------------------------------------------------------------------------------
44
  Global Variables used on options HTML page
45
+ ---------------------------------------------------------------------------------------------------------*/
46
 
47
  global $sbp_options;
48
 
inc/template/options.php CHANGED
@@ -40,15 +40,17 @@
40
  <label for="sbp_settings[query_strings]"><?php _e( 'Remove query strings from static resources', 'sb-pack' ); ?></label>
41
  </p>
42
 
 
 
 
 
 
43
  <p>
44
  <input id="sbp_settings[font_awesome]" name="sbp_settings[font_awesome]" type="checkbox" value="1" <?php checked( 1, isset( $sbp_options['font_awesome'] ) ); ?> />
45
  <label for="sbp_settings[font_awesome]"><?php _e( 'Removes additional Font Awesome stylesheets', 'sb-pack' ); ?></label>
46
  </p>
47
 
48
- <p>
49
- <input id="sbp_settings[lazy_load]" name="sbp_settings[lazy_load]" type="checkbox" value="1" <?php checked( 1, isset( $sbp_options['lazy_load'] ) ); ?> />
50
- <label for="sbp_settings[lazy_load]"><?php _e( 'Lazy load images to improve page load times', 'sb-pack' ); ?></label>
51
- </p>
52
 
53
  </div> <!-- END welcome-panel-column -->
54
 
@@ -81,6 +83,11 @@
81
  <label for="sbp_settings[wp_generator]"><?php _e( 'Remove the WordPress Version Number', 'sb-pack' ); ?></label>
82
  </p>
83
 
 
 
 
 
 
84
  </div> <!-- END welcome-panel-column -->
85
 
86
 
@@ -88,7 +95,7 @@
88
 
89
  <h4> <?php _e( 'Page Load Stats', 'sb-pack' ); ?></h4>
90
 
91
- <span class="sbp-stats"><?php _e( 'Page loading time:', 'sb-pack' ); ?></span>
92
 
93
  <div class="sbp-progress time">
94
  <span></span>
@@ -112,6 +119,10 @@
112
  </div>
113
  </div>
114
 
 
 
 
 
115
  </div> <!-- END welcome-panel-column welcome-panel-last -->
116
 
117
  </div> <!-- END welcome-panel-column-container -->
40
  <label for="sbp_settings[query_strings]"><?php _e( 'Remove query strings from static resources', 'sb-pack' ); ?></label>
41
  </p>
42
 
43
+ <p>
44
+ <input id="sbp_settings[lazy_load]" name="sbp_settings[lazy_load]" type="checkbox" value="1" <?php checked( 1, isset( $sbp_options['lazy_load'] ) ); ?> />
45
+ <label for="sbp_settings[lazy_load]"><?php _e( 'Lazy load images to improve page load times', 'sb-pack' ); ?></label>
46
+ </p>
47
+
48
  <p>
49
  <input id="sbp_settings[font_awesome]" name="sbp_settings[font_awesome]" type="checkbox" value="1" <?php checked( 1, isset( $sbp_options['font_awesome'] ) ); ?> />
50
  <label for="sbp_settings[font_awesome]"><?php _e( 'Removes additional Font Awesome stylesheets', 'sb-pack' ); ?></label>
51
  </p>
52
 
53
+
 
 
 
54
 
55
  </div> <!-- END welcome-panel-column -->
56
 
83
  <label for="sbp_settings[wp_generator]"><?php _e( 'Remove the WordPress Version Number', 'sb-pack' ); ?></label>
84
  </p>
85
 
86
+ <p>
87
+ <input id="sbp_settings[remove_all_feeds]" name="sbp_settings[remove_all_feeds]" type="checkbox" value="1" <?php checked( 1, isset( $sbp_options['remove_all_feeds'] ) ); ?> />
88
+ <label for="sbp_settings[remove_all_feeds]"><?php _e( 'Remove all rss feed links from WP Head', 'sb-pack' ); ?></label>
89
+ </p>
90
+
91
  </div> <!-- END welcome-panel-column -->
92
 
93
 
95
 
96
  <h4> <?php _e( 'Page Load Stats', 'sb-pack' ); ?></h4>
97
 
98
+ <span class="sbp-stats"><?php _e( 'Page loading time in seconds:', 'sb-pack' ); ?></span>
99
 
100
  <div class="sbp-progress time">
101
  <span></span>
119
  </div>
120
  </div>
121
 
122
+ <div class="php-version">
123
+ <strong><?php _e( 'PHP Version:', 'sb-pack' ); ?></strong> <span><?php echo PHP_VERSION; ?>&nbsp;/&nbsp;<?php echo (PHP_INT_SIZE * 8) . __('Bit OS'); ?></span>
124
+ </div>
125
+
126
  </div> <!-- END welcome-panel-column welcome-panel-last -->
127
 
128
  </div> <!-- END welcome-panel-column-container -->
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: speed, optimization, performance, speed booster, scripts to the footer, Google Libraries, CDN, defer parsing of javascript, remove query strings, GTmetrix, Google PageSpeed, YSlow
5
  Requires at least: 3.6
6
  Tested up to: 3.9.1
7
- Stable tag: 1.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -65,10 +65,13 @@ Page Load Stats is a brief statistic displayed in the plugin options page. It di
65
  5. A new sub menu item `Speed Booster Pack` will appear in your main Settings menu.
66
 
67
  == Screenshots ==
68
- 1. Plugin options page, simple view (v1.4)
69
 
70
  == Changelog ==
71
 
 
 
 
72
  = 1.5 =
73
  * Added Lazy Load feature to improve the web page loading times of your images.
74
  * Added an option to remove all rss feed links from WP Head.
4
  Tags: speed, optimization, performance, speed booster, scripts to the footer, Google Libraries, CDN, defer parsing of javascript, remove query strings, GTmetrix, Google PageSpeed, YSlow
5
  Requires at least: 3.6
6
  Tested up to: 3.9.1
7
+ Stable tag: 1.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
65
  5. A new sub menu item `Speed Booster Pack` will appear in your main Settings menu.
66
 
67
  == Screenshots ==
68
+ 1. Plugin options page, simple view (v1.6)
69
 
70
  == Changelog ==
71
 
72
+ = 1.6 =
73
+ * Fixed some errors and missed codes from plugin fuctions.
74
+
75
  = 1.5 =
76
  * Added Lazy Load feature to improve the web page loading times of your images.
77
  * Added an option to remove all rss feed links from WP Head.
speed-booster-pack.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Speed Booster Pack
4
  * Plugin URI: http://wordpress.org/plugins/speed-booster-pack/
5
  * Description: Speed Booster Pack allows you to improve your page loading speed and get a higher score on the major speed testing services such as <a href="http://gtmetrix.com/">GTmetrix</a>, <a href="http://developers.google.com/speed/pagespeed/insights/">Google PageSpeed</a> or other speed testing tools.
6
- * Version: 1.5
7
  * Author: Tiguan
8
  * Author URI: http://tiguandesign.com
9
  * License: GPLv2
@@ -26,33 +26,34 @@
26
  FOUNDATION, INC., 51 FRANKLIN ST, FIFTH FLOOR, BOSTON, MA 02110-1301 USA
27
  */
28
 
29
- /*----------------------------------------------
30
  Global Variables
31
- ----------------------------------------------*/
32
 
33
  $sbp_options = get_option( 'sbp_settings', 'checked' ); // retrieve the plugin settings from the options table
34
 
35
- /*----------------------------------------------
36
  Define some useful plugin constants
37
- ----------------------------------------------*/
38
 
39
  define( 'SPEED_BOOSTER_PACK_RELEASE_DATE', date_i18n( 'F j, Y', '1400569200' ) ); // Defining plugin release date
40
  define( 'SPEED_BOOSTER_PACK_PATH', plugin_dir_path( __FILE__ ) ); // Defining plugin dir path
41
- define( 'SPEED_BOOSTER_PACK_VERSION', 'v1.5'); // Defining plugin version
 
42
 
43
 
44
- /*----------------------------------------------
45
  Main Plugin Class
46
- ----------------------------------------------*/
47
 
48
  if ( !class_exists( 'Speed_Booster_Pack' ) ) {
49
 
50
  class Speed_Booster_Pack {
51
 
52
 
53
- /*----------------------------------------------
54
  Function Construct
55
- ----------------------------------------------*/
56
 
57
  public function __construct() {
58
 
@@ -73,6 +74,9 @@ define( 'SPEED_BOOSTER_PACK_VERSION', 'v1.5'); // Defining plugin versi
73
  // Enqueue frontend scripts
74
  add_action( 'wp_enqueue_scripts', array( $this, 'sbp_enqueue_scripts' ) );
75
 
 
 
 
76
  // Filters
77
  $this->path = plugin_basename( __FILE__ );
78
  add_filter( "plugin_action_links_$this->path", array( $this, 'sbp_settings_link' ) );
@@ -80,9 +84,9 @@ define( 'SPEED_BOOSTER_PACK_VERSION', 'v1.5'); // Defining plugin versi
80
  } // END public function __construct
81
 
82
 
83
- /*----------------------------------------------
84
  Activate the plugin
85
- ----------------------------------------------*/
86
 
87
  public static function activate() {
88
 
@@ -100,18 +104,18 @@ define( 'SPEED_BOOSTER_PACK_VERSION', 'v1.5'); // Defining plugin versi
100
  } // END public static function activate
101
 
102
 
103
- /*----------------------------------------------
104
  Deactivate the plugin
105
- ----------------------------------------------*/
106
 
107
  public static function deactivate() {
108
  // Nothing to do yet
109
  } // END public static function deactivate
110
 
111
 
112
- /*----------------------------------------------
113
  CSS style of the plugin options page
114
- ----------------------------------------------*/
115
 
116
  function sbp_enqueue_styles( $hook ) {
117
 
@@ -124,22 +128,27 @@ define( 'SPEED_BOOSTER_PACK_VERSION', 'v1.5'); // Defining plugin versi
124
  } // End function sbp_enqueue_styles
125
 
126
 
127
- /*----------------------------------------------
128
  Enqueue Lazy Load scripts
129
- ----------------------------------------------*/
130
 
131
  static function sbp_enqueue_scripts() {
132
 
 
 
133
  if ( !is_admin() and isset( $sbp_options['lazy_load'] ) ) {
134
 
135
- wp_enqueue_script( 'sbp-lazy-load-images', plugin_dir_url( __FILE__ ) . 'js/sbp-lazy-load.js', array( 'jquery', 'sbp-jquery-sonar' ), SPEED_BOOSTER_PACK_VERSION, true );
136
- wp_enqueue_script( 'sbp-jquery-sonar', plugin_dir_url( __FILE__ ) . 'js/jquery.sonar.min.js', array( 'jquery' ), SPEED_BOOSTER_PACK_VERSION, true );
 
 
 
137
  }
138
  }
139
 
140
- /*----------------------------------------------
141
  Add settings link on plugins page
142
- ----------------------------------------------*/
143
 
144
  function sbp_settings_link( $links ) {
145
 
@@ -150,6 +159,42 @@ define( 'SPEED_BOOSTER_PACK_VERSION', 'v1.5'); // Defining plugin versi
150
  } // End function sbp_settings_link
151
 
152
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
153
  } // End class Speed_Booster_Pack
154
 
155
  } // End if (!class_exists("Speed_Booster_Pack")) (1)
3
  * Plugin Name: Speed Booster Pack
4
  * Plugin URI: http://wordpress.org/plugins/speed-booster-pack/
5
  * Description: Speed Booster Pack allows you to improve your page loading speed and get a higher score on the major speed testing services such as <a href="http://gtmetrix.com/">GTmetrix</a>, <a href="http://developers.google.com/speed/pagespeed/insights/">Google PageSpeed</a> or other speed testing tools.
6
+ * Version: 1.6
7
  * Author: Tiguan
8
  * Author URI: http://tiguandesign.com
9
  * License: GPLv2
26
  FOUNDATION, INC., 51 FRANKLIN ST, FIFTH FLOOR, BOSTON, MA 02110-1301 USA
27
  */
28
 
29
+ /*----------------------------------------------------------------------------------------------------------
30
  Global Variables
31
+ -----------------------------------------------------------------------------------------------------------*/
32
 
33
  $sbp_options = get_option( 'sbp_settings', 'checked' ); // retrieve the plugin settings from the options table
34
 
35
+ /*----------------------------------------------------------------------------------------------------------
36
  Define some useful plugin constants
37
+ -----------------------------------------------------------------------------------------------------------*/
38
 
39
  define( 'SPEED_BOOSTER_PACK_RELEASE_DATE', date_i18n( 'F j, Y', '1400569200' ) ); // Defining plugin release date
40
  define( 'SPEED_BOOSTER_PACK_PATH', plugin_dir_path( __FILE__ ) ); // Defining plugin dir path
41
+ define( 'SPEED_BOOSTER_PACK_VERSION', 'v1.6'); // Defining plugin version
42
+ define( 'SPEED_BOOSTER_PACK_NAME', 'Speed Booster Pack Plugin'); // Defining plugin name
43
 
44
 
45
+ /*----------------------------------------------------------------------------------------------------------
46
  Main Plugin Class
47
+ -----------------------------------------------------------------------------------------------------------*/
48
 
49
  if ( !class_exists( 'Speed_Booster_Pack' ) ) {
50
 
51
  class Speed_Booster_Pack {
52
 
53
 
54
+ /*----------------------------------------------------------------------------------------------------------
55
  Function Construct
56
+ -----------------------------------------------------------------------------------------------------------*/
57
 
58
  public function __construct() {
59
 
74
  // Enqueue frontend scripts
75
  add_action( 'wp_enqueue_scripts', array( $this, 'sbp_enqueue_scripts' ) );
76
 
77
+ // Render debugging information
78
+ add_action( 'wp_footer', array( $this, 'sbp_debugg' ), 999 );
79
+
80
  // Filters
81
  $this->path = plugin_basename( __FILE__ );
82
  add_filter( "plugin_action_links_$this->path", array( $this, 'sbp_settings_link' ) );
84
  } // END public function __construct
85
 
86
 
87
+ /*----------------------------------------------------------------------------------------------------------
88
  Activate the plugin
89
+ -----------------------------------------------------------------------------------------------------------*/
90
 
91
  public static function activate() {
92
 
104
  } // END public static function activate
105
 
106
 
107
+ /*----------------------------------------------------------------------------------------------------------
108
  Deactivate the plugin
109
+ -----------------------------------------------------------------------------------------------------------*/
110
 
111
  public static function deactivate() {
112
  // Nothing to do yet
113
  } // END public static function deactivate
114
 
115
 
116
+ /*----------------------------------------------------------------------------------------------------------
117
  CSS style of the plugin options page
118
+ -----------------------------------------------------------------------------------------------------------*/
119
 
120
  function sbp_enqueue_styles( $hook ) {
121
 
128
  } // End function sbp_enqueue_styles
129
 
130
 
131
+ /*----------------------------------------------------------------------------------------------------------
132
  Enqueue Lazy Load scripts
133
+ -----------------------------------------------------------------------------------------------------------*/
134
 
135
  static function sbp_enqueue_scripts() {
136
 
137
+ global $sbp_options;
138
+
139
  if ( !is_admin() and isset( $sbp_options['lazy_load'] ) ) {
140
 
141
+ // We combined 'jquery.sonar.js' and 'lazy-load.js' (commented out below) in a single minified file to reduce the number of js files.
142
+ wp_enqueue_script( 'sbp-lazy-load-images', plugin_dir_url( __FILE__ ) . 'js/sbp-lazy-load.min.js', array( 'jquery' ), SPEED_BOOSTER_PACK_VERSION, true );
143
+
144
+ // wp_enqueue_script( 'sbp-lazy-load-images', plugin_dir_url( __FILE__ ) . 'js/lazy-load.js', array( 'jquery', 'sbp-jquery-sonar' ), SPEED_BOOSTER_PACK_VERSION, true );
145
+ // wp_enqueue_script( 'sbp-jquery-sonar', plugin_dir_url( __FILE__ ) . 'js/jquery.sonar.js', array( 'jquery' ), SPEED_BOOSTER_PACK_VERSION, true );
146
  }
147
  }
148
 
149
+ /*----------------------------------------------------------------------------------------------------------
150
  Add settings link on plugins page
151
+ -----------------------------------------------------------------------------------------------------------*/
152
 
153
  function sbp_settings_link( $links ) {
154
 
159
  } // End function sbp_settings_link
160
 
161
 
162
+ /*----------------------------------------------------------------------------------------------------------
163
+ Render the plugin name, its version and active options in page source, useful for debugging
164
+ -----------------------------------------------------------------------------------------------------------*/
165
+
166
+ function sbp_debugg() {
167
+
168
+ global $sbp_options;
169
+
170
+ echo '<!-- We need this for debugging our ' . SPEED_BOOSTER_PACK_NAME . ' ' . SPEED_BOOSTER_PACK_VERSION . ' -->' . "\n";
171
+
172
+ if ( isset( $sbp_options['jquery_to_footer'] ) ) {
173
+ echo '<!-- Move scripts to the footer: active -->' . "\n";
174
+ } // End if
175
+
176
+ if ( isset( $sbp_options['use_google_libs'] ) ) {
177
+ echo '<!-- Load JS from Google Libraries: active -->' . "\n";
178
+ } // End if
179
+
180
+ if ( isset( $sbp_options['defer_parsing'] ) ) {
181
+ echo '<!-- Defer parsing of javascript files: active -->' . "\n";
182
+ } // End if
183
+
184
+ if ( isset( $sbp_options['query_strings'] ) ) {
185
+ echo '<!-- Remove query strings from static resources: active -->' . "\n";
186
+ } // End if
187
+
188
+ if ( isset( $sbp_options['lazy_load'] ) ) {
189
+ echo '<!-- Lazy load images to improve page load times: active -->' . "\n";
190
+ } // End if
191
+
192
+ if ( isset( $sbp_options['font_awesome'] ) ) {
193
+ echo '<!-- Removes additional Font Awesome stylesheets: active -->' . "\n";
194
+ } // End if
195
+
196
+ } // End function sbp_debugg
197
+
198
  } // End class Speed_Booster_Pack
199
 
200
  } // End if (!class_exists("Speed_Booster_Pack")) (1)