Changeset 3428405
- Timestamp:
- 12/27/2025 09:46:12 PM (8 weeks ago)
- Location:
- flashspeed/trunk
- Files:
-
- 4 edited
-
changelog.txt (modified) (1 diff)
-
flashspeed.php (modified) (5 diffs)
-
includes/functions.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
flashspeed/trunk/changelog.txt
r3357161 r3428405 1 = 3.2.1 - 2025-12-26 = 2 * Improvement - Add missing textarea selectors to JavaScript feature gating for Growth and Pro plans 3 * Improvement - Add FLASHSPEED_OPTION constant for consistent option name usage 4 * Improvement - Use consistent FLASHSPEED_ROOT constant for all file paths 5 * Fix - Remove commented dead code for cleaner codebase 6 * Code Quality - Comprehensive code cleanup and optimization in main plugin file 7 8 = 3.1.0 - 2025-12-03 = 9 * Security - Add comprehensive header injection validation with control character filtering 10 * Security - Implement Content Security Policy (CSP) validation with directive whitelisting 11 * Security - Add ReDoS protection to all regex operations (Google Maps, Google Fonts, Pingback) 12 * Security - Add input validation and PCRE limits to prevent regex-based DoS attacks 13 * Improvement - Replace output buffering with targeted WordPress filters for better performance 14 * Improvement - Remove Google Maps/Fonts via script/style loader filters instead of HTML parsing 15 * Improvement - Remove pingback links directly via wp_head action instead of output buffering 16 * Improvement - Add static caching to settings schema generation to prevent redundant processing 17 * Improvement - Optimize settings retrieval with static caching to reduce database queries 18 * Improvement - Add comprehensive error handling for wp-config.php modifications 19 * Improvement - Implement automatic backup creation before wp-config.php changes 20 * Improvement - Add syntax validation (php -l) before applying wp-config.php modifications 21 * Improvement - Add automatic rollback mechanism on wp-config.php modification failure 22 * Improvement - Remove duplicate emoji removal code to improve performance 23 * Improvement - Add robust output buffer error handling with level checks and shutdown handlers 24 * Improvement - Add error logging for regex failures when WP_DEBUG is enabled 25 * Improvement - Implement graceful degradation on regex errors 26 * Fix - Remove ~128 lines of complex buffer management code 27 * Fix - Eliminate buffer overflow and nesting issues 28 * Fix - Reduce memory usage by eliminating full HTML output buffering 29 * Performance - Significant reduction in CPU usage (no regex on full HTML output) 30 * Performance - Reduced memory footprint (no HTML buffering) 31 * Performance - Faster execution time (targeted filters vs full page processing) 32 33 = 3.0.0 - 2025-11-10 = 34 * Improvement - brand-new JSON schema-driven settings UI 35 * Improvement - add CodeMirror editor refresh on tab switch 36 * Improvement - minify GA4 analytics and Instant Page scripts 37 * Improvement - validate delay value and add data-wp-strategy attribute to script tag 38 * Improvement - remove duplicate oembed discovery links removal 39 * Improvement - code refactoring, prune dead code 40 * Improvement - update tom-select vendor files 41 1 42 = 2.1.0 - 2025-09-06 = 2 43 * Update - Zen Settings, FS -
flashspeed/trunk/flashspeed.php
r3410166 r3428405 5 5 * Plugin URI: https://utopique.net/products/flashspeed/ 6 6 * Description: FlashSpeed disables unused assets and optimizes resources, resulting in a lightning-fast site. Say goodbye to slow loading times and hello to a blazingly fast user experience! 7 * Version: 3. 1.07 * Version: 3.2.0 8 8 * Author: Utopique 9 9 * Author URI: https://utopique.net/ … … 27 27 28 28 // Plugin version 29 define( 'FLASHSPEED_VERSION', '3. 1.0' );29 define( 'FLASHSPEED_VERSION', '3.2.0' ); 30 30 // Plugin root path 31 define( "FLASHSPEED_ROOT", trailingslashit( plugin_dir_path( __FILE__ ) ) ); 31 define( 'FLASHSPEED_ROOT', trailingslashit( plugin_dir_path( __FILE__ ) ) ); 32 // Plugin option name 33 define( 'FLASHSPEED_OPTION', 'flashspeed_settings' ); 32 34 /** 33 35 * Shared accessor for plugin settings (flashspeed_settings) … … 38 40 static $cached_options = null; 39 41 if ( $cached_options === null ) { 40 $cached_options = \get_option( 'flashspeed_settings', [] );42 $cached_options = \get_option( FLASHSPEED_OPTION, [] ); 41 43 if ( !\is_array( $cached_options ) ) { 42 44 $cached_options = []; … … 74 76 global $flashspeed_fs; 75 77 if ( !isset( $flashspeed_fs ) ) { 76 include_once FLASHSPEED_ROOT . ' /vendor/freemius/wordpress-sdk/start.php';78 include_once FLASHSPEED_ROOT . 'vendor/freemius/wordpress-sdk/start.php'; 77 79 $flashspeed_fs = fs_dynamic_init( array( 78 80 'id' => '5233', … … 99 101 do_action( 'flashspeed_fs_loaded' ); 100 102 } 101 //require_once plugin_dir_path(__FILE__) . '/vendor/autoload.php'; 103 /** 104 * Customize Freemius pricing page logo 105 */ 106 function flashspeed_fs_custom_icon() { 107 return FLASHSPEED_ROOT . 'assets/flashspeed.jpg'; 108 } 109 110 flashspeed_fs()->add_filter( 'plugin_icon', __NAMESPACE__ . '\\flashspeed_fs_custom_icon' ); 102 111 /** 103 112 * Load plugin config 104 113 */ 105 include_once plugin_dir_path( __FILE__ ). 'includes/config.php';114 include_once FLASHSPEED_ROOT . 'includes/config.php'; 106 115 /** 107 116 * Load functions (schema-driven settings UI) 108 117 */ 109 include_once plugin_dir_path( __FILE__ ). 'includes/functions.php';118 include_once FLASHSPEED_ROOT . 'includes/functions.php'; 110 119 } 111 120 //end FS -
flashspeed/trunk/includes/functions.php
r3410166 r3428405 24 24 25 25 // Settings option and group 26 \define('FLASHSPEED_OPTION', 'flashspeed_settings'); 27 \define('FLASHSPEED_SETTINGS_GROUP', 'flashspeed_settings_group'); 28 \define('FLASHSPEED_MENU_SLUG', 'flashspeed'); 26 if ( ! \defined( 'FLASHSPEED_OPTION' ) ) { 27 \define( 'FLASHSPEED_OPTION', 'flashspeed_settings' ); 28 } 29 if ( ! \defined( 'FLASHSPEED_SETTINGS_GROUP' ) ) { 30 \define( 'FLASHSPEED_SETTINGS_GROUP', 'flashspeed_settings_group' ); 31 } 32 if ( ! \defined( 'FLASHSPEED_MENU_SLUG' ) ) { 33 \define( 'FLASHSPEED_MENU_SLUG', 'flashspeed' ); 34 } 29 35 30 36 /** -
flashspeed/trunk/readme.txt
r3410166 r3428405 2 2 Contributors: skyminds 3 3 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=DNSC3NVBWR66L 4 Tags: performance, speed optimization, page speed, caching, woocommerce, core web vitals, security headers, asset optimization, seo, google analytics4 Tags: performance, core web vitals, security headers, speed, bloat 5 5 Requires at least: 6.0 6 6 Tested up to: 6.9 7 7 Requires PHP: 7.4 8 Stable tag: 3. 1.08 Stable tag: 3.2.0 9 9 WC requires at least: 3.3 10 WC tested up to: 10. 410 WC tested up to: 10.5 11 11 License: GPLv3 or later 12 12 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 201 201 == Changelog == 202 202 203 = 3.1.0 - 2025-12-03 = 204 * Security - Add comprehensive header injection validation with control character filtering 205 * Security - Implement Content Security Policy (CSP) validation with directive whitelisting 206 * Security - Add ReDoS protection to all regex operations (Google Maps, Google Fonts, Pingback) 207 * Security - Add input validation and PCRE limits to prevent regex-based DoS attacks 208 * Improvement - Replace output buffering with targeted WordPress filters for better performance 209 * Improvement - Remove Google Maps/Fonts via script/style loader filters instead of HTML parsing 210 * Improvement - Remove pingback links directly via wp_head action instead of output buffering 211 * Improvement - Add static caching to settings schema generation to prevent redundant processing 212 * Improvement - Optimize settings retrieval with static caching to reduce database queries 213 * Improvement - Add comprehensive error handling for wp-config.php modifications 214 * Improvement - Implement automatic backup creation before wp-config.php changes 215 * Improvement - Add syntax validation (php -l) before applying wp-config.php modifications 216 * Improvement - Add automatic rollback mechanism on wp-config.php modification failure 217 * Improvement - Remove duplicate emoji removal code to improve performance 218 * Improvement - Add robust output buffer error handling with level checks and shutdown handlers 219 * Improvement - Add error logging for regex failures when WP_DEBUG is enabled 220 * Improvement - Implement graceful degradation on regex errors 221 * Fix - Remove ~128 lines of complex buffer management code 222 * Fix - Eliminate buffer overflow and nesting issues 223 * Fix - Reduce memory usage by eliminating full HTML output buffering 224 * Performance - Significant reduction in CPU usage (no regex on full HTML output) 225 * Performance - Reduced memory footprint (no HTML buffering) 226 * Performance - Faster execution time (targeted filters vs full page processing) 227 228 = 3.0.0 - 2025-11-10 = 229 * Improvement - brand-new JSON schema-driven settings UI 230 * Improvement - add CodeMirror editor refresh on tab switch 231 * Improvement - minify GA4 analytics and Instant Page scripts 232 * Improvement - validate delay value and add data-wp-strategy attribute to script tag 233 * Improvement - remove duplicate oembed discovery links removal 234 * Improvement - code refactoring, prune dead code 235 * Improvement - update tom-select vendor files 236 237 238 = 2.1.0 - 2025-09-06 = 239 * Update - Zen Settings, FS 240 * Fix - translations loading too early 241 * Fix - admin notice output to prevent XSS vulnerabilities 242 * Improvement - WooCommerce HPOS compatibility 243 * Improvement - favicon handling 244 * Improvement - agency features list 245 * Improvement - preconnect/preload link tag generation 246 * Improvement - tracking code sanitization 247 * Improvement - instant page script loading 248 * Improvement - wp-config.php file permission checks 203 = 3.2.0 - 2025-12-26 = 204 * Improvement - Add missing textarea selectors to JavaScript feature gating for Growth and Pro plans 205 * Improvement - Add FLASHSPEED_OPTION constant for consistent option name usage 206 * Improvement - Use consistent FLASHSPEED_ROOT constant for all file paths 207 * Fix - Remove commented dead code for cleaner codebase 208 * Code Quality - Comprehensive code cleanup and optimization in main plugin file 249 209 250 210 Older versions changes can be found in [the changelog](https://utopique.net/products/flash-speed-pro/#changelog "FlashSpeed Optimizer changelog") … … 252 212 == Upgrade Notice == 253 213 254 = 3. 1.0 =255 Critical security update: Fixes header injection vulnerability, adds ReDoS protection.Major performance improvements by replacing output buffering with targeted filters. Includes comprehensive error handling for wp-config.php modifications with automatic backup and rollback. Highly recommended upgrade for all users.214 = 3.2.0 = 215 Major performance improvements by replacing output buffering with targeted filters. Includes comprehensive error handling for wp-config.php modifications with automatic backup and rollback. Highly recommended upgrade for all users.
Note: See TracChangeset
for help on using the changeset viewer.