Plugin Directory

Changeset 3428405


Ignore:
Timestamp:
12/27/2025 09:46:12 PM (8 weeks ago)
Author:
skyminds
Message:

release FlashSpeed 3.2.0

Location:
flashspeed/trunk
Files:
4 edited

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
    142= 2.1.0 - 2025-09-06 =
    243*   Update - Zen Settings, FS
  • flashspeed/trunk/flashspeed.php

    r3410166 r3428405  
    55 * Plugin URI: https://utopique.net/products/flashspeed/
    66 * 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.0
     7 * Version: 3.2.0
    88 * Author: Utopique
    99 * Author URI: https://utopique.net/
     
    2727
    2828// Plugin version
    29 define( 'FLASHSPEED_VERSION', '3.1.0' );
     29define( 'FLASHSPEED_VERSION', '3.2.0' );
    3030// Plugin root path
    31 define( "FLASHSPEED_ROOT", trailingslashit( plugin_dir_path( __FILE__ ) ) );
     31define( 'FLASHSPEED_ROOT', trailingslashit( plugin_dir_path( __FILE__ ) ) );
     32// Plugin option name
     33define( 'FLASHSPEED_OPTION', 'flashspeed_settings' );
    3234/**
    3335 * Shared accessor for plugin settings (flashspeed_settings)
     
    3840        static $cached_options = null;
    3941        if ( $cached_options === null ) {
    40             $cached_options = \get_option( 'flashspeed_settings', [] );
     42            $cached_options = \get_option( FLASHSPEED_OPTION, [] );
    4143            if ( !\is_array( $cached_options ) ) {
    4244                $cached_options = [];
     
    7476            global $flashspeed_fs;
    7577            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';
    7779                $flashspeed_fs = fs_dynamic_init( array(
    7880                    'id'             => '5233',
     
    99101        do_action( 'flashspeed_fs_loaded' );
    100102    }
    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' );
    102111    /**
    103112     * Load plugin config
    104113     */
    105     include_once plugin_dir_path( __FILE__ ) . 'includes/config.php';
     114    include_once FLASHSPEED_ROOT . 'includes/config.php';
    106115    /**
    107116     * Load functions (schema-driven settings UI)
    108117     */
    109     include_once plugin_dir_path( __FILE__ ) . 'includes/functions.php';
     118    include_once FLASHSPEED_ROOT . 'includes/functions.php';
    110119}
    111120//end FS
  • flashspeed/trunk/includes/functions.php

    r3410166 r3428405  
    2424
    2525// Settings option and group
    26 \define('FLASHSPEED_OPTION', 'flashspeed_settings');
    27 \define('FLASHSPEED_SETTINGS_GROUP', 'flashspeed_settings_group');
    28 \define('FLASHSPEED_MENU_SLUG', 'flashspeed');
     26if ( ! \defined( 'FLASHSPEED_OPTION' ) ) {
     27    \define( 'FLASHSPEED_OPTION', 'flashspeed_settings' );
     28}
     29if ( ! \defined( 'FLASHSPEED_SETTINGS_GROUP' ) ) {
     30    \define( 'FLASHSPEED_SETTINGS_GROUP', 'flashspeed_settings_group' );
     31}
     32if ( ! \defined( 'FLASHSPEED_MENU_SLUG' ) ) {
     33    \define( 'FLASHSPEED_MENU_SLUG', 'flashspeed' );
     34}
    2935
    3036/**
  • flashspeed/trunk/readme.txt

    r3410166 r3428405  
    22Contributors: skyminds
    33Donate 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 analytics
     4Tags: performance, core web vitals, security headers, speed, bloat
    55Requires at least: 6.0
    66Tested up to: 6.9
    77Requires PHP: 7.4
    8 Stable tag: 3.1.0
     8Stable tag: 3.2.0
    99WC requires at least: 3.3
    10 WC tested up to: 10.4
     10WC tested up to: 10.5
    1111License: GPLv3 or later
    1212License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    201201== Changelog ==
    202202
    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
    249209
    250210Older versions changes can be found in [the changelog](https://utopique.net/products/flash-speed-pro/#changelog "FlashSpeed Optimizer changelog")
     
    252212== Upgrade Notice ==
    253213
    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 =
     215Major 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.