Speed Booster Pack - Version 4.2.2

Version Description

Download this release

Release Info

Developer optimocha
Plugin Icon 128x128 Speed Booster Pack
Version 4.2.2
Comparing to
See all releases

Code changes from version 4.2.1 to 4.2.2

.gitignore DELETED
@@ -1 +0,0 @@
1
- /includes/templates/wp-config-inject.php
 
README.md DELETED
@@ -1,207 +0,0 @@
1
- === Speed Booster Pack ⚡ PageSpeed Optimization Suite ===
2
- Plugin Name: Speed Booster Pack ⚡ PageSpeed Optimization Suite
3
- Contributors: optimocha, speedboosterpack
4
- Tags: speed, pagespeed, optimization, core web vitals, cache
5
- Requires at least: 4.6
6
- Tested up to: 5.8
7
- Requires PHP: 5.6
8
- Stable tag: 4.2.1
9
- License: GPLv3 or later
10
- License URI: https://www.gnu.org/licenses/gpl-3.0.html
11
-
12
- PageSpeed optimization is vital for SEO: A faster website equals better conversions. Optimize your Core Web Vitals metrics (CLS, LCP, TBT) today!
13
-
14
- == Description ==
15
-
16
- WordPress is, hands down, the most popular content management system in the world. But like all giants, WordPress gets bigger and bigger every release; and it needs you to stay healthy and fast. Otherwise, your website can get slower and nobody likes slow websites. *NOBODY*. Not only your visitors hate your website, but also search engines (especially Google) penalizes you and drop your search engine rankings.
17
-
18
- Improving your site's speed will get you a better score on major speed testing services such as [Google PageSpeed](https://developers.google.com/speed/pagespeed/insights/), [GTmetrix](https://gtmetrix.com/), [Pingdom](https://tools.pingdom.com/), [WebPageTest](https://www.webpagetest.org/) and will also improve your overall site's usability. This will help Google and other search engines to rank your site higher in search results thus sending more traffic.
19
-
20
- **Speed Booster Pack** is maintained & operated by **[Optimocha](https://optimocha.com/)**, a company that offers special speed optimization services filled with people who *obsess* about speed!
21
-
22
- ### Benefits of Speed Booster Pack
23
-
24
- Each second of delay can cause up to 20% loss in conversion rates ([source: Google](https://web.dev/why-speed-matters/)). "Conversion" means *converting* visitors to something more than a "visitor": leads, customers, subscribers, followers... you name it.
25
-
26
- You might lose more than half of your visitors if your website loads **slower than three seconds**! ([source: Google again](https://www.blog.google/products/admanager/the-need-for-mobile-speed/)) More than half of your potential customers might get back to the search results page and navigate to your competitor. This is a huge problem, and it's hugely overlooked among other SEO-related concerns. People don't realize how important speed is, in the eyes of search engines.
27
-
28
- That's where Speed Booster Pack comes in: With its ever-evolving codebase, Speed Booster Pack aims to increase your site performance, page load times and PageSpeed (Lighthouse) scores! Optimocha, the company behind Speed Booster Pack, has a team with a pathological obsession for speed; so you can be sure that your site will be in good hands.
29
-
30
- ### How to optimize PageSpeed scores with Speed Booster Pack
31
-
32
- With our huge set of features, of course!
33
-
34
- 🌟 **Core Web Vitals**: Speed Booster Pack is made to improve your [Largest Contentful Paint (LCP)](https://web.dev/lcp/), [Total Blocking Time (TBT)](https://web.dev/tbt/) and [Cumulative Layout Shift (CLS)](https://web.dev/cls/) metrics, which are also known together as [Core Web Vitals](https://web.dev/vitals/). (Officially, TBT is not among of the Core Web Vitals metrics but [First Input Delay (FID)](https://web.dev/fid/) is. However, Google [recommends using TBT instead of FID](https://web.dev/vitals/#lab-tools-to-measure-core-web-vitals).) With the right configuration, you can get your PageSpeed scores higher than ever!
35
- 🌟 **Caching**: Cache your pages into static HTML files, reduce database queries, get a faster website almost immediately. What's not to love about caching?
36
- ⭐ **Optimize Google Fonts**: Did you know that there are better ways to load Google fonts? We like to brag about finding one of the best ways.
37
- 🌟 **Lazy Load**: It's a disheartening issue that page speed tools encourage laziness... Just kidding, we love being lazy. And search engines will love your pages when you enable lazy loading for images, videos and iframes (except for the above-the-fold stuff, trust us).
38
- ⭐ **Custom Code Manager**: Hey, you know that huge live chat widget, or the weird script that you really, *really* have to load? Well, you can probably delay them so the rest of the page can load first.
39
- 🌟 **Optimize JavaScript**: You know that totally-not-cryptic "Remove Render-Blocking JavaScript" recommendation? Speed Booster Pack can help defer them all until after the whole HTML is rendered, or at least move all scripts to footer. Works like a charm.
40
- 🌟 **Optimize CSS**: Who needs all those different CSS files when you can inline them all into your page source? Especially when your CSS footprint is so small? Moreover, you can use the "[Critical CSS](https://web.dev/extract-critical-css/)" feature to essentially lazy-load all your CSS except for the CSS for above-the-fold.
41
- 🌟 **Preload Assets**: Have some fonts that load in all your pages, or a script, or some CSS files? Preloading them will help modern browsers serve your pages way faster!
42
- ⭐ **Localize Google Analytics & Tag Manager**: Tracker scripts aren't the worst things that'll slow your pages down, but they cause the most "recommendations". Localizing Google Analytics and/or Google Tag Manager is a good idea to speed up your website then, right? Right?
43
- ⭐ **Enable CDN**: Integrate your content delivery network to your website by rewriting all static asset URLs with your CDN domain.
44
- ⭐ **Cloudflare Integration**: Connect to your Cloudflare account so you can clear your cache every time your page cache is cleared.
45
- 🌟 **Plugin-specific Optimizations**: Disable WooCommerce cart fragments, dequeue Jetpack's devicepx script, and more to come!
46
- 🌟 **Dequeue Core Scripts/Styles**: Dashicons, jQuery Migrate, emoji script, post embed script... If you don't need them, you can now choose to prevent them from loading in the first place... which can get you to the first place on your Google SERPs.
47
- ⭐ **Declutter HEAD**: Do you think all that useless junk in your <head> should be gone? Us too! You know what they say: A clear <head> works faster.
48
- ⭐ **Other Features**: Minify HTML, enable instant.page, trim query strings, disable self pingbacks, optimize the Heartbeat API, set a limit for post revisions, change autosave interval... Did we forget anything?
49
-
50
- We're constantly working on new features so stay tuned for more and more on every major release!
51
-
52
- For complete usage instructions, you can visit the [Speed Booster Pack documentation](https://speedboosterpack.com/docs/) page.
53
-
54
- ### Translators are always welcome & always rewarded!
55
-
56
- More than half of WordPress users don't speak English, and missing out so much! That's why Optimocha is always looking for volunteers to [translate Speed Booster Pack](https://translate.wordpress.org/projects/wp-plugins/speed-booster-pack/) so more and more people can benefit from its goodness. Oh, and we reward the people who help us! Reach out to us to become a translation editor in your language, and get rewarded with special discount codes of our services!
57
-
58
- ### About [Optimocha](https://optimocha.com/) Speed Optimization Services
59
-
60
- Speed optimization plugins might do a great job at optimizing your website and increasing your PageSpeed scores, but even they can't perform well on websites with poor setups. There are lots of factors to think about when it comes to web performance optimization. That's where we, as Optimocha, come in: We log in to your website; create a specialized optimization report considering all your plugins, your theme settings, your hosting environment and your whole content; then we get our hands dirty to get your website as fast as possible. To learn more about our services and get in touch with us, here are some links:
61
-
62
- * [One-time speed optimization services](https://optimocha.com/speed-optimization-for-wordpress/)
63
- * [Monthly speed optimization & maintenance services](https://optimocha.com/monthly-wordpress-optimization-maintenance/)
64
- * [Contact Optimocha](https://optimocha.com/contact/)
65
-
66
- ### Disclaimer
67
-
68
- Even though the plugin works perfectly well on most WordPress websites, it's not perfect. We just need to make sure that we're on the same page: This plugin, no matter how hard we work on it, might have bugs in it and your site has an off chance to have issues with the plugin. It doesn't do anything permanent to your pages' source codes, so deactivating the plugin and clearing your browser & server caches will solve any kind of issue it might cause. Other than that, we won't be able to take responsibility if something else clashes with Speed Booster Pack.
69
-
70
- == Installation ==
71
-
72
- 1. Download the plugin (.zip file) on your hard drive.
73
- 2. Unzip the zip file contents.
74
- 3. Upload the `speed-booster-pack` folder to the `/wp-content/plugins/` directory.
75
- 4. Activate the plugin through the 'Plugins' menu in WordPress.
76
- 5. A new sub menu item `Speed Booster` will appear in your main Settings menu.
77
-
78
- == Frequently Asked Questions ==
79
-
80
- For complete usage instructions, you can visit the [Speed Booster Pack documentation](https://speedboosterpack.com/docs/) page.
81
-
82
- = I like your plugin, how do I thank you? =
83
-
84
- We don't accept any donations, if that's what you're asking! 😊 But we do like to have our users [review the plugin](https://wordpress.org/support/plugin/speed-booster-pack/reviews/#new-post) with a fair star rating. And we always appreciate you recommending our plugin to other people!
85
-
86
- = I have a bug report! =
87
-
88
- We love you already! ❤ Please issue your bug report [over GitHub](https://github.com/optimocha/speed-booster-pack/) so we can get started squashing it. **If it's a legitimate bug, you'll be awarded with discount coupons to our services!**
89
-
90
- = This plugin broke my site! =
91
-
92
- It's possible that the theme or your plugins might be using some old code that isn't compatible with Speed Booster Pack's code. If that's the case, try disabling some features in the Advanced tab. If that doesn't work, try deactivating the plugin and clear your browser & server caches. If that does the trick, reach out to us so we can help you. If the site is *still* broken, though, there's obviously another reason for your site breaking because everything Speed Booster Pack does, it does it on-the-fly. Deactivating the plugin (and clearing your caches) will make everything go away.
93
-
94
- = I need more than Speed Booster Pack! =
95
-
96
- Our main business is special speed optimization services, tailored for every website we work on. [On our website](https://optimocha.com/), you can review our speed optimization packages and contact us.
97
-
98
- = How often do you update the plugin? =
99
-
100
- All the time! We're always looking for new ways to get this plugin to a better state: We code new features, we fix existing bugs, and we try our best to make Speed Booster Pack more and more popular. And we always appreciate a helping hand: If you've got a new feature to offer, [you can suggest it over here](https://speedboosterpack.com/contact/). If we eventually make it happen and/or you help us make it happen, you'll be rewarded with handsome discount coupons or even free speed optimization services!
101
-
102
- == Screenshots ==
103
- 1. Plugin options page
104
-
105
- == Changelog ==
106
-
107
- = 4.2.1 =
108
-
109
- *Release Date: 03 July 2021*
110
-
111
- * **Fixed**: Tiny hotfix for a bug that causes an error during the plugin update (but completely harmless).
112
-
113
- = 4.2.0 =
114
-
115
- *Release Date: 02 July 2021*
116
-
117
- * **NEW - Database Engine Converter Tool**: Lets you convert database table engines from MyISAM to InnoDB.
118
- * **NEW - Content-specific preloads**: Allows you to set `<link rel="preload" ... />` rules for each post, page or other custom post types.
119
- * **NEW - `Dequeue comment-reply.js`**: Dequeues the comment reply script.
120
- * **Improved**: More Cloudflare settings, included their brand new Automatic Platform Optimization (APO)!
121
- * **Improved**: Notifications of Speed Booster Pack are less annoying now, mostly moved to the Speed Booster Pack settings page.
122
- * **Improved**: JS optimization settings are improved by splitting "Move JS to footer" and "Defer JavaScript" features into two different settings. Make sure your JS optimization settings are still working after this update!
123
- * **Improved**: The CSS optimization PHP class is rewritten. User feedback welcome after this update! :)
124
- * **Improved**: Caching feature is greatly improved, both in terms of performance and code quality. We even squashed a few tiny bugs!
125
- * **Improved**: You can now exclude cookies from caching.
126
- * **Improved**: CriticalCSS options are extended to include conditional tags for WooCommerce products (`is_product()`) and product categories (`is_product_category()`). Also now the admin bar CSS is always excluded from being deferred.
127
- * **Improved**: Lazy loader is greatly improved.
128
- * **Fixed**: Minor security flaws ("minor" because only administrators are able to break things in previous 4.x versions).
129
- * **Fixed**: A conflict between SBP and All in One SEO Pack is fixed.
130
- * **Fixed**: A conflict between SBP and Elementor is fixed.
131
- * **Fixed**: A tiny bug is fixed in the autosave setting.
132
- * **Updated**: The library of the options framework is updated.
133
-
134
- = 4.1.3 =
135
-
136
- *Release Date: 23 March 2021*
137
-
138
- * **Improved**: Cloudflare integration improvements.
139
- * **Improved**: Hosting compatibility improvements.
140
- * **Improved**: Settings panel improvements.
141
- * **Fixed**: HTML encoding/decoding issues with the SimpleHtmlDom library.
142
- * **Fixed**: Changed the placeholder image data URI when lazy loading is active (used to show a broken image icon).
143
- * **Fixed**: Kinsta compatibility improvements caused some PHP warnings - not anymore.
144
-
145
- = 4.1.1 =
146
-
147
- *Release Date: 28 January 2021*
148
-
149
- * **Improved**: Wrote better descriptions for certain settings.
150
- * **Fixed**: Tiny warning on Cloudflare settings.
151
- * **Fixed**: Inline CSS wasn't able to parse some `url()` values, until now.
152
- * **Fixed**: Cache warmup now handles pages with a better working process.
153
- * **Fixed**: SBP won't try to _optimize_ files that are generated on-the-fly by WordPress (like robots.txt or the RSS feeds).
154
-
155
- = 4.1.0 =
156
-
157
- *Release Date: 21 January 2021*
158
-
159
- * **NEW - Critical CSS**: Improve your First Contentful Paint (FCP) and Largest Contentful Paint (LCP) times and eliminate the "Eliminate render-blocking resource" recommendation
160
- * **NEW - Sucuri integration**: Now you can enter your Sucuri API keys to have Speed Booster Pack clear Sucuri's cache each time SBP's cache is cleared.
161
- * **NEW - PageSpeed Tricker**: This experimental feature lets you see how easy it is to _manipulate_ your PageSpeed/Lighthouse scores. Using this on a live website is NOT recommended! Just have fun with it.
162
- * **NEW - Cache warmup**: Now you can automatically cache all pages that are linked from your homepage using the Cache Warmup setting.
163
-
164
- * **Improved - CDN**: Our CDN feature is rewritten, making it way more efficient!
165
- * **Improved - Cloudflare settings**: Now you can control your Cloudflare settings on a more granular level!
166
- * **Improved - Lazy loading**: Lazy loading now works better, faster and with more themes & plugins. Most importantly, now our lazy loader supports infinite scrollers!
167
- * **Improved - .htaccess**: Added support for caching AVIF file format on browsers.
168
- * **Improved - Localize Analytics**: Added an admin bar button to refresh the local analytics file. Also, moved the local analytics file into the /uploads/speed-booster/ directory.
169
- * **Improved - Hosting compatibility**: Improved compatibility with various hosting companies.
170
- * **Improved - Plugin compatibility**: Improved compatibility with various performance plugins.
171
- * **Improved - Options framework**: Removed folders of unused fields in Codestar Framework, which powers our options framework.
172
- * **Improved - Uninstalling process**: Updated `uninstall.php` for better cleanup upon SBP deletion.
173
- * **Improved - /vendor/**: External frameworks are now loaded from within a /vendor/ directory, using Composer.
174
-
175
- * **Fixed**: The `crossorigin` parameter is added _only_ to preloaded fonts, not all preload links.
176
- * **Fixed**: WordPress 5.6 changed the jQuery core filename, breaking most performance-related plugins including ours. Fixed that one.
177
- * **Fixed**: Heartbeat settings caused a small PHP notice, which is now fixed.
178
-
179
- * **Updated**: Options framework and lazy load library are updated to their latest versions.
180
-
181
- * **Removed**: Option to disable jQuery Migrate is now gone.
182
-
183
- = 4.0.1 =
184
-
185
- *Release Date: 31 July 2020*
186
-
187
- * **Fixed**: Small issues with the external notices are resolved.
188
-
189
- = 4.0.0 =
190
-
191
- *Release Date: 18 July 2020*
192
-
193
- **Speed Booster Pack v4.0 is written from scratch!** Almost all of our codebase is rewritten, great new features are added, and we have an awesome new options panel to show them all!
194
-
195
- * **NEW - Caching**: With this new feature, you can now enable page and browser caching which will greatly reduce database queries and help browsers cache static assets more efficiently.
196
- * **NEW - JavaScript deferring**: You can now choose to move JS to the footer **or** defer parsing of JavaScript.
197
- * **NEW - Custom Code Manager**: You can now add custom JavaScript code and make them run deferred.
198
- * **NEW - Cloudflare Integration**: User your Cloudflare API key to connect your caching system to Cloudflare, so each time your cache is cleared, Cloudflare's cache will be purged as well.
199
- * **NEW - Analytics Localizer**: You can now serve Google Analytics or Google Tag Manager scripts (analytics.js, gtag.js, or gtm.js) from your own server, and still keep it working.
200
- * **NEW**: The brand new admin panel created with the Codestar Framework will help you review and understand Speed Booster Pack's options more easily.
201
- * **Improved - Google Fonts optimization**: Our refactored code helps Google Fonts load even faster now.
202
- * **Improved - Compatibility**: Active plugins with features similar to Speed Booster Pack will throw a dismissible notice to warn the user to be careful about the overlapping features.
203
- * **Fixed**: The Preboost feature outputted code without the `crossorigin` attribute, which is now fixed.
204
- * **Fixed**: The lazy load feature caused mixed content warnings in some edge cases, which is now fixed.
205
- * **Updated**: Updated external libraries (lazyload.js and instantpage.js) to their latest versions.
206
-
207
- *You can read the rest of the changelog on the [Speed Booster Pack documentation](https://speedboosterpack.com/docs/) page.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.txt CHANGED
@@ -5,7 +5,7 @@ Tags: speed, pagespeed, optimization, core web vitals, cache
5
  Requires at least: 4.6
6
  Tested up to: 5.8
7
  Requires PHP: 5.6
8
- Stable tag: 4.2.1
9
  License: GPLv3 or later
10
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -104,7 +104,7 @@ All the time! We're always looking for new ways to get this plugin to a better s
104
 
105
  == Changelog ==
106
 
107
- = 4.2.1 =
108
 
109
  *Release Date: 03 July 2021*
110
 
5
  Requires at least: 4.6
6
  Tested up to: 5.8
7
  Requires PHP: 5.6
8
+ Stable tag: 4.2.2
9
  License: GPLv3 or later
10
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
11
 
104
 
105
  == Changelog ==
106
 
107
+ = 4.2.1 & 4.2.2 =
108
 
109
  *Release Date: 03 July 2021*
110
 
includes/classes/class-sbp-wp-config-injector.php CHANGED
@@ -55,7 +55,7 @@ class SBP_WP_Config_Injector {
55
  $wp_config_file = dirname( ABSPATH ) . '/wp-config.php';
56
  }
57
 
58
- if ( $wp_filesystem->exists( $wp_config_file ) && sbp_check_file_permissions( $wp_config_file ) ) {
59
  $wp_config_content = $wp_filesystem->get_contents( $wp_config_file );
60
 
61
  if ( ! preg_match( '/\/\/ BEGIN SBP_WP_Config -' . SBP_VERSION . '-(.*?)\/\/ END SBP_WP_Config/si', $wp_config_content ) ) {
55
  $wp_config_file = dirname( ABSPATH ) . '/wp-config.php';
56
  }
57
 
58
+ if ( $wp_filesystem->exists( $wp_config_file ) && $wp_filesystem->is_writable( $wp_config_file ) ) {
59
  $wp_config_content = $wp_filesystem->get_contents( $wp_config_file );
60
 
61
  if ( ! preg_match( '/\/\/ BEGIN SBP_WP_Config -' . SBP_VERSION . '-(.*?)\/\/ END SBP_WP_Config/si', $wp_config_content ) ) {
speed-booster-pack.php CHANGED
@@ -6,7 +6,7 @@
6
  * Plugin Name: Speed Booster Pack
7
  * Plugin URI: https://speedboosterpack.com
8
  * Description: PageSpeed optimization is vital for SEO: A faster website equals better conversions. Optimize & cache your site with this smart plugin!
9
- * Version: 4.2.1
10
  * Author: Optimocha
11
  * Author URI: https://optimocha.com
12
  * License: GPLv3 or later
@@ -32,7 +32,7 @@ define( 'SBP_PLUGIN_NAME', 'Speed Booster Pack' );
32
  /**
33
  * Current plugin version.
34
  */
35
- define( 'SBP_VERSION', '4.2.1' );
36
 
37
  /**
38
  * Plugin website URL.
6
  * Plugin Name: Speed Booster Pack
7
  * Plugin URI: https://speedboosterpack.com
8
  * Description: PageSpeed optimization is vital for SEO: A faster website equals better conversions. Optimize & cache your site with this smart plugin!
9
+ * Version: 4.2.2
10
  * Author: Optimocha
11
  * Author URI: https://optimocha.com
12
  * License: GPLv3 or later
32
  /**
33
  * Current plugin version.
34
  */
35
+ define( 'SBP_VERSION', '4.2.2' );
36
 
37
  /**
38
  * Plugin website URL.