Asset CleanUp: Page Speed Booster - Version 1.3.3.1

Version Description

  • Option to unload on all pages (site-wid) the Dashicons for non logged-in users
  • Load it on this page (exception) is preserved if chosen before any bulk unload
  • Better accuracy in getting the total unloaded assets
  • Used transient to store total unloaded assets from the SQL query (it's slow on some servers)
  • Improved "Plugin Review" notice to use less queries to determine if it will be shown or not
  • On plugin activation, mark Checkout/Cart pages from WooCommerce & EDD to not apply plugin combine/minify options
  • Minify/Combine CSS/JS files option from Asset CleanUp will be unavailable if Fast Velocity Minify is active
  • Fixed undefined error related to ignore "children" option
  • Implemented WordPress File System for dealing with read/write cached CSS/JS files
  • Improved "CSS/JS Load Manager" pages overview layout
  • Disable oEmbeds Feature; Option to update "Assets List Layout" while managing the assets
  • Added tip messages next to various handles
  • Bug Fix: AJAX call for retrieving plugins' icons was not working
  • Updated Freemius SDK to 2.3.0
Download this release

Release Info

Developer gabelivan
Plugin Icon 128x128 Asset CleanUp: Page Speed Booster
Version 1.3.3.1
Comparing to
See all releases

Code changes from version 1.3.3.0 to 1.3.3.1

classes/ImportExport.php CHANGED
@@ -253,4 +253,4 @@ SQL;
253
}
254
}
255
/***** END IMPORT ******/
256
- }
253
}
254
}
255
/***** END IMPORT ******/
256
+ }
classes/Main.php CHANGED
@@ -495,6 +495,7 @@ class Main
495
496
if (isset($jQueryRegScript->deps)) {
497
$jQueryRegScript->deps = array_diff($jQueryRegScript->deps, array('jquery-migrate'));
498
}
499
500
continue;
495
496
if (isset($jQueryRegScript->deps)) {
497
$jQueryRegScript->deps = array_diff($jQueryRegScript->deps, array('jquery-migrate'));
498
+ wp_dequeue_script($handle);
499
}
500
501
continue;
classes/OptimiseAssets/OptimizeCommon.php CHANGED
@@ -27,7 +27,8 @@ class OptimizeCommon
27
28
// Is WP Rocket's page cache cleared? Clear Asset CleanUp's CSS cache files too
29
if (array_key_exists('action', $_GET) && $_GET['action'] === 'purge_cache') {
30
- add_action( 'before_rocket_clean_domain', array( $this, 'clearAllCache' ) );
31
}
32
33
add_action('admin_post_assetcleanup_clear_assets_cache', function() {
27
28
// Is WP Rocket's page cache cleared? Clear Asset CleanUp's CSS cache files too
29
if (array_key_exists('action', $_GET) && $_GET['action'] === 'purge_cache') {
30
+ // Leave its default parameters, no redirect needed
31
+ self::clearAllCache();
32
}
33
34
add_action('admin_post_assetcleanup_clear_assets_cache', function() {
classes/Settings.php CHANGED
@@ -379,11 +379,17 @@ class Settings
379
}
380
}
381
382
- // "Site-Wide Common Unloads" tab
383
- $disableJQueryMigrate = isset($_POST[WPACU_PLUGIN_ID . '_global_unloads']['disable_jquery_migrate']);
384
- $disableCommentReply = isset($_POST[WPACU_PLUGIN_ID . '_global_unloads']['disable_comment_reply']);
385
-
386
- $this->loadUnloadCommon(array('jquery_migrate' => $disableJQueryMigrate, 'comment_reply' => $disableCommentReply));
387
388
Misc::addUpdateOption(WPACU_PLUGIN_ID . '_settings', json_encode($settings));
389
379
}
380
}
381
382
+ // The following are only triggered IF the user submitted the form from "Settings" area
383
+ if (Misc::getVar('post', 'wpacu_settings_nonce')) {
384
+ // "Site-Wide Common Unloads" tab
385
+ $disableJQueryMigrate = isset($_POST[WPACU_PLUGIN_ID . '_global_unloads']['disable_jquery_migrate']);
386
+ $disableCommentReply = isset($_POST[WPACU_PLUGIN_ID . '_global_unloads']['disable_comment_reply']);
387
+
388
+ $this->loadUnloadCommon(array(
389
+ 'jquery_migrate' => $disableJQueryMigrate,
390
+ 'comment_reply' => $disableCommentReply
391
+ ));
392
+ }
393
394
Misc::addUpdateOption(WPACU_PLUGIN_ID . '_settings', json_encode($settings));
395
classes/Update.php CHANGED
@@ -578,7 +578,7 @@ HTML;
578
}
579
}
580
581
- $existingListJson = get_option( WPACU_PLUGIN_ID . '_global_unload');
582
583
if (! $existingListJson) {
584
return false;
578
}
579
}
580
581
+ $existingListJson = get_option(WPACU_PLUGIN_ID . '_global_unload');
582
583
if (! $existingListJson) {
584
return false;
freemius/assets/index.php ADDED
@@ -0,0 +1,3 @@
1
+ <?php
2
+ // Silence is golden.
3
+ // Hide file structure from users on unprotected servers.
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
=== Asset CleanUp: Page Speed Booster ===
2
Contributors: gabelivan
3
- Tags: pagespeed, page speed, dequeue, performance, gtmetrix
4
Donate link: https://gabelivan.com/items/wp-asset-cleanup-pro/?utm_source=wp_org_lite&utm_medium=donate
5
Requires at least: 4.4
6
Tested up to: 5.2.2
7
- Stable tag: 1.3.3.0
8
License: GPLv3
9
License URI: http://www.gnu.org/licenses/gpl.html
10
@@ -154,6 +154,22 @@ With the recently released "Test Mode" feature, you can safely unload assets on
154
4. Homepage CSS & JS Management (List sorted by location)
155
156
== Changelog ==
157
= 1.3.3.0 =
158
* Minify/Combine CSS/JS files option from Asset CleanUp will be unavailable if the same feature is used in other plugins (the list includes: Autoptimize, WP Rocket, WP Fastest Cache, W3 Total Cache, SG Optimizer) to save resources and potential conflicts
159
* Remove Shortlink - Addition: Clean it up from the HTTP header as well (not just within the HEAD section of the website)
1
=== Asset CleanUp: Page Speed Booster ===
2
Contributors: gabelivan
3
+ Tags: pagespeed, page speed, dequeue, minify css, performance
4
Donate link: https://gabelivan.com/items/wp-asset-cleanup-pro/?utm_source=wp_org_lite&utm_medium=donate
5
Requires at least: 4.4
6
Tested up to: 5.2.2
7
+ Stable tag: 1.3.3.1
8
License: GPLv3
9
License URI: http://www.gnu.org/licenses/gpl.html
10
154
4. Homepage CSS & JS Management (List sorted by location)
155
156
== Changelog ==
157
+ = 1.3.3.1 =
158
+ * Option to unload on all pages (site-wid) the Dashicons for non logged-in users
159
+ * Load it on this page (exception) is preserved if chosen before any bulk unload
160
+ * Better accuracy in getting the total unloaded assets
161
+ * Used transient to store total unloaded assets from the SQL query (it's slow on some servers)
162
+ * Improved "Plugin Review" notice to use less queries to determine if it will be shown or not
163
+ * On plugin activation, mark Checkout/Cart pages from WooCommerce & EDD to not apply plugin combine/minify options
164
+ * Minify/Combine CSS/JS files option from Asset CleanUp will be unavailable if Fast Velocity Minify is active
165
+ * Fixed undefined error related to ignore "children" option
166
+ * Implemented WordPress File System for dealing with read/write cached CSS/JS files
167
+ * Improved "CSS/JS Load Manager" pages overview layout
168
+ * Disable oEmbeds Feature; Option to update "Assets List Layout" while managing the assets
169
+ * Added tip messages next to various handles
170
+ * Bug Fix: AJAX call for retrieving plugins' icons was not working
171
+ * Updated Freemius SDK to 2.3.0
172
+
173
= 1.3.3.0 =
174
* Minify/Combine CSS/JS files option from Asset CleanUp will be unavailable if the same feature is used in other plugins (the list includes: Autoptimize, WP Rocket, WP Fastest Cache, W3 Total Cache, SG Optimizer) to save resources and potential conflicts
175
* Remove Shortlink - Addition: Clean it up from the HTTP header as well (not just within the HEAD section of the website)
wpacu.php CHANGED
@@ -2,7 +2,7 @@
2
/*
3
* Plugin Name: Asset CleanUp: Page Speed Booster
4
* Plugin URI: https://wordpress.org/plugins/wp-asset-clean-up/
5
- * Version: 1.3.3.0
6
* Description: Unload Chosen Scripts & Styles from Posts/Pages to reduce HTTP Requests, Combine/Minify CSS/JS files
7
* Author: Gabriel Livan
8
* Author URI: http://gabelivan.com/
@@ -10,7 +10,7 @@
10
* Domain Path: /languages
11
*/
12
13
- define('WPACU_PLUGIN_VERSION', '1.3.3.0');
14
15
// Exit if accessed directly
16
if (! defined('ABSPATH')) {
2
/*
3
* Plugin Name: Asset CleanUp: Page Speed Booster
4
* Plugin URI: https://wordpress.org/plugins/wp-asset-clean-up/
5
+ * Version: 1.3.3.1
6
* Description: Unload Chosen Scripts & Styles from Posts/Pages to reduce HTTP Requests, Combine/Minify CSS/JS files
7
* Author: Gabriel Livan
8
* Author URI: http://gabelivan.com/
10
* Domain Path: /languages
11
*/
12
13
+ define('WPACU_PLUGIN_VERSION', '1.3.3.1');
14
15
// Exit if accessed directly
16
if (! defined('ABSPATH')) {