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

Version Description

  • Started on Documentation (can be found here https://optimisation.io/faq/)
  • Added donation button - help us make this the best optimisation suite available on the repo. Every $ donated helps.
  • Added SEO Tab
  • Added ability to remove Duplicate names in breadcrumbs
  • Added Remove Yoast SEO comments
  • Tested on Gutenberg
  • Tested on WP 4.9
  • Remove Dequeue from some functions
  • Disabled Dashicons in Customizer
  • Minor bug fixes as per support forum
Download this release

Release Info

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

Code changes from version 1.5.13 to 1.5.14

css/optimisationio-dashboard.css CHANGED
@@ -62,14 +62,16 @@
62
  width:33%;
63
  padding:5px;
64
  vertical-align: middle;
65
- font-size: 17px;
66
  text-transform: uppercase;
67
  }
68
 
69
  .statistics-top-cell a{
70
- white-space: nowrap;
71
  display:inline-block;
72
  text-decoration:none;
 
 
73
  border-radius: 46px;
74
  transition: 0.3s;
75
  }
@@ -80,10 +82,11 @@
80
  }
81
 
82
  .statistics-top-cell.logo{
 
83
  }
84
 
85
  .statistics-top-cell.logo img{
86
- max-height:46px;
87
  max-width:100%;
88
  }
89
 
@@ -109,13 +112,15 @@
109
  }
110
 
111
  .statistics-top-cell.support{
112
- width:auto;
113
  text-align: right;
114
  }
115
 
116
  .statistics-top-cell.support a{
 
 
117
  color: #ffcc26;
118
- padding: 11px 20px 6px 15px;
119
  }
120
 
121
  .statistics-top-cell.support a:hover {
@@ -123,8 +128,19 @@
123
  color: #bf9200;
124
  }
125
 
 
 
 
 
 
 
126
  .statistics-top-cell.support a img{
127
- margin-right:15px;
 
 
 
 
 
128
  }
129
 
130
  .statistics-measurements{
@@ -255,7 +271,9 @@
255
  width:7rem;
256
  margin:0 auto;
257
  border:1px solid rgba(255,255,255,0.2);
258
- border-radius:9999px;
 
 
259
  }
260
 
261
  .stats-part .addon-stats .compress-image-saved > div {
@@ -303,7 +321,9 @@
303
  padding:7px;
304
  margin:10px 0;
305
  border:1px solid rgba(255,255,255,0.05);
306
- border-radius:1px;
 
 
307
  }
308
 
309
  .stats-part ul.cache-and-database-list li{
@@ -355,6 +375,8 @@
355
  padding: 13px 25px;
356
  text-transform:uppercase;
357
  border:0;
 
 
358
  border-radius: 46px;
359
  cursor:pointer;
360
  overflow:hidden;
@@ -457,7 +479,9 @@
457
  font-size:10px;
458
  font-weight:100;
459
  text-transform: uppercase;
460
- border-radius:2px;
 
 
461
  background: rgba(255,255,255,0.1);
462
  cursor:pointer;
463
  }
@@ -879,15 +903,19 @@
879
  }
880
 
881
  .optio-check-light + .optio-check-btn {
882
- background: #ddd;
883
- border-radius: 2em;
884
- padding: 2px;
885
- -webkit-transition: all .4s ease;
886
- transition: all .4s ease;
 
 
887
  }
888
 
889
  .optio-check-light + .optio-check-btn:after {
890
- border-radius: 50%;
 
 
891
  background: #fff;
892
  -webkit-transition: all .2s ease;
893
  transition: all .2s ease;
@@ -942,4 +970,110 @@
942
  .clearing-gravatars-cache-overlay > div img{
943
  margin:0 0 2px 1rem;
944
  vertical-align:inherit;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
945
  }
62
  width:33%;
63
  padding:5px;
64
  vertical-align: middle;
65
+ font-size: 14px;
66
  text-transform: uppercase;
67
  }
68
 
69
  .statistics-top-cell a{
70
+ /* white-space: nowrap; */
71
  display:inline-block;
72
  text-decoration:none;
73
+ -moz-border-radius: 46px;
74
+ -webkit-border-radius: 46px;
75
  border-radius: 46px;
76
  transition: 0.3s;
77
  }
82
  }
83
 
84
  .statistics-top-cell.logo{
85
+ width:25%;
86
  }
87
 
88
  .statistics-top-cell.logo img{
89
+ max-height:42px;
90
  max-width:100%;
91
  }
92
 
112
  }
113
 
114
  .statistics-top-cell.support{
115
+ width:45%;
116
  text-align: right;
117
  }
118
 
119
  .statistics-top-cell.support a{
120
+ display:table;
121
+ text-align:center;
122
  color: #ffcc26;
123
+ padding: 7px 20px 5px 15px;
124
  }
125
 
126
  .statistics-top-cell.support a:hover {
128
  color: #bf9200;
129
  }
130
 
131
+ .statistics-top-cell.support a img,
132
+ .statistics-top-cell.support a span{
133
+ display:table-cell;
134
+ vertical-align:middle;
135
+ }
136
+
137
  .statistics-top-cell.support a img{
138
+ /*margin-right:15px;*/
139
+ margin-top: 5px;
140
+ }
141
+
142
+ .statistics-top-cell.support a span{
143
+ padding:0 0 0 5px;
144
  }
145
 
146
  .statistics-measurements{
271
  width:7rem;
272
  margin:0 auto;
273
  border:1px solid rgba(255,255,255,0.2);
274
+ -moz-border-radius: 9999px;
275
+ -webkit-border-radius: 9999px;
276
+ border-radius: 9999px;
277
  }
278
 
279
  .stats-part .addon-stats .compress-image-saved > div {
321
  padding:7px;
322
  margin:10px 0;
323
  border:1px solid rgba(255,255,255,0.05);
324
+ -moz-border-radius: 1px;
325
+ -webkit-border-radius: 1px;
326
+ border-radius: 1px;
327
  }
328
 
329
  .stats-part ul.cache-and-database-list li{
375
  padding: 13px 25px;
376
  text-transform:uppercase;
377
  border:0;
378
+ -moz-border-radius: 46px;
379
+ -webkit-border-radius: 46px;
380
  border-radius: 46px;
381
  cursor:pointer;
382
  overflow:hidden;
479
  font-size:10px;
480
  font-weight:100;
481
  text-transform: uppercase;
482
+ -moz-border-radius: 2px;
483
+ -webkit-border-radius: 2px;
484
+ border-radius: 2px;
485
  background: rgba(255,255,255,0.1);
486
  cursor:pointer;
487
  }
903
  }
904
 
905
  .optio-check-light + .optio-check-btn {
906
+ background: #ddd;
907
+ -moz-border-radius: 2em;
908
+ -webkit-border-radius: 2em;
909
+ border-radius: 2em;
910
+ padding: 2px;
911
+ -webkit-transition: all .4s ease;
912
+ transition: all .4s ease;
913
  }
914
 
915
  .optio-check-light + .optio-check-btn:after {
916
+ -moz-border-radius: 50%;
917
+ -webkit-border-radius: 50%;
918
+ border-radius: 50%;
919
  background: #fff;
920
  -webkit-transition: all .2s ease;
921
  transition: all .2s ease;
970
  .clearing-gravatars-cache-overlay > div img{
971
  margin:0 0 2px 1rem;
972
  vertical-align:inherit;
973
+ }
974
+
975
+ .donation-overlay-wrap{
976
+ position:absolute;
977
+ top:0;
978
+ left:0;
979
+ bottom:24px;
980
+ right:0;
981
+ padding-top:30px;
982
+ display:block;
983
+ background-color:rgba(20,38,58,0.3);
984
+ }
985
+
986
+ .donation-overlay-wrap.hidden{
987
+ display:none;
988
+ }
989
+
990
+ .donation-overlay-outer{
991
+ width:100%;
992
+ height:100%;
993
+ display:table;
994
+ }
995
+
996
+ .donation-overlay-main{
997
+ display:table-cell;
998
+ vertical-align:top;
999
+ }
1000
+
1001
+ .donation-overlay-inner{
1002
+ position:relative;
1003
+ display:block;
1004
+ width:94%;
1005
+ max-width:450px;
1006
+ margin:0 auto;
1007
+ border:1px solid #f1f1f1;
1008
+ border-color:rgba(20,38,58,0.3);
1009
+ -moz-border-radius: 3px;
1010
+ -webkit-border-radius: 3px;
1011
+ border-radius: 3px;
1012
+ overflow:hidden;
1013
+ -moz-box-shadow: 0 3px 10px 0 rgba(0,0,0, 0.5);
1014
+ -webkit-box-shadow: 0 3px 10px 0 rgba(0,0,0, 0.5);
1015
+ box-shadow: 0 3px 10px 0 rgba(0,0,0, 0.5);
1016
+ }
1017
+
1018
+ .donation-overlay-top{
1019
+ position:relative;
1020
+ padding:25px 25px 5px;
1021
+ text-align:center;
1022
+ background-color:#1b334d;
1023
+ color: #ffcc26;
1024
+ font-size:13px;
1025
+ font-weight:300;
1026
+ }
1027
+
1028
+ .donation-overlay-top img{
1029
+ max-height:42px;
1030
+ margin:0;
1031
+ }
1032
+
1033
+ .donation-overlay-top span{
1034
+ display:block;
1035
+ padding:15px 0;
1036
+ text-transform:uppercase;
1037
+ }
1038
+
1039
+ .donation-overlay-bottom{
1040
+ text-align:center;
1041
+ padding:35px 0;
1042
+ background-color:#fff;
1043
+ background-color:#e6e6e6;
1044
+ }
1045
+ .donation-overlay-bottom select{
1046
+ margin-bottom:30px;
1047
+ }
1048
+
1049
+ .donation-overlay-inner button.close{
1050
+ position: absolute;
1051
+ top: 10px;
1052
+ right: 10px;
1053
+ padding: 0;
1054
+ display: inline-block;
1055
+ text-align: center;
1056
+ font-family:sans-serif;
1057
+ color: #5dbfd5;
1058
+ border-width: 1px;
1059
+ border-style: solid;
1060
+ border-color: rgba(27,51,77, 0.9);
1061
+ background: rgba(255, 255, 255, 0.1);
1062
+ -moz-border-radius: 2px;
1063
+ -webkit-border-radius: 2px;
1064
+ border-radius: 2px;
1065
+ cursor: pointer;
1066
+ }
1067
+
1068
+ .donation-overlay-inner button.close span {
1069
+ display:block;
1070
+ width: 25px;
1071
+ height: 24px;
1072
+ line-height: 23px;
1073
+ color: #fff;
1074
+ color: rgba(255, 255, 255, 0.7);
1075
+ }
1076
+
1077
+ .donation-overlay-inner button.close:hover span {
1078
+ color: rgba(255, 255, 255, 0.9);
1079
  }
js/optimisationio-dashboard.js CHANGED
@@ -706,6 +706,44 @@ var Optimisationio_Dashboard_Image_Compression = (function($){
706
  }
707
  }(jQuery));
708
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
709
  (function ($) {
710
 
711
  "use strict";
@@ -714,6 +752,7 @@ var Optimisationio_Dashboard_Image_Compression = (function($){
714
  Optimisationio_Dashbord_WP_Disable.init();
715
  Optimisationio_Dashboard_Cache_Performance.init();
716
  Optimisationio_Dashboard_Image_Compression.init();
 
717
  });
718
 
719
  }(jQuery));
706
  }
707
  }(jQuery));
708
 
709
+ var Optimisationio_Donation = (function($){
710
+
711
+ var paypal_link = 'https://www.paypal.me/web9/{{amount}}',
712
+ $elems = {
713
+ link: null,
714
+ overlay: null,
715
+ close: null,
716
+ select: null,
717
+ submit: null,
718
+ };
719
+
720
+ function set_elems(){
721
+ this.$elems = {
722
+ link: $('.donate-link'),
723
+ overlay: $('.donation-overlay-wrap'),
724
+ close: $('.donation-overlay-inner .close'),
725
+ select: $('.donation-overlay-bottom select'),
726
+ submit: $('.donation-overlay-bottom button')
727
+ };
728
+ }
729
+
730
+ function set_events(){
731
+ var that = this;
732
+ this.$elems.link[0].addEventListener('click', function(ev){ ev.preventDefault(); ev.stopPropagation(); that.$elems.overlay.removeClass('hidden'); });
733
+ this.$elems.close[0].addEventListener('click', function(ev){ ev.preventDefault(); ev.stopPropagation(); that.$elems.overlay.addClass('hidden'); });
734
+ this.$elems.submit[0].addEventListener('click', function(ev){ ev.preventDefault(); ev.stopPropagation(); window.open( paypal_link.replace("{{amount}}", that.$elems.select[0].value, that.paypal_link) ); that.$elems.overlay.addClass('hidden'); });
735
+ }
736
+
737
+ function init(){
738
+ set_elems();
739
+ set_events();
740
+ }
741
+
742
+ return {
743
+ init: init,
744
+ }
745
+ }(jQuery));
746
+
747
  (function ($) {
748
 
749
  "use strict";
752
  Optimisationio_Dashbord_WP_Disable.init();
753
  Optimisationio_Dashboard_Cache_Performance.init();
754
  Optimisationio_Dashboard_Image_Compression.init();
755
+ Optimisationio_Donation.init();
756
  });
757
 
758
  }(jQuery));
lib/class-wpperformance-admin.php CHANGED
@@ -2,6 +2,7 @@
2
  class WpPerformance_Admin {
3
 
4
  public function __construct() {
 
5
  add_action( 'init', array( $this, 'wp_performance_disable_emojis' ) );
6
  add_action( 'init', array( $this, 'wp_performance_speed_stop_loading_wp_embed' ) );
7
  add_filter( 'script_loader_src', array( $this, 'wp_performance_remove_script_version' ), 15, 1 );
@@ -9,11 +10,45 @@ class WpPerformance_Admin {
9
  add_action( 'init', array( $this, 'wp_performace_disable_woo_stuffs' ) );
10
  add_action( 'init', array( $this, 'wp_performance_optimize_cleanups' ) );
11
  add_action( 'wp_loaded', array( $this, 'wp_performance_disable_google_maps' ) );
 
12
  add_action( 'wp_enqueue_scripts', array( $this, 'wp_performance_dequeue_woocommerce_cart_fragments' ), 11 );
13
  add_action( 'wp_loaded', array( $this, 'wp_performance_save_dashboard_settings' ) );
14
  $this->heartbeat_handler();
15
  }
16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  public function disable_emojis_tinymce( $plugins ) {
18
  $ret = is_array( $plugins ) ? array_diff( $plugins, array( 'wpemoji' ) ) : array();
19
  return $ret;
@@ -44,7 +79,7 @@ class WpPerformance_Admin {
44
 
45
  public function wp_performance_remove_script_version( $src ) {
46
  if ( ! is_admin() && ! current_user_can('administrator') && ! current_user_can('editor') ) {
47
- $settings = get_option( WpPerformance::OPTION_KEY . '_settings', array() );
48
  if ( isset( $settings['remove_querystrings'] ) && 1 === (int) $settings['remove_querystrings'] ) {
49
  $parts = explode( '?ver', $src );
50
  return $parts[0];
@@ -94,10 +129,7 @@ class WpPerformance_Admin {
94
  if ( ! is_woocommerce() && ! is_cart() && ! is_checkout() && ! is_account_page() ) {
95
  // if we're not on a Woocommerce page, dequeue all of these scripts.
96
  wp_dequeue_script( 'wc-add-to-cart' );
97
- wp_dequeue_script( 'jquery-blockui' );
98
- wp_dequeue_script( 'jquery-placeholder' );
99
  wp_dequeue_script( 'woocommerce' );
100
- wp_dequeue_script( 'jquery-cookie' );
101
  wp_dequeue_script( 'wc-cart-fragments' );
102
  }
103
  }
@@ -119,7 +151,7 @@ class WpPerformance_Admin {
119
  if ( isset( $settings['rsd_clean'] ) && $settings['rsd_clean'] ) {
120
  remove_action( 'wp_head', 'rsd_link' );
121
  }
122
-
123
  if ( isset( $settings['remove_rsd'] ) && $settings['remove_rsd'] ) {
124
  remove_action ('wp_head', 'rsd_link');
125
  }
@@ -302,6 +334,16 @@ class WpPerformance_Admin {
302
  }
303
  }
304
 
 
 
 
 
 
 
 
 
 
 
305
  public function wp_performance_dequeue_woocommerce_cart_fragments() {
306
  if( WpPerformance::is_woocommerce_enabled() ){
307
  $settings = get_option( WpPerformance::OPTION_KEY . '_settings', array() );
@@ -367,9 +409,9 @@ class WpPerformance_Admin {
367
  $options['ds_adjusted_bounce_rate'] = isset( $post_req['ds_adjusted_bounce_rate'] ) ? sanitize_text_field( $post_req['ds_adjusted_bounce_rate']) : 0;
368
  $options['ds_enqueue_order'] = isset( $post_req['ds_enqueue_order'] ) ? sanitize_text_field( $post_req['ds_enqueue_order'] ) : 0;
369
  $options['ds_anonymize_ip'] = isset( $post_req['ds_anonymize_ip'] ) ? sanitize_text_field( $post_req['ds_anonymize_ip'] ) : null;
370
-
371
  $options['ds_script_position'] = isset( $post_req['ds_script_position'] ) ? sanitize_text_field( $post_req['ds_script_position'] ) : null;
372
- $options['caos_disable_display_features'] = isset( $post_req['caos_disable_display_features'] ) ? sanitize_text_field( $post_req['caos_disable_display_features'] ) : null;
373
  $options['ds_track_admin'] = isset( $post_req['ds_track_admin'] ) ? sanitize_text_field( $post_req['ds_track_admin'] ) : null;
374
  $options['caos_remove_wp_cron'] = isset( $post_req['caos_remove_wp_cron'] ) ? sanitize_text_field( $post_req['caos_remove_wp_cron'] ) : null;
375
 
@@ -388,6 +430,7 @@ class WpPerformance_Admin {
388
  $options = array(
389
  'disable_gravatars' => isset( $post_req['disable_gravatars'] ) ? 1 : 0,
390
  'disable_referral_spam' => isset( $post_req['disable_referral_spam'] ) ? 1 : 0,
 
391
  'dns_prefetch' => isset( $post_req['dns_prefetch'] ) ? 1 : 0,
392
  'dns_prefetch_host_list' => isset( $post_req['dns_prefetch_host_list'] ) ? $post_req['dns_prefetch_host_list'] : '',
393
  'disable_emoji' => isset( $post_req['disable_emoji'] ) ? 1 : 0,
@@ -395,6 +438,8 @@ class WpPerformance_Admin {
395
  'remove_querystrings' => isset( $post_req['remove_querystrings'] ) ? 1 : 0,
396
  'lazy_load_google_fonts' => isset( $post_req['lazy_load_google_fonts'] ) ? 1 : 0,
397
  'lazy_load_font_awesome' => isset( $post_req['lazy_load_font_awesome'] ) ? 1 : 0,
 
 
398
  'default_ping_status' => isset( $post_req['default_ping_status'] ) ? 1 : 0,
399
  'disable_all_comments' => isset( $post_req['disable_all_comments'] ) ? 1 : 0,
400
  'disable_author_pages' => isset( $post_req['disable_author_pages'] ) ? 1 : 0,
@@ -501,14 +546,15 @@ class WpPerformance_Admin {
501
 
502
  <?php wp_nonce_field( 'wpperformance-g-analytics-settings-nonce', 'wpperformance_g_analytics_settings_nonce' ); ?>
503
  </form>
504
- <?php
505
  }
506
 
507
- public static function addon_settings(){
508
-
509
  $default_values = array(
510
  'disable_gravatars' => 0,
511
  'disable_referral_spam' => 0,
 
512
  'dns_prefetch' => 0,
513
  'dns_prefetch_host_list' => '',
514
  'disable_emoji' => 0,
@@ -516,6 +562,8 @@ class WpPerformance_Admin {
516
  'remove_querystrings' => 0,
517
  'lazy_load_google_fonts' => 0,
518
  'lazy_load_font_awesome' => 0,
 
 
519
  'default_ping_status' => 0,
520
  'disable_all_comments' => 0,
521
  'disable_author_pages' => 0,
@@ -555,13 +603,13 @@ class WpPerformance_Admin {
555
  'disable_wordpress_password_meter' => 0,
556
  'disable_front_dashicons_when_disabled_toolbar' => 0,
557
  );
558
-
559
  $sett = get_option( WpPerformance::OPTION_KEY . '_settings', $default_values );
560
 
561
  $public_post_types = get_post_types( array( 'public' => true ) );
562
  ?>
563
  <div class="addon-settings" data-sett-group="wp-disable">
564
-
565
  <form action="<?php echo esc_url( admin_url( 'admin.php?page=optimisationio-dashboard' ) ); ?>" method="post">
566
 
567
  <div class="addon-settings-tabs">
@@ -572,6 +620,7 @@ class WpPerformance_Admin {
572
  <?php } ?>
573
  <li data-tab-setting="tags"><?php esc_html_e('Tags', 'optimisationio'); ?></li>
574
  <li data-tab-setting="admin"><?php esc_html_e('Admin', 'optimisationio'); ?></li>
 
575
  <li data-tab-setting="others"><?php esc_html_e('Others', 'optimisationio'); ?></li>
576
  </ul>
577
  </div>
@@ -602,6 +651,11 @@ class WpPerformance_Admin {
602
  <small style="display:inline-block; padding-top:5px;"><?php printf('%s Posts %s or %s Pages IDs %s separated by a', '<strong>', '</strong>', '<strong>', '</strong>' ); ?> <code>,</code></small>
603
  </div>
604
  </div>
 
 
 
 
 
605
  <div class="field">
606
  <div class="field-left"><?php esc_attr_e('Disable Referral Spam', 'optimisationio'); ?></div>
607
  <div class="field-right"><?php Optimisationio_Dashboard::checkbox_component('disable_referral_spam', isset( $sett['disable_referral_spam'] ) && 1 === (int) $sett['disable_referral_spam']); ?></div>
@@ -638,7 +692,7 @@ class WpPerformance_Admin {
638
  </div>
639
 
640
  <?php if( WpPerformance::is_woocommerce_enabled() ) { ?>
641
- <div data-tab-setting="woocommerce" class="addon-settings-content auto-table-layout active">
642
  <div class="field">
643
  <div class="field-left"><?php esc_attr_e('Disable WooCommerce scripts and CSS on non WooCommerce pages', 'optimisationio'); ?></div>
644
  <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>
@@ -683,13 +737,13 @@ class WpPerformance_Admin {
683
  <div class="field-right"><?php Optimisationio_Dashboard::checkbox_component('remove_wordpress_generator_tag', isset( $sett['remove_wordpress_generator_tag'] ) && 1 === (int) $sett['remove_wordpress_generator_tag']); ?></div>
684
  </div>
685
  </div>
686
-
687
  <div data-tab-setting="admin" class="addon-settings-content auto-table-layout">
688
  <div class="field">
689
  <div class="field-left"><?php esc_html_e( 'Posts revisions number', 'optimisationio'); ?></div>
690
  <div class="field-right">
691
  <?php
692
-
693
  $revisions_num = array(
694
  'default' => __( 'WordPress default', 'optimisationio' ),
695
  '0' => 0,
@@ -704,7 +758,7 @@ class WpPerformance_Admin {
704
  '25' => 25,
705
  '30' => 30,
706
  );
707
-
708
  $selected_val = 'default';
709
 
710
  if ( isset( $sett['disable_revisions'] ) ) {
@@ -751,7 +805,7 @@ class WpPerformance_Admin {
751
  <div class="field-left"><?php esc_attr_e('Disable comments on certain post types', 'optimisationio'); ?></div>
752
  <div class="field-right"><?php Optimisationio_Dashboard::checkbox_component('disable_comments_on_certain_post_types', isset( $sett['disable_comments_on_certain_post_types'] ) && 1 === (int) $sett['disable_comments_on_certain_post_types']); ?></div>
753
  </div>
754
-
755
  <?php
756
  foreach ( $public_post_types as $key => $value ) { ?>
757
  <div class="field sub-sub-field certain-posts-comments-group">
@@ -836,7 +890,18 @@ class WpPerformance_Admin {
836
  </div>
837
  </div>
838
  </div>
839
-
 
 
 
 
 
 
 
 
 
 
 
840
  <div data-tab-setting="others" class="addon-settings-content auto-table-layout">
841
  <div class="field">
842
  <div class="field-left"><?php esc_attr_e('Disable pingbacks and trackbacks', 'optimisationio'); ?></div>
@@ -883,13 +948,13 @@ class WpPerformance_Admin {
883
  'twicemonthly' => __( 'Twice Monthly', 'optimisationio' ),
884
  'monthly' => __( 'Once Monthly', 'optimisationio' ),
885
  );
886
-
887
  $selected_val = 'daily';
888
-
889
  if ( isset( $sett['delete_spam_comments'] ) && isset( $options[ $sett['delete_spam_comments'] ] ) ) {
890
  $selected_val = $sett['delete_spam_comments'];
891
  } ?>
892
-
893
  <select name="delete_spam_comments"> <?php
894
  foreach ( $options as $key => $val ) {
895
  echo '<option value="' . esc_attr( $key ) . '" ' . ($selected_val === $key ? ' selected' : '') . '>' . $val . '</option>';
@@ -904,13 +969,13 @@ class WpPerformance_Admin {
904
  printf( __( 'Next spam delete: %s', 'optimisationio' ), '<br/><strong><i>' . date( 'l, F j, Y @ h:i a',( $next_scheduled ) ) . '</i></strong>' );
905
  } ?>
906
  </div>
907
- <div class="field-right">
908
  <?php echo submit_button( __( 'Delete spam comments now', 'optimisationio' ) , 'large submit', 'delete_spam_comments_now', false ); ?>
909
  </div>
910
  </div>
911
  </div>
912
  </div>
913
-
914
  <div class="addon-settings-actions-section">
915
  <input type="submit" class="button button-primary button-large" name="" value="<?php echo esc_attr("Save settings", "optimisationio"); ?>" />
916
  </div>
2
  class WpPerformance_Admin {
3
 
4
  public function __construct() {
5
+ add_action( 'init', array( $this, 'wp_performance_yoast_seo_settings' ) );
6
  add_action( 'init', array( $this, 'wp_performance_disable_emojis' ) );
7
  add_action( 'init', array( $this, 'wp_performance_speed_stop_loading_wp_embed' ) );
8
  add_filter( 'script_loader_src', array( $this, 'wp_performance_remove_script_version' ), 15, 1 );
10
  add_action( 'init', array( $this, 'wp_performace_disable_woo_stuffs' ) );
11
  add_action( 'init', array( $this, 'wp_performance_optimize_cleanups' ) );
12
  add_action( 'wp_loaded', array( $this, 'wp_performance_disable_google_maps' ) );
13
+ add_action( 'wp_default_scripts', array( $this, 'remove_jquery_migrate' ) );
14
  add_action( 'wp_enqueue_scripts', array( $this, 'wp_performance_dequeue_woocommerce_cart_fragments' ), 11 );
15
  add_action( 'wp_loaded', array( $this, 'wp_performance_save_dashboard_settings' ) );
16
  $this->heartbeat_handler();
17
  }
18
 
19
+ public function wp_performance_yoast_seo_settings(){
20
+
21
+ if ( defined( 'WPSEO_VERSION' ) ){
22
+
23
+ $settings = get_option( WpPerformance::OPTION_KEY . '_settings', array() );
24
+
25
+ if ( isset( $settings['remove_yoast_comment'] ) && 1 === (int) $settings['remove_yoast_comment'] ) {
26
+ add_action( 'get_header', array( $this, 'remove_yoast_comment' ) );
27
+ add_action( 'wp_head', array( $this, 'remove_yoast_comment_complete' ), 999 );
28
+ }
29
+
30
+ if ( isset( $settings['remove_yoast_breadcrumbs_duplicates'] ) && 1 === (int) $settings['remove_yoast_breadcrumbs_duplicates'] ) {
31
+ add_filter('wpseo_breadcrumb_single_link', array( $this, 'remove_yoast_breadcrumb_last_link' ) );
32
+ }
33
+ }
34
+ }
35
+
36
+ public function remove_yoast_comment() {
37
+ ob_start( array( $this, 'remove_yoast_comment_replace' ) );
38
+ }
39
+
40
+ public function remove_yoast_comment_replace($html) {
41
+ return preg_replace( '/^<!--.*?[Y]oast.*?-->$/mi', '', $html );
42
+ }
43
+
44
+ public function remove_yoast_comment_complete() {
45
+ ob_end_flush();
46
+ }
47
+
48
+ public function remove_yoast_breadcrumb_last_link($link_output) {
49
+ return false !== strpos( $link_output, 'breadcrumb_last' ) ? '' : $link_output;
50
+ }
51
+
52
  public function disable_emojis_tinymce( $plugins ) {
53
  $ret = is_array( $plugins ) ? array_diff( $plugins, array( 'wpemoji' ) ) : array();
54
  return $ret;
79
 
80
  public function wp_performance_remove_script_version( $src ) {
81
  if ( ! is_admin() && ! current_user_can('administrator') && ! current_user_can('editor') ) {
82
+ $settings = get_option( WpPerformance::OPTION_KEY . '_settings', array() );
83
  if ( isset( $settings['remove_querystrings'] ) && 1 === (int) $settings['remove_querystrings'] ) {
84
  $parts = explode( '?ver', $src );
85
  return $parts[0];
129
  if ( ! is_woocommerce() && ! is_cart() && ! is_checkout() && ! is_account_page() ) {
130
  // if we're not on a Woocommerce page, dequeue all of these scripts.
131
  wp_dequeue_script( 'wc-add-to-cart' );
 
 
132
  wp_dequeue_script( 'woocommerce' );
 
133
  wp_dequeue_script( 'wc-cart-fragments' );
134
  }
135
  }
151
  if ( isset( $settings['rsd_clean'] ) && $settings['rsd_clean'] ) {
152
  remove_action( 'wp_head', 'rsd_link' );
153
  }
154
+
155
  if ( isset( $settings['remove_rsd'] ) && $settings['remove_rsd'] ) {
156
  remove_action ('wp_head', 'rsd_link');
157
  }
334
  }
335
  }
336
 
337
+ public function remove_jquery_migrate( &$scripts ) {
338
+ if( ! is_admin() ) {
339
+ $settings = get_option( WpPerformance::OPTION_KEY . '_settings', array() );
340
+ if ( isset( $settings['remove_jquery_migrate'] ) && 1 === (int) $settings['remove_jquery_migrate'] ) {
341
+ $scripts->remove('jquery');
342
+ $scripts->add('jquery', false, array('jquery-core'), '1.12.4');
343
+ }
344
+ }
345
+ }
346
+
347
  public function wp_performance_dequeue_woocommerce_cart_fragments() {
348
  if( WpPerformance::is_woocommerce_enabled() ){
349
  $settings = get_option( WpPerformance::OPTION_KEY . '_settings', array() );
409
  $options['ds_adjusted_bounce_rate'] = isset( $post_req['ds_adjusted_bounce_rate'] ) ? sanitize_text_field( $post_req['ds_adjusted_bounce_rate']) : 0;
410
  $options['ds_enqueue_order'] = isset( $post_req['ds_enqueue_order'] ) ? sanitize_text_field( $post_req['ds_enqueue_order'] ) : 0;
411
  $options['ds_anonymize_ip'] = isset( $post_req['ds_anonymize_ip'] ) ? sanitize_text_field( $post_req['ds_anonymize_ip'] ) : null;
412
+
413
  $options['ds_script_position'] = isset( $post_req['ds_script_position'] ) ? sanitize_text_field( $post_req['ds_script_position'] ) : null;
414
+ $options['caos_disable_display_features'] = isset( $post_req['caos_disable_display_features'] ) ? sanitize_text_field( $post_req['caos_disable_display_features'] ) : null;
415
  $options['ds_track_admin'] = isset( $post_req['ds_track_admin'] ) ? sanitize_text_field( $post_req['ds_track_admin'] ) : null;
416
  $options['caos_remove_wp_cron'] = isset( $post_req['caos_remove_wp_cron'] ) ? sanitize_text_field( $post_req['caos_remove_wp_cron'] ) : null;
417
 
430
  $options = array(
431
  'disable_gravatars' => isset( $post_req['disable_gravatars'] ) ? 1 : 0,
432
  'disable_referral_spam' => isset( $post_req['disable_referral_spam'] ) ? 1 : 0,
433
+ 'remove_jquery_migrate' => isset( $post_req['remove_jquery_migrate'] ) ? 1 : 0,
434
  'dns_prefetch' => isset( $post_req['dns_prefetch'] ) ? 1 : 0,
435
  'dns_prefetch_host_list' => isset( $post_req['dns_prefetch_host_list'] ) ? $post_req['dns_prefetch_host_list'] : '',
436
  'disable_emoji' => isset( $post_req['disable_emoji'] ) ? 1 : 0,
438
  'remove_querystrings' => isset( $post_req['remove_querystrings'] ) ? 1 : 0,
439
  'lazy_load_google_fonts' => isset( $post_req['lazy_load_google_fonts'] ) ? 1 : 0,
440
  'lazy_load_font_awesome' => isset( $post_req['lazy_load_font_awesome'] ) ? 1 : 0,
441
+ 'remove_yoast_comment' => isset( $post_req['remove_yoast_comment'] ) ? 1 : 0,
442
+ 'remove_yoast_breadcrumbs_duplicates' => isset( $post_req['remove_yoast_breadcrumbs_duplicates'] ) ? 1 : 0,
443
  'default_ping_status' => isset( $post_req['default_ping_status'] ) ? 1 : 0,
444
  'disable_all_comments' => isset( $post_req['disable_all_comments'] ) ? 1 : 0,
445
  'disable_author_pages' => isset( $post_req['disable_author_pages'] ) ? 1 : 0,
546
 
547
  <?php wp_nonce_field( 'wpperformance-g-analytics-settings-nonce', 'wpperformance_g_analytics_settings_nonce' ); ?>
548
  </form>
549
+ <?php
550
  }
551
 
552
+ public static function addon_settings(){
553
+
554
  $default_values = array(
555
  'disable_gravatars' => 0,
556
  'disable_referral_spam' => 0,
557
+ 'remove_jquery_migrate' => 0,
558
  'dns_prefetch' => 0,
559
  'dns_prefetch_host_list' => '',
560
  'disable_emoji' => 0,
562
  'remove_querystrings' => 0,
563
  'lazy_load_google_fonts' => 0,
564
  'lazy_load_font_awesome' => 0,
565
+ 'remove_yoast_comment' => 0,
566
+ 'remove_yoast_breadcrumbs_duplicates' => 0,
567
  'default_ping_status' => 0,
568
  'disable_all_comments' => 0,
569
  'disable_author_pages' => 0,
603
  'disable_wordpress_password_meter' => 0,
604
  'disable_front_dashicons_when_disabled_toolbar' => 0,
605
  );
606
+
607
  $sett = get_option( WpPerformance::OPTION_KEY . '_settings', $default_values );
608
 
609
  $public_post_types = get_post_types( array( 'public' => true ) );
610
  ?>
611
  <div class="addon-settings" data-sett-group="wp-disable">
612
+
613
  <form action="<?php echo esc_url( admin_url( 'admin.php?page=optimisationio-dashboard' ) ); ?>" method="post">
614
 
615
  <div class="addon-settings-tabs">
620
  <?php } ?>
621
  <li data-tab-setting="tags"><?php esc_html_e('Tags', 'optimisationio'); ?></li>
622
  <li data-tab-setting="admin"><?php esc_html_e('Admin', 'optimisationio'); ?></li>
623
+ <li data-tab-setting="seo"><?php esc_html_e('SEO', 'optimisationio'); ?></li>
624
  <li data-tab-setting="others"><?php esc_html_e('Others', 'optimisationio'); ?></li>
625
  </ul>
626
  </div>
651
  <small style="display:inline-block; padding-top:5px;"><?php printf('%s Posts %s or %s Pages IDs %s separated by a', '<strong>', '</strong>', '<strong>', '</strong>' ); ?> <code>,</code></small>
652
  </div>
653
  </div>
654
+
655
+ <div class="field">
656
+ <div class="field-left"><?php esc_attr_e('Remove jQuery migrate', 'optimisationio'); ?></div>
657
+ <div class="field-right"><?php Optimisationio_Dashboard::checkbox_component('remove_jquery_migrate', isset( $sett['remove_jquery_migrate'] ) && 1 === (int) $sett['remove_jquery_migrate']); ?></div>
658
+ </div>
659
  <div class="field">
660
  <div class="field-left"><?php esc_attr_e('Disable Referral Spam', 'optimisationio'); ?></div>
661
  <div class="field-right"><?php Optimisationio_Dashboard::checkbox_component('disable_referral_spam', isset( $sett['disable_referral_spam'] ) && 1 === (int) $sett['disable_referral_spam']); ?></div>
692
  </div>
693
 
694
  <?php if( WpPerformance::is_woocommerce_enabled() ) { ?>
695
+ <div data-tab-setting="woocommerce" class="addon-settings-content auto-table-layout">
696
  <div class="field">
697
  <div class="field-left"><?php esc_attr_e('Disable WooCommerce scripts and CSS on non WooCommerce pages', 'optimisationio'); ?></div>
698
  <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>
737
  <div class="field-right"><?php Optimisationio_Dashboard::checkbox_component('remove_wordpress_generator_tag', isset( $sett['remove_wordpress_generator_tag'] ) && 1 === (int) $sett['remove_wordpress_generator_tag']); ?></div>
738
  </div>
739
  </div>
740
+
741
  <div data-tab-setting="admin" class="addon-settings-content auto-table-layout">
742
  <div class="field">
743
  <div class="field-left"><?php esc_html_e( 'Posts revisions number', 'optimisationio'); ?></div>
744
  <div class="field-right">
745
  <?php
746
+
747
  $revisions_num = array(
748
  'default' => __( 'WordPress default', 'optimisationio' ),
749
  '0' => 0,
758
  '25' => 25,
759
  '30' => 30,
760
  );
761
+
762
  $selected_val = 'default';
763
 
764
  if ( isset( $sett['disable_revisions'] ) ) {
805
  <div class="field-left"><?php esc_attr_e('Disable comments on certain post types', 'optimisationio'); ?></div>
806
  <div class="field-right"><?php Optimisationio_Dashboard::checkbox_component('disable_comments_on_certain_post_types', isset( $sett['disable_comments_on_certain_post_types'] ) && 1 === (int) $sett['disable_comments_on_certain_post_types']); ?></div>
807
  </div>
808
+
809
  <?php
810
  foreach ( $public_post_types as $key => $value ) { ?>
811
  <div class="field sub-sub-field certain-posts-comments-group">
890
  </div>
891
  </div>
892
  </div>
893
+
894
+ <div data-tab-setting="seo" class="addon-settings-content auto-table-layout">
895
+ <div class="field">
896
+ <div class="field-left"><?php esc_attr_e('Remove Yoast SEO comment from head section', 'optimisationio'); ?></div>
897
+ <div class="field-right"><?php Optimisationio_Dashboard::checkbox_component('remove_yoast_comment', isset( $sett['remove_yoast_comment'] ) && 1 === (int) $sett['remove_yoast_comment']); ?></div>
898
+ </div>
899
+ <div class="field">
900
+ <div class="field-left"><?php esc_attr_e('Remove duplicate names in breadcrumbs WP SEO by Yoast', 'optimisationio'); ?></div>
901
+ <div class="field-right"><?php Optimisationio_Dashboard::checkbox_component('remove_yoast_breadcrumbs_duplicates', isset( $sett['remove_yoast_breadcrumbs_duplicates'] ) && 1 === (int) $sett['remove_yoast_breadcrumbs_duplicates']); ?></div>
902
+ </div>
903
+ </div>
904
+
905
  <div data-tab-setting="others" class="addon-settings-content auto-table-layout">
906
  <div class="field">
907
  <div class="field-left"><?php esc_attr_e('Disable pingbacks and trackbacks', 'optimisationio'); ?></div>
948
  'twicemonthly' => __( 'Twice Monthly', 'optimisationio' ),
949
  'monthly' => __( 'Once Monthly', 'optimisationio' ),
950
  );
951
+
952
  $selected_val = 'daily';
953
+
954
  if ( isset( $sett['delete_spam_comments'] ) && isset( $options[ $sett['delete_spam_comments'] ] ) ) {
955
  $selected_val = $sett['delete_spam_comments'];
956
  } ?>
957
+
958
  <select name="delete_spam_comments"> <?php
959
  foreach ( $options as $key => $val ) {
960
  echo '<option value="' . esc_attr( $key ) . '" ' . ($selected_val === $key ? ' selected' : '') . '>' . $val . '</option>';
969
  printf( __( 'Next spam delete: %s', 'optimisationio' ), '<br/><strong><i>' . date( 'l, F j, Y @ h:i a',( $next_scheduled ) ) . '</i></strong>' );
970
  } ?>
971
  </div>
972
+ <div class="field-right">
973
  <?php echo submit_button( __( 'Delete spam comments now', 'optimisationio' ) , 'large submit', 'delete_spam_comments_now', false ); ?>
974
  </div>
975
  </div>
976
  </div>
977
  </div>
978
+
979
  <div class="addon-settings-actions-section">
980
  <input type="submit" class="button button-primary button-large" name="" value="<?php echo esc_attr("Save settings", "optimisationio"); ?>" />
981
  </div>
lib/class-wpperformance.php CHANGED
@@ -208,7 +208,11 @@ class WpPerformance {
208
 
209
  $settings = $this->get_settings_values();
210
 
211
- if( ! is_admin() && ! is_admin_bar_showing() && isset( $settings['disable_front_dashicons_when_disabled_toolbar'] ) && $settings['disable_front_dashicons_when_disabled_toolbar'] ){
 
 
 
 
212
  wp_deregister_style('dashicons');
213
  }
214
  }
208
 
209
  $settings = $this->get_settings_values();
210
 
211
+ if( ! is_admin() &&
212
+ ! is_admin_bar_showing() &&
213
+ ! is_customize_preview() &&
214
+ isset( $settings['disable_front_dashicons_when_disabled_toolbar'] ) &&
215
+ $settings['disable_front_dashicons_when_disabled_toolbar'] ){
216
  wp_deregister_style('dashicons');
217
  }
218
  }
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Reduce HTTP Requests, Disable Emojis & Disable Embeds, Speedup WooCommerce ===
2
- Contributors: pigeonhut, Jody Nesbitt, optimisation.io
3
  Tags: Disable Emoji, Disable Embeds, Disable Gravatars, Remove Querystrings, Reduce HTTP Requests, speedup WooCommerce, Close comments, Optimization
4
  Requires at least: 4.5
5
- Tested up to: 4.8.2
6
- Stable tag: 1.5.13
7
  License: GPLv2 or later
8
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -36,6 +36,11 @@ General Performance improvements: Added support for : disable ping/trackbacks, c
36
  <b>Have an idea ?</b><br>
37
  <a href="https://github.com/hosting-io/wp-disable">Public repo on GitHub</a> if you would like to contribute or have any ideas to add.
38
 
 
 
 
 
 
39
  == Installation ==
40
 
41
  This section describes how to install the plugin and get it working.
@@ -69,14 +74,26 @@ We will soon be adding a free CDN for css/js for all users that is integrated wi
69
  You can try our <a href="https://wordpress.org/plugins/wp-image-compression/">Free Image Compression plugin</a> which has really good compression ratios with little to no loss of image quality.
70
 
71
  == Screenshots ==
72
- 1. Full site, 16 HTTP requests, 0.5MB
73
- 2. What's Possible with some hard work (Clean install)
74
- 3. Pingdom Report
75
  4. Fast Hosting Servers make a difference to overall performance
76
- 5. Because Speed Matters (tm)
77
 
78
 
79
  == Changelog ==
 
 
 
 
 
 
 
 
 
 
 
 
 
80
  = 1.5.13 =
81
  * Added Settings link on main Installed Plugin view
82
  * General code tidy up
1
  === Reduce HTTP Requests, Disable Emojis & Disable Embeds, Speedup WooCommerce ===
2
+ Contributors: optimisation.io, hosting.io
3
  Tags: Disable Emoji, Disable Embeds, Disable Gravatars, Remove Querystrings, Reduce HTTP Requests, speedup WooCommerce, Close comments, Optimization
4
  Requires at least: 4.5
5
+ Tested up to: 4.9
6
+ Stable tag: 1.5.14
7
  License: GPLv2 or later
8
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
9
 
36
  <b>Have an idea ?</b><br>
37
  <a href="https://github.com/hosting-io/wp-disable">Public repo on GitHub</a> if you would like to contribute or have any ideas to add.
38
 
39
+ <b>Docs & Support</b><br>
40
+ <a href="https://optimisation.io/faq/">The documentation is an on-going project, so please bare with us as we update. If you would like to help with the documentation, please get in touch.
41
+
42
+
43
+
44
  == Installation ==
45
 
46
  This section describes how to install the plugin and get it working.
74
  You can try our <a href="https://wordpress.org/plugins/wp-image-compression/">Free Image Compression plugin</a> which has really good compression ratios with little to no loss of image quality.
75
 
76
  == Screenshots ==
77
+ 1. Plugin Interface
78
+ 2. Pingdom Report
 
79
  4. Fast Hosting Servers make a difference to overall performance
80
+ 4. Because Speed Matters (tm)
81
 
82
 
83
  == Changelog ==
84
+ = 1.5.14 =
85
+ * Started on Documentation (can be found here https://optimisation.io/faq/)
86
+ * Added donation button - help us make this the best optimisation suite available on the repo. Every $ donated helps.
87
+ * Added SEO Tab
88
+ * Added ability to remove Duplicate names in breadcrumbs
89
+ * Added Remove Yoast SEO comments
90
+ * Tested on Gutenberg
91
+ * Tested on WP 4.9
92
+ * Remove Dequeue from some functions
93
+ * Disabled Dashicons in Customizer
94
+ * Minor bug fixes as per support forum
95
+
96
+
97
  = 1.5.13 =
98
  * Added Settings link on main Installed Plugin view
99
  * General code tidy up
views/optimisationio-dashboard.php CHANGED
@@ -17,7 +17,7 @@ $addons = Optimisationio_Dashboard::$addons;
17
  <a href="https://optimisation.io/faq/" title="" target="_blank"><img src="<?php echo esc_url( plugin_dir_url( dirname( __FILE__ ) ) . 'images/logo-optimisation-line.png' ); ?>" alt="" /><?php _e( 'Help and Support' , 'optimisationio' ); ?></a>
18
  </div>
19
  <div class="statistics-top-cell support">
20
- <a href="https://www.paypal.me/web9/10" title="" target="_blank"><img src="<?php echo esc_url( plugin_dir_url( dirname( __FILE__ ) ) . 'images/icon-support.png' ); ?>" alt="" /><?php _e( 'Donate and help us build the ultimate optimisation suite' , 'optimisationio' ); ?></a>
21
  </div>
22
  </div>
23
 
@@ -89,6 +89,33 @@ $addons = Optimisationio_Dashboard::$addons;
89
 
90
  </div><!-- // .sidebar-section -->
91
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
  </div>
93
 
94
  <?php wp_nonce_field( 'optimisationio-addons-nonce', 'optimisationio_addons_nonce' ); ?>
17
  <a href="https://optimisation.io/faq/" title="" target="_blank"><img src="<?php echo esc_url( plugin_dir_url( dirname( __FILE__ ) ) . 'images/logo-optimisation-line.png' ); ?>" alt="" /><?php _e( 'Help and Support' , 'optimisationio' ); ?></a>
18
  </div>
19
  <div class="statistics-top-cell support">
20
+ <a href="https://www.paypal.me/web9/10" class="donate-link" title="" target="_blank"><img src="<?php echo esc_url( plugin_dir_url( dirname( __FILE__ ) ) . 'images/icon-support.png' ); ?>" alt="" /><span><?php _e( 'Donate and help us build the ultimate optimisation suite' , 'optimisationio' ); ?></span></a>
21
  </div>
22
  </div>
23
 
89
 
90
  </div><!-- // .sidebar-section -->
91
 
92
+ <div class="donation-overlay-wrap hidden">
93
+ <div class="donation-overlay-outer">
94
+ <div class="donation-overlay-main">
95
+ <div class="donation-overlay-inner">
96
+ <div class="donation-overlay-top">
97
+ <img src="<?php echo esc_url( plugin_dir_url( dirname( __FILE__ ) ) . 'images/logo-optimisation.png' ); ?>" alt="" />
98
+ <span><?php _e( 'Donate and help us build the ultimate optimisation suite' , 'optimisationio' ); ?></span>
99
+ </div>
100
+ <div class="donation-overlay-bottom">
101
+ <select name="donation-value">
102
+ <option value="5">$5 - Buy me a beer</option>
103
+ <option value="10" selected>$10 - Buy me a shot</option>
104
+ <option value="20">$20 - Feeling generous</option>
105
+ <option value="30">$30 - Awesome work</option>
106
+ <option value="50">$50 - I really love this plugin</option>
107
+ <option value="60">$60 - A beer a month</option>
108
+ <option value="100">$100 - Money well spent</option>
109
+ </select>
110
+ <br/>
111
+ <button class="button button-primary button-large">DONATE</button>
112
+ </div>
113
+ <button class="close"><span>x</span></button>
114
+ </div>
115
+ </div>
116
+ </div>
117
+ </div><!-- // .donation-overlay-wrap -->
118
+
119
  </div>
120
 
121
  <?php wp_nonce_field( 'optimisationio-addons-nonce', 'optimisationio_addons_nonce' ); ?>
wpperformance.php CHANGED
@@ -3,9 +3,9 @@
3
  * Plugin Name: WP Disable
4
  * Plugin URI: https://optimisation.io
5
  * Description: Improve WordPress performance by disabling unused items. <a href="admin.php?page=optimisationio-dashboard">Open Settings</a>
6
- * Author: pigeonhut, Jody Nesbitt, optimisation.io
7
  * Author URI:https://optimisation.io
8
- * Version: 1.5.13
9
  *
10
  * Copyright (C) 2017 Optimisation.io
11
  */
3
  * Plugin Name: WP Disable
4
  * Plugin URI: https://optimisation.io
5
  * Description: Improve WordPress performance by disabling unused items. <a href="admin.php?page=optimisationio-dashboard">Open Settings</a>
6
+ * Author: optimisation.io, hosting.io
7
  * Author URI:https://optimisation.io
8
+ * Version: 1.5.14
9
  *
10
  * Copyright (C) 2017 Optimisation.io
11
  */