Reduce HTTP Requests, Disable Emojis & Disable Embeds, Speedup WooCommerce - Version 1.5.11

Version Description

  • WooCommerce tab not displaying fixed
Download this release

Release Info

Developer pigeonhut
Plugin Icon 128x128 Reduce HTTP Requests, Disable Emojis & Disable Embeds, Speedup WooCommerce
Version 1.5.11
Comparing to
See all releases

Code changes from version 1.5.1 to 1.5.11

js/optimisationio-dashboard.js CHANGED
@@ -392,7 +392,7 @@ var OptimisationioAddons = (function($){
392
  var plugin_slug = $wrap.data('sett-group'), active_plugin_tab;
393
  if( plugin_slug ){
394
  active_plugin_tab = localStorage.getItem( 'optimisationio_addon_active_tab[' + plugin_slug + ']' );
395
- if( ! active_plugin_tab ){
396
  active_plugin_tab = $( $wrap.find('.addon-settings-tabs ul li')[0] ).data('tab-setting');
397
  }
398
  update_active_tab($wrap, active_plugin_tab);
392
  var plugin_slug = $wrap.data('sett-group'), active_plugin_tab;
393
  if( plugin_slug ){
394
  active_plugin_tab = localStorage.getItem( 'optimisationio_addon_active_tab[' + plugin_slug + ']' );
395
+ if( ! active_plugin_tab || ! $wrap.find('.addon-settings-tabs ul li[data-tab-setting="' + active_plugin_tab + '"]').length ){
396
  active_plugin_tab = $( $wrap.find('.addon-settings-tabs ul li')[0] ).data('tab-setting');
397
  }
398
  update_active_tab($wrap, active_plugin_tab);
lib/class-optimisationio-dashboard.php CHANGED
@@ -578,7 +578,7 @@ class Optimisationio_Dashboard {
578
  public static function echo_stats_size( $valid, $size ){
579
  $e = '<i class="n_a">' . __( 'n/a', 'optimisationio' ) . '</i>';
580
  if( $valid ){
581
- $size = size_format( $size );
582
  $e = $size ? $size : '0 B';
583
  }
584
  echo $e;
578
  public static function echo_stats_size( $valid, $size ){
579
  $e = '<i class="n_a">' . __( 'n/a', 'optimisationio' ) . '</i>';
580
  if( $valid ){
581
+ $size = size_format( $size, 2 );
582
  $e = $size ? $size : '0 B';
583
  }
584
  echo $e;
lib/class-wpperformance-admin.php CHANGED
@@ -563,6 +563,9 @@ class WpPerformance_Admin {
563
  <div class="addon-settings-tabs">
564
  <ul>
565
  <li data-tab-setting="requests" class="active"><?php esc_html_e('Requests', 'optimisationio'); ?></li>
 
 
 
566
  <li data-tab-setting="tags"><?php esc_html_e('Tags', 'optimisationio'); ?></li>
567
  <li data-tab-setting="admin"><?php esc_html_e('Admin', 'optimisationio'); ?></li>
568
  <li data-tab-setting="others"><?php esc_html_e('Others', 'optimisationio'); ?></li>
@@ -617,6 +620,30 @@ class WpPerformance_Admin {
617
  </div>
618
  </div>
619
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
620
  <div data-tab-setting="tags" class="addon-settings-content auto-table-layout">
621
  <div class="field">
622
  <div class="field-left"><?php esc_attr_e('Remove RSD (Really Simple Discovery) tag', 'optimisationio'); ?></div>
563
  <div class="addon-settings-tabs">
564
  <ul>
565
  <li data-tab-setting="requests" class="active"><?php esc_html_e('Requests', 'optimisationio'); ?></li>
566
+ <?php if( WpPerformance::is_woocommerce_enabled() ) { ?>
567
+ <li data-tab-setting="woocommerce"><?php esc_html_e('WooCommerce', 'optimisationio'); ?></li>
568
+ <?php } ?>
569
  <li data-tab-setting="tags"><?php esc_html_e('Tags', 'optimisationio'); ?></li>
570
  <li data-tab-setting="admin"><?php esc_html_e('Admin', 'optimisationio'); ?></li>
571
  <li data-tab-setting="others"><?php esc_html_e('Others', 'optimisationio'); ?></li>
620
  </div>
621
  </div>
622
 
623
+ <?php if( WpPerformance::is_woocommerce_enabled() ) { ?>
624
+ <div data-tab-setting="woocommerce" class="addon-settings-content auto-table-layout active">
625
+ <div class="field">
626
+ <div class="field-left"><?php esc_attr_e('Disable WooCommerce scripts and CSS on non WooCommerce pages', 'optimisationio'); ?></div>
627
+ <div class="field-right"><?php Optimisationio_Dashboard::checkbox_component('disable_woocommerce_non_pages', isset( $sett['disable_woocommerce_non_pages'] ) && 1 === (int) $sett['disable_woocommerce_non_pages']); ?></div>
628
+ </div>
629
+
630
+ <div class="field">
631
+ <div class="field-left"><?php esc_attr_e('Disable WooCommerce Reviews', 'optimisationio'); ?></div>
632
+ <div class="field-right"><?php Optimisationio_Dashboard::checkbox_component('disable_woocommerce_reviews', isset( $sett['disable_woocommerce_reviews'] ) && 1 === (int) $sett['disable_woocommerce_reviews']); ?></div>
633
+ </div>
634
+
635
+ <div class="field">
636
+ <div class="field-left"><?php esc_attr_e('Defer WooCommerce Cart Fragments', 'optimisationio'); ?></div>
637
+ <div class="field-right"><?php Optimisationio_Dashboard::checkbox_component('disable_woocommerce_cart_fragments', isset( $sett['disable_woocommerce_cart_fragments'] ) && 1 === (int) $sett['disable_woocommerce_cart_fragments']); ?></div>
638
+ </div>
639
+
640
+ <div class="field">
641
+ <div class="field-left"><?php esc_attr_e('Disable WooCommerce password strength meter js on non related pages', 'optimisationio'); ?></div>
642
+ <div class="field-right"><?php Optimisationio_Dashboard::checkbox_component('disable_woocommerce_password_meter', isset( $sett['disable_woocommerce_password_meter'] ) && 1 === (int) $sett['disable_woocommerce_password_meter']); ?></div>
643
+ </div>
644
+ </div>
645
+ <?php } ?>
646
+
647
  <div data-tab-setting="tags" class="addon-settings-content auto-table-layout">
648
  <div class="field">
649
  <div class="field-left"><?php esc_attr_e('Remove RSD (Really Simple Discovery) tag', 'optimisationio'); ?></div>
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: pigeonhut, Jody Nesbitt, optimisation.io
3
  Tags: Disable Emoji, Disable Embeds, Disable Gravatars, Remove Querystrings, Reduce HTTP Requests, speedup WooCommerce, Close comments
4
  Requires at least: 4.5
5
- Tested up to: 4.8
6
- Stable tag: 1.5.1
7
  License: GPLv2 or later
8
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -27,7 +27,7 @@ Disabling Embeds - script that auto formats pasted content in the visual editor
27
  single page. You can still use the default embed code from YouTube, Twitter etc to included content.
28
 
29
  Remove Query Strings: If you look at the waterfall view of your page load, you will see your query strings end in something like ver=1.12.4.
30
- These are called query strings and help determine the version of the script. The problem with query strings like these is that it isn’t very efficient for caching purposes and sometimes prevents caching those assets altogether. If you are using a CDN already, you can ignore this.
31
 
32
  Disabling Gravatars is completely optional, advise, if you don't use them, disable as it gets rid of one more useless HTTP request.
33
 
@@ -77,14 +77,14 @@ You can try our <a href="https://wordpress.org/plugins/wp-image-compression/">Fr
77
 
78
 
79
  == Changelog ==
 
 
 
80
  = 1.5.1 =
81
  * More visual cleanups
82
  * Removed all webfonts
83
  * Minor bug fix on reporting on dashboard
84
  * Plugin is now under 240kb
85
- * All 3 plugins should now be seamless
86
- * General cleanup of WP Repo removing old versions inline with WP guidelines
87
- * Please note, if you use more than one of our Optimisation plugins, they all need to be updated to the latest versions to ensure a seamless working experience
88
 
89
  = 1.5.0 =
90
  * Finished redesign of plugin
2
  Contributors: pigeonhut, Jody Nesbitt, optimisation.io
3
  Tags: Disable Emoji, Disable Embeds, Disable Gravatars, Remove Querystrings, Reduce HTTP Requests, speedup WooCommerce, Close comments
4
  Requires at least: 4.5
5
+ Tested up to: 4.8.1
6
+ Stable tag: 1.5.11
7
  License: GPLv2 or later
8
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
9
 
27
  single page. You can still use the default embed code from YouTube, Twitter etc to included content.
28
 
29
  Remove Query Strings: If you look at the waterfall view of your page load, you will see your query strings end in something like ver=1.12.4.
30
+ These are called query strings and help determine the version of the script. The problem with query strings like these is that it isn't very efficient for caching purposes and sometimes prevents caching those assets altogether. If you are using a CDN already, you can ignore this.
31
 
32
  Disabling Gravatars is completely optional, advise, if you don't use them, disable as it gets rid of one more useless HTTP request.
33
 
77
 
78
 
79
  == Changelog ==
80
+ = 1.5.11 =
81
+ * WooCommerce tab not displaying fixed
82
+
83
  = 1.5.1 =
84
  * More visual cleanups
85
  * Removed all webfonts
86
  * Minor bug fix on reporting on dashboard
87
  * Plugin is now under 240kb
 
 
 
88
 
89
  = 1.5.0 =
90
  * Finished redesign of plugin
wpperformance.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Improve WordPress performance by disabling unused items.
6
  * Author: pigeonhut, Jody Nesbitt, optimisation.io
7
  * Author URI:https://optimisation.io
8
- * Version: 1.5.1
9
  *
10
  * Copyright (C) 2017 Optimisation.io
11
  */
5
  * Description: Improve WordPress performance by disabling unused items.
6
  * Author: pigeonhut, Jody Nesbitt, optimisation.io
7
  * Author URI:https://optimisation.io
8
+ * Version: 1.5.11
9
  *
10
  * Copyright (C) 2017 Optimisation.io
11
  */