Plugin Directory

Changeset 3426010


Ignore:
Timestamp:
12/23/2025 09:17:17 AM (3 months ago)
Author:
nintechnet
Message:

Adding v1.8.2

Location:
code-profiler/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • code-profiler/trunk/index.php

    r3375722 r3426010  
    66Author: Jerome Bruandet ~ NinTechNet Ltd.
    77Author URI: https://nintechnet.com/
    8 Version: 1.8.1
     8Version: 1.8.2
    99Network: true
    1010License: GPLv3 or later
     
    1313*/
    1414
    15 define('CODE_PROFILER_VERSION', '1.8.1');
     15define('CODE_PROFILER_VERSION', '1.8.2');
    1616/**
    1717 +=====================================================================+
  • code-profiler/trunk/lib/class-troubleshooter.php

    r3270814 r3426010  
    9494                $tmp .= ' (writable)';
    9595            } else {
    96                 $tmp .= ' (not writable!)';
     96                $tmp .= ' (not writable!)' .' ⚠️';
    9797            }
    9898        }
     
    149149        $this->buffer[ $key ]['WordPress']['WPMU_PLUGIN_DIR']['writable'] =
    150150            is_writable( WPMU_PLUGIN_DIR );
    151     }
     151
     152        /**
     153         * SAVEQUERIES: make sure it is not set to false.
     154         */
     155        if ( defined('SAVEQUERIES') ) {
     156            if ( SAVEQUERIES === false ) {
     157                $this->buffer[ $key ]['WordPress']['SAVEQUERIES'] = 'FALSE' .' ⚠️';
     158            } else {
     159                $this->buffer[ $key ]['WordPress']['SAVEQUERIES'] = SAVEQUERIES;
     160            }
     161        } else {
     162            $this->buffer[ $key ]['WordPress']['SAVEQUERIES'] = 'N/A';
     163        }
     164
     165        /**
     166         * xdebug.
     167         */
     168        if ( extension_loaded('xdebug') ) {
     169            $this->buffer[ $key ]['Xdebug'] = esc_html__('Extension is loaded', 'code-profiler') .' ⚠️';
     170        } else {
     171            $this->buffer[ $key ]['Xdebug'] = '0';
     172        }
     173    }
     174
    152175
    153176    /**
  • code-profiler/trunk/lib/helper.php

    r3375722 r3426010  
    4040define('CODE_PROFILER_UPDATE_NOTICE', '<div class="updated notice is-dismissible"><p>%s</p></div>');
    4141define('CODE_PROFILER_ERROR_NOTICE', '<div class="error notice is-dismissible"><p>%s</p></div>');
     42define('CODE_PROFILER_WARNING_NOTICE', '<div class="notice notice-warning"><p>%s</p></div>');
    4243if (! defined('CODE_PROFILER_MUPLUGIN') ) {
    4344    // MU plugin's name can be defined in the wp-config.php
  • code-profiler/trunk/lib/i18n-extra.php

    r3371018 r3426010  
    3535__('%s%% of all functions (plugins and theme)', 'code-profiler');
    3636__('Filter: %s', 'code-profiler');
    37 __('Slug', 'code-profiler');
    38 __('Execution time', 'code-profiler');
    39 __('Name', 'code-profiler');
    40 __('Type', 'code-profiler');
    4137__('Caller script', 'code-profiler');
    4238__('Backtrace', 'code-profiler');
     
    145141__('Remote Connections', 'code-profiler');
    146142__('File I/O List', 'code-profiler');
     143__('Warning: the SAVEQUERIES constant is set to false on your site. Code Profiler will not be able to profile your database queries.', 'code-profiler');
    147144__('connection', 'code-profiler');
    148145__('connections', 'code-profiler');
  • code-profiler/trunk/lib/menu_profiler.php

    r3371018 r3426010  
    3838    printf( CODE_PROFILER_ERROR_NOTICE, sprintf(
    3939        esc_html__('The following folder is not writable: %s. Please change its permissions or ownership so that Code Profiler can write to it.', 'code-profiler'), CODE_PROFILER_UPLOAD_DIR )
     40    );
     41}
     42
     43/**
     44 * Check and warn if the Xdebug extension is loaded.
     45 */
     46if ( extension_loaded('xdebug') ) {
     47    printf( CODE_PROFILER_WARNING_NOTICE,
     48        esc_html__('Warning: the PHP Xdebug extension is loaded. Consider disabling it as it can drastically impact the performance and results of Code Profiler.', 'code-profiler')
    4049    );
    4150}
  • code-profiler/trunk/readme.txt

    r3407797 r3426010  
    33Tags: profiler, debug, optimize, performance, benchmark
    44Requires at least: 5.0
    5 Tested up to: 6.9
    6 Stable tag: 1.8.1
     5Tested up to: 6.8
     6Stable tag: 1.8.2
    77License: GPLv3 or later
    88Requires PHP: 7.1
     
    9494== Changelog ==
    9595
     96= 1.8.2 (23 December 2025) =
     97
     98* A warning message will be displayed if the Xdebug extension is loaded as it can impact the profiler's results.
     99* [Pro version] : Code Profiler will warn if SAVEQUERIES has been disabled by the user.
     100
    96101= 1.8.1 (09 Octobre 2025) =
    97102
Note: See TracChangeset for help on using the changeset viewer.