Fast Velocity Minify - Version 2.5.1

Version Description

[2018.12.17] = * minor bug fix related to the font awesome option * added cache purging support to Breeze (Cloudways)

Download this release

Release Info

Developer Alignak
Plugin Icon 128x128 Fast Velocity Minify
Version 2.5.1
Comparing to
See all releases

Code changes from version 2.5.0 to 2.5.1

Files changed (3) hide show
  1. fvm.php +4 -4
  2. inc/functions.php +13 -3
  3. readme.txt +10 -7
fvm.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://fastvelocity.com
5
  Description: Improve your speed score on GTmetrix, Pingdom Tools and Google PageSpeed Insights by merging and minifying CSS and JavaScript files into groups, compressing HTML and other speed optimizations.
6
  Author: Raul Peixoto
7
  Author URI: http://fastvelocity.com
8
- Version: 2.5.0
9
  License: GPL2
10
 
11
  ------------------------------------------------------------------------
@@ -923,7 +923,7 @@ I know what I'm doing... <span class="note-info">[ Load my JS files from the CDN
923
  <th scope="row">Exclude CSS files from PSI</th>
924
  <td><fieldset><label for="fastvelocity_min_excludecsslist"><span class="fvm-label-pad">Files will be loaded Async and excluded from PSI:</span></label>
925
  <p>
926
- <textarea name="fastvelocity_min_excludecsslist" rows="7" cols="50" id="fastvelocity_min_excludecsslist" class="large-text code" placeholder="ex: /wp-content/themes/my-theme/css/fontawesome.css"><?php echo get_option('fastvelocity_min_excludecsslist'); ?></textarea>
927
  </p>
928
  <p class="description">[ Any CSS file that can load completely independent, such as fontawesome or other icons ]</p>
929
 
@@ -1828,7 +1828,7 @@ $mediatype = $process[$handle]['mediatype'];
1828
  # skip ignore list, conditional css, external css, font-awesome merge
1829
  if ( (!fastvelocity_min_in_arrayi($hurl, $ignore) && !isset($conditional) && fvm_internal_url($hurl, $wp_home))
1830
  || empty($hurl)
1831
- || ($fvm_fawesome_method == 1 && stripos($href, 'font-awesome') !== false)) {
1832
 
1833
  # colect inline css for this handle
1834
  if(isset($wp_styles->registered[$handle]->extra['after']) && is_array($wp_styles->registered[$handle]->extra['after'])) {
@@ -2196,7 +2196,7 @@ foreach( $styles->to_do as $handle ) :
2196
  # skip ignore list, conditional css, external css, font-awesome merge
2197
  if ( (!fastvelocity_min_in_arrayi($hurl, $ignore) && !isset($conditional) && fvm_internal_url($hurl, $wp_home))
2198
  || empty($hurl)
2199
- || ($fvm_fawesome_method == 1 && stripos($href, 'font-awesome') !== false)) {
2200
 
2201
  # colect inline css for this handle
2202
  if(isset($wp_styles->registered[$handle]->extra['after']) && is_array($wp_styles->registered[$handle]->extra['after'])) {
5
  Description: Improve your speed score on GTmetrix, Pingdom Tools and Google PageSpeed Insights by merging and minifying CSS and JavaScript files into groups, compressing HTML and other speed optimizations.
6
  Author: Raul Peixoto
7
  Author URI: http://fastvelocity.com
8
+ Version: 2.5.1
9
  License: GPL2
10
 
11
  ------------------------------------------------------------------------
923
  <th scope="row">Exclude CSS files from PSI</th>
924
  <td><fieldset><label for="fastvelocity_min_excludecsslist"><span class="fvm-label-pad">Files will be loaded Async and excluded from PSI:</span></label>
925
  <p>
926
+ <textarea name="fastvelocity_min_excludecsslist" rows="7" cols="50" id="fastvelocity_min_excludecsslist" class="large-text code" placeholder="ex: /wp-content/themes/my-theme/css/some-other-font.min.css"><?php echo get_option('fastvelocity_min_excludecsslist'); ?></textarea>
927
  </p>
928
  <p class="description">[ Any CSS file that can load completely independent, such as fontawesome or other icons ]</p>
929
 
1828
  # skip ignore list, conditional css, external css, font-awesome merge
1829
  if ( (!fastvelocity_min_in_arrayi($hurl, $ignore) && !isset($conditional) && fvm_internal_url($hurl, $wp_home))
1830
  || empty($hurl)
1831
+ || ($fvm_fawesome_method == 1 && stripos($hurl, 'font-awesome') !== false)) {
1832
 
1833
  # colect inline css for this handle
1834
  if(isset($wp_styles->registered[$handle]->extra['after']) && is_array($wp_styles->registered[$handle]->extra['after'])) {
2196
  # skip ignore list, conditional css, external css, font-awesome merge
2197
  if ( (!fastvelocity_min_in_arrayi($hurl, $ignore) && !isset($conditional) && fvm_internal_url($hurl, $wp_home))
2198
  || empty($hurl)
2199
+ || ($fvm_fawesome_method == 1 && stripos($hurl, 'font-awesome') !== false)) {
2200
 
2201
  # colect inline css for this handle
2202
  if(isset($wp_styles->registered[$handle]->extra['after']) && is_array($wp_styles->registered[$handle]->extra['after'])) {
inc/functions.php CHANGED
@@ -7,7 +7,8 @@ if(function_exists('mb_internal_encoding')) { mb_internal_encoding('UTF-8'); }
7
  @ini_set('pcre.backtrack_limit',5000000);
8
  @ini_set('pcre.recursion_limit',5000000);
9
 
10
- # Consider fallback to PHP Minify [2018.12.03] from https://github.com/matthiasmullie/minify (must be defined on the outer scope)
 
11
  $path = $plugindir . 'libs/matthiasmullie';
12
  require_once $path . '/minify/src/Minify.php';
13
  require_once $path . '/minify/src/CSS.php';
@@ -131,8 +132,8 @@ function fastvelocity_plugin_activate() {
131
  # increment time
132
  fvm_cache_increment();
133
 
134
- # default options to enable
135
- $options_enable_default = array('fastvelocity_min_remove_print_mediatypes', 'fastvelocity_fvm_clean_header_one', 'fastvelocity_min_skip_google_fonts', 'fastvelocity_gfonts_method', 'fastvelocity_min_force_inline_css_footer');
136
  foreach($options_enable_default as $option) {
137
  update_option($option, 1, 'yes');
138
  }
@@ -1160,6 +1161,15 @@ if (class_exists("WpeCommon")) {
1160
  }
1161
  }
1162
 
 
 
 
 
 
 
 
 
 
1163
  }
1164
 
1165
 
7
  @ini_set('pcre.backtrack_limit',5000000);
8
  @ini_set('pcre.recursion_limit',5000000);
9
 
10
+ # PHP Minify [1.3.60] (must be defined on the outer scope)
11
+ # https://github.com/matthiasmullie/minify
12
  $path = $plugindir . 'libs/matthiasmullie';
13
  require_once $path . '/minify/src/Minify.php';
14
  require_once $path . '/minify/src/CSS.php';
132
  # increment time
133
  fvm_cache_increment();
134
 
135
+ # default options to enable (1)
136
+ $options_enable_default = array('fastvelocity_min_remove_print_mediatypes', 'fastvelocity_fvm_clean_header_one', 'fastvelocity_min_skip_google_fonts', 'fastvelocity_min_force_inline_css_footer', 'fastvelocity_min_skip_cssorder', 'fastvelocity_gfonts_method', 'fastvelocity_fontawesome_method');
137
  foreach($options_enable_default as $option) {
138
  update_option($option, 1, 'yes');
139
  }
1161
  }
1162
  }
1163
 
1164
+ # add breeze cache purge support
1165
+ add_action('fvm_after_purge_all', 'extra_fvm_purge_breeze_support');
1166
+ function extra_fvm_purge_breeze_support() {
1167
+ if (class_exists("Breeze_PurgeCache")) {
1168
+ Breeze_PurgeCache::breeze_cache_flush();
1169
+ return __( '<div class="notice notice-info is-dismissible"><p>All caches from <strong>Breeze</strong> have also been purged.</p></div>');
1170
+ }
1171
+ }
1172
+
1173
  }
1174
 
1175
 
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: Alignak
3
  Tags: PHP Minify, Lighthouse, GTmetrix, Pingdom, Pagespeed, CSS Merging, JS Merging, CSS Minification, JS Minification, Speed Optimization, HTML Minification, Performance, Optimization, Speed, Fast
4
  Requires at least: 4.5
5
- Stable tag: 2.5.0
6
- Tested up to: 5.0
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -47,7 +47,7 @@ I can offer you aditional `custom made` optimization on top of this plugin. If y
47
  * Support for preconnect and preload headers
48
  * CDN option, to rewrite all static assets inside the JS or CSS files
49
  * WP CLI support to check stats and purge the cache
50
- * Auto purging of cache files for W3 Total Cache, WP Supercache, WP Rocket, Wp Fastest Cache, Cachify, Comet Cache, Zen Cache, LiteSpeed Cache, Nginx Cache (by Till Krüss ), SG Optimizer, HyperCache, Cache Enabler, Godaddy Managed WordPress Hosting and WP Engine (read the FAQs)
51
  * and some more...
52
 
53
 
@@ -62,8 +62,7 @@ I can offer you aditional `custom made` optimization on top of this plugin. If y
62
 
63
  = Notes =
64
  * The JavaScript minification is by [PHP Minify](https://github.com/matthiasmullie/minify)
65
- * The alternative JavaScript minification is by [YUI Compressor](http://yui.github.io/yuicompressor/)
66
- * Compatible with Nginx, HHVM and PHP 7.
67
  * Minimum requirements are PHP 5.5 and WP 4.4, from version 1.4.0 onwards
68
 
69
 
@@ -109,7 +108,7 @@ The ignore list "is" working, just try to use partial paths (see wildcard help a
109
 
110
  = Is it compatible with other caching plugins? =
111
 
112
- Please note, you must disable any features on your theme or cache plugins, which perform minification of css, html and js. Double minification not only slows the whole process, but also has the high potential of causing conflicts in javascript. The plugin will try to automatically purge several popular cache plugins, however if you have a cache on the server side (some hosting services have this) you may need to purge it manually, after you purge FVM. The automatic purge is active for the following plugins and hosting: W3 Total Cache, WP Supercache, WP Rocket, Wp Fastest Cache, Cachify, Comet Cache, Zen Cache, LiteSpeed Cache, Cache Enabler, SG Optimizer, Godaddy Managed WordPress Hosting and WP Engine
113
 
114
  = Do you recommend a specific Cache Plugin? =
115
  Yes! Currently FVM recommends the "Cache Enabler" plugin, for it's simplicity, compatibility with most systems and performance.
@@ -186,7 +185,7 @@ Before getting angry because you have no answer within a few hours (even with pa
186
  Support is provided by plugin authors on their free time and without warranty of a reply, so you can experience different levels of support level from plugin to plugin. As the author of this plugin I strive to provide support on a daily basis and I can take a look and help you with some issues related with my plugin, but please note that this is done out of my goodwill and in no way I have any legal or moral obligation for doing this. Sometimes I am extremely busy and may take a few days to reply, but I will always reply.
187
 
188
  = But I really need fast support right now, is there any other way? =
189
- I am also available for hiring if you need custom-made speed optimizations. After you have isntalled the plugin, check the "Help" tab for contact information, or check my profile links here on WordPress.
190
 
191
 
192
  = Where can I report bugs? =
@@ -202,6 +201,10 @@ If you would like to donate any amount to the plugin author (thank you in advanc
202
 
203
  == Changelog ==
204
 
 
 
 
 
205
  = 2.5.0 [2018.12.13] =
206
  * bug fixes with the google fonts merging option
207
  * better default settings
2
  Contributors: Alignak
3
  Tags: PHP Minify, Lighthouse, GTmetrix, Pingdom, Pagespeed, CSS Merging, JS Merging, CSS Minification, JS Minification, Speed Optimization, HTML Minification, Performance, Optimization, Speed, Fast
4
  Requires at least: 4.5
5
+ Stable tag: 2.5.1
6
+ Tested up to: 5.0.2
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
47
  * Support for preconnect and preload headers
48
  * CDN option, to rewrite all static assets inside the JS or CSS files
49
  * WP CLI support to check stats and purge the cache
50
+ * Auto purging of cache files for W3 Total Cache, WP Supercache, WP Rocket, Wp Fastest Cache, Cachify, Comet Cache, Zen Cache, LiteSpeed Cache, Nginx Cache (by Till Krüss ), SG Optimizer, HyperCache, Cache Enabler, Breeze (Cloudways), Godaddy Managed WordPress Hosting and WP Engine (read the FAQs)
51
  * and some more...
52
 
53
 
62
 
63
  = Notes =
64
  * The JavaScript minification is by [PHP Minify](https://github.com/matthiasmullie/minify)
65
+ * Compatible with Nginx, HHVM and PHP 7
 
66
  * Minimum requirements are PHP 5.5 and WP 4.4, from version 1.4.0 onwards
67
 
68
 
108
 
109
  = Is it compatible with other caching plugins? =
110
 
111
+ Please note, you must disable any features on your theme or cache plugins, which perform minification of css, html and js. Double minification not only slows the whole process, but also has the high potential of causing conflicts in javascript. The plugin will try to automatically purge several popular cache plugins, however if you have a cache on the server side (some hosting services have this) you may need to purge it manually, after you purge FVM. The automatic purge is active for the following plugins and hosting: W3 Total Cache, WP Supercache, WP Rocket, Wp Fastest Cache, Cachify, Comet Cache, Zen Cache, LiteSpeed Cache, Cache Enabler, SG Optimizer, Breeze (Cloudways), Godaddy Managed WordPress Hosting and WP Engine
112
 
113
  = Do you recommend a specific Cache Plugin? =
114
  Yes! Currently FVM recommends the "Cache Enabler" plugin, for it's simplicity, compatibility with most systems and performance.
185
  Support is provided by plugin authors on their free time and without warranty of a reply, so you can experience different levels of support level from plugin to plugin. As the author of this plugin I strive to provide support on a daily basis and I can take a look and help you with some issues related with my plugin, but please note that this is done out of my goodwill and in no way I have any legal or moral obligation for doing this. Sometimes I am extremely busy and may take a few days to reply, but I will always reply.
186
 
187
  = But I really need fast support right now, is there any other way? =
188
+ I am also available for hiring if you need custom-made speed optimizations. After you have installed the plugin, check the "Help" tab for contact information, or check my profile links here on WordPress.
189
 
190
 
191
  = Where can I report bugs? =
201
 
202
  == Changelog ==
203
 
204
+ = 2.5.1 [2018.12.17] =
205
+ * minor bug fix related to the font awesome option
206
+ * added cache purging support to Breeze (Cloudways)
207
+
208
  = 2.5.0 [2018.12.13] =
209
  * bug fixes with the google fonts merging option
210
  * better default settings