Plugin Directory

Changeset 3313963


Ignore:
Timestamp:
06/18/2025 02:59:41 PM (6 months ago)
Author:
quentinldd
Message:

Update to version 1.0.8 from GitHub

Location:
zenpress
Files:
54 added
54 deleted
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • zenpress/tags/1.0.8/readme.txt

    r3285781 r3313963  
    55Requires at least: 6.0
    66Tested up to: 6.8
    7 Stable tag: 1.0.6
     7Stable tag: 1.0.8
    88Requires PHP: 7.4
    99License: GPLv2 or later
     
    3838* Disable unnecessary Stripe scripts on WooCommerce pages
    3939* Disable WooCommerce widgets
    40 * Disable unwanted default block patterns in gutenberg editor
     40* Remove unwanted default block patterns in gutenberg editor
    4141* Remove REST API link from the site head
    4242* Remove WooCommerce patterns
     
    5555= User interface =
    5656
    57 * Cleans up the WordPress Admin Bar
    58 * Removes redudant items from the WordPress Dashboard
     57* Cleans up the WordPress admin Bar
     58* Cleans up the WordPress dashboard items
    5959
    6060 == Configuration options ==
     
    137137== Changelog ==
    138138
     139= 1.0.8 =
     140
     141- UI : Remove smash baloon ads meta box
     142- Global : Files naming and call for scalability
     143
     144= 1.0.7 =
     145
     146- ZenPress tested for WordPress 6.8.1
     147- UI : Remove site health meta box
     148- UI : Remove WooCommerce admin dashboard setup metabox
     149
    139150= 1.0.6 =
    140151
     
    150161
    151162- Fix ABSPATH on woocommerce patterns snippets.
    152 - Disable RSS feeds except main one.
    153 - Remove RSS feeds links in head except main one.
    154 - Remove Rest API link in head.
    155 - Remove WP Mail SMTP ads widget.
     163- Performance : Disable RSS feeds except main one.
     164- Performance : Remove RSS feeds links in head except main one.
     165- Performance : Remove Rest API link in head.
     166- Performance : Remove WP Mail SMTP ads widget.
    156167
    157168= 1.0.3 =
     
    169180= 1.0.1 =
    170181
    171 Fix script loading error on WC home admin page
     182- Fix script loading error on WC home admin page
     183
     184= 1.0.0.2 =
     185
     186- First release of ZenPress, yaaaaayyy!
     187
     188== Upgrade Notice ==
     189
     190= 1.0.0.1 =
     191
     192- Small fixes for WordPress Directory Submission
    172193
    173194= 1.0 =
    174195
    175 First release of ZenPress, yaaaaayyy!
    176 
    177 == Upgrade Notice ==
    178 
    179 = 1.0.* =
    180 
    181 Small fixes for WordPress Directory Submission
    182 
    183 = 1.0 =
    184 
    185 Let's boost your WordPress website!
     196- Let's boost your WordPress website!
    186197
    187198== Credits ==
  • zenpress/tags/1.0.8/zenpress.php

    r3285781 r3313963  
    1212 * Plugin Name: ZenPress - Unbloat, Performance & Security
    1313 * Description: The zeniest unbloat, performance and security lightweight plugin for WordPress and WooCommerce. Install, activate, and done!
    14  * Version: 1.0.6
     14 * Version: 1.0.8
    1515 * Plugin URI: https://wordpress.org/plugins/zenpress/
    1616 * Author: Quentin Le Duff
     
    4040}
    4141
     42function zenpress_include_functions($zenpress_folder) {
     43    $zenpress_path = plugin_dir_path(__FILE__) . rtrim($zenpress_folder, '/') . '/';
     44
     45    if (!is_dir($zenpress_path)) {
     46        return;
     47    }
     48
     49    $zenpress_files = glob($zenpress_path . '*.php');
     50
     51    if ($zenpress_files === false) {
     52        return;
     53    }
     54
     55    foreach ($zenpress_files as $file) {
     56        if (file_exists($file)) {
     57            $base_name = basename($file, '.php');
     58
     59            $constant_name = 'ZENPRESS_' . strtoupper(str_replace(['-', '_'], '_', $base_name));
     60
     61            if (!defined($constant_name) || constant($constant_name) !== false) {
     62                include_once $file;
     63            }
     64        }
     65    }
     66}
     67
    4268/*****
    4369 * PERFORMANCE (つ≧▽≦)つ
    4470 ****/
    45 if (!defined('ZENPRESS_DISABLE_ADJACENT_POSTS') || ZENPRESS_DISABLE_ADJACENT_POSTS !== false) {
    46     include plugin_dir_path(__FILE__) . 'inc/performance/disable__adjacent-posts.php';
    47 }
    48 
    49 if (!defined('ZENPRESS_DISABLE_DASHICONS') || ZENPRESS_DISABLE_DASHICONS !== false) {
    50     include plugin_dir_path(__FILE__) . 'inc/performance/disable__dashicons.php';
    51 }
    52 
    53 if (!defined('ZENPRESS_DISABLE_DNS_PREFETCH') || ZENPRESS_DISABLE_DNS_PREFETCH !== false) {
    54     include plugin_dir_path(__FILE__) . 'inc/performance/disable__dns-prefetch.php';
    55 }
    56 
    57 if (!defined('ZENPRESS_DISABLE_EMOJIS') || ZENPRESS_DISABLE_EMOJIS !== false) {
    58     include plugin_dir_path(__FILE__) . 'inc/performance/disable__emoji-scripts.php';
    59 }
    60 
    61 if (!defined('ZENPRESS_DISABLE_JQUERY_MIGRATE') || ZENPRESS_DISABLE_JQUERY_MIGRATE !== false) {
    62     include plugin_dir_path(__FILE__) . 'inc/performance/disable__jquery-migrate.php';
    63 }
    64 
    65 if (!defined('ZENPRESS_DISABLE_OEMBED') || ZENPRESS_DISABLE_OEMBED !== false) {
    66     include plugin_dir_path(__FILE__) . 'inc/performance/disable__oembed.php';
    67 }
    68 
    69 if (!defined('ZENPRESS_DISABLE_PDF_THUMBNAILS') || ZENPRESS_DISABLE_PDF_THUMBNAILS !== false) {
    70     include plugin_dir_path(__FILE__) . 'inc/performance/disable__pdf-thumbnails.php';
    71 }
    72 
    73 if (!defined('ZENPRESS_DISABLE_RSS') || ZENPRESS_DISABLE_RSS !== false) {
    74     include plugin_dir_path(__FILE__) . 'inc/performance/disable__rss.php';
    75 }
    76 
    77 if (!defined('ZENPRESS_DISABLE_SHORTLINK') || ZENPRESS_DISABLE_SHORTLINK !== false) {
    78     include plugin_dir_path(__FILE__) . 'inc/performance/disable__shortlink.php';
    79 }
    80 
    81 if (!defined('ZENPRESS_DISABLE_WLW_MANIFEST') || ZENPRESS_DISABLE_WLW_MANIFEST !== false) {
    82     include plugin_dir_path(__FILE__) . 'inc/performance/disable__wlw-manifest.php';
    83 }
    84 
    85 if (!defined('ZENPRESS_DISABLE_WC_CART_FRAGMENTS') || ZENPRESS_DISABLE_WC_CART_FRAGMENTS !== false) {
    86     include plugin_dir_path(__FILE__) . 'inc/performance/disable__woocommerce-cart-fragments.php';
    87 }
    88 
    89 if (!defined('ZENPRESS_DISABLE_WC_SCRIPTS_STYLES') || ZENPRESS_DISABLE_WC_SCRIPTS_STYLES !== false) {
    90     include plugin_dir_path(__FILE__) . 'inc/performance/disable__woocommerce-scripts-styles.php';
    91 }
    92 
    93 if (!defined('ZENPRESS_DISABLE_WC_STRIPE_SCRIPTS') || ZENPRESS_DISABLE_WC_STRIPE_SCRIPTS !== false) {
    94     include plugin_dir_path(__FILE__) . 'inc/performance/disable__woocommerce-stripe-scripts.php';
    95 }
    96 
    97 if (!defined('ZENPRESS_DISABLE_WC_WIDGETS') || ZENPRESS_DISABLE_WC_WIDGETS !== false) {
    98     include plugin_dir_path(__FILE__) . 'inc/performance/disable__woocommerce-widgets.php';
    99 }
    100 
    101 if (!defined('ZENPRESS_REMOVE_GUTENBERG_BLOCK_PATTERNS') || ZENPRESS_REMOVE_GUTENBERG_BLOCK_PATTERNS !== false) {
    102     include plugin_dir_path(__FILE__) . 'inc/performance/remove__gutenberg-unwanted-block-patterns.php';
    103 }
    104 
    105 if (!defined('ZENPRESS_REMOVE_REST_API_LINK') || ZENPRESS_REMOVE_REST_API_LINK !== false) {
    106     include plugin_dir_path(__FILE__) . 'inc/performance/remove__rest-api-link.php';
    107 }
    108 
    109 if (!defined('ZENPRESS_REMOVE_WC_PATTERNS') || ZENPRESS_REMOVE_WC_PATTERNS !== false) {
    110     include plugin_dir_path(__FILE__) . 'inc/performance/remove__woocommerce-patterns.php';
    111 }
    112 
    113 if (!defined('ZENPRESS_SEPARATE_GUTENBERG_CORE_BLOCK_STYLES') || ZENPRESS_SEPARATE_GUTENBERG_CORE_BLOCK_STYLES !== false) {
    114     include plugin_dir_path(__FILE__) . 'inc/performance/separate__gutenberg-core-block-styles.php';
    115 }
     71zenpress_include_functions('inc/performance/');
    11672
    11773/*****
    11874 * SECURITY ┐(︶▽︶)┌
    11975 ****/
    120 if (!defined('ZENPRESS_BLOCK_USER_ENUMERATION_PROTECTION') || ZENPRESS_BLOCK_USER_ENUMERATION_PROTECTION !== false) {
    121     include plugin_dir_path(__FILE__) . 'inc/security/block__user-enumeration.php';
    122 }
    123 
    124 if (!defined('ZENPRESS_DISABLE_AUTHOR_ARCHIVES') || ZENPRESS_DISABLE_AUTHOR_ARCHIVES !== false) {
    125     include plugin_dir_path(__FILE__) . 'inc/security/disable__author-archives.php';
    126 }
    127 
    128 if (!defined('ZENPRESS_DISABLE_PINGBACK_TRACKBACK') || ZENPRESS_DISABLE_PINGBACK_TRACKBACK !== false) {
    129     include plugin_dir_path(__FILE__) . 'inc/security/disable__pingback-trackback.php';
    130 }
    131 
    132 if (!defined('ZENPRESS_DISABLE_XMLRPC_RSDLINK') || ZENPRESS_DISABLE_XMLRPC_RSDLINK !== false) {
    133     include plugin_dir_path(__FILE__) . 'inc/security/disable__xmlrpc-rsdlink.php';
    134 }
    135 
    136 if (!defined('ZENPRESS_HIDE_WC_VERSION') || ZENPRESS_HIDE_WC_VERSION !== false) {
    137     include plugin_dir_path(__FILE__) . 'inc/security/hide__woocommerce-version.php';
    138 }
    139 
    140 if (!defined('ZENPRESS_HIDE_WP_VERSION') || ZENPRESS_HIDE_WP_VERSION !== false) {
    141     include plugin_dir_path(__FILE__) . 'inc/security/hide__wordpress-version.php';
    142 }
    143 
    144 if (!defined('ZENPRESS_LOGIN_PROTECTION') || ZENPRESS_LOGIN_PROTECTION !== false) {
    145     include plugin_dir_path(__FILE__) . 'inc/security/protect__wp-login.php';
    146 }
     76zenpress_include_functions('inc/security/');
    14777
    14878/*****
    14979 * USER INTERFACE ヾ(☆▽☆)
    15080 ****/
    151 if (!defined('ZENPRESS_ADMIN_BAR_CLEANUP') || ZENPRESS_ADMIN_BAR_CLEANUP !== false) {
    152     include plugin_dir_path(__FILE__) . 'inc/ui/clean__admin-bar.php';
    153 }
    154 
    155 if (!defined('ZENPRESS_DASHBOARD_CLEANUP') || ZENPRESS_DASHBOARD_CLEANUP !== false) {
    156     include plugin_dir_path(__FILE__) . 'inc/ui/clean__dashboard-items.php';
    157 }
     81zenpress_include_functions('inc/ui/');
    15882
    15983/*****
  • zenpress/trunk/readme.txt

    r3285781 r3313963  
    55Requires at least: 6.0
    66Tested up to: 6.8
    7 Stable tag: 1.0.6
     7Stable tag: 1.0.8
    88Requires PHP: 7.4
    99License: GPLv2 or later
     
    3838* Disable unnecessary Stripe scripts on WooCommerce pages
    3939* Disable WooCommerce widgets
    40 * Disable unwanted default block patterns in gutenberg editor
     40* Remove unwanted default block patterns in gutenberg editor
    4141* Remove REST API link from the site head
    4242* Remove WooCommerce patterns
     
    5555= User interface =
    5656
    57 * Cleans up the WordPress Admin Bar
    58 * Removes redudant items from the WordPress Dashboard
     57* Cleans up the WordPress admin Bar
     58* Cleans up the WordPress dashboard items
    5959
    6060 == Configuration options ==
     
    137137== Changelog ==
    138138
     139= 1.0.8 =
     140
     141- UI : Remove smash baloon ads meta box
     142- Global : Files naming and call for scalability
     143
     144= 1.0.7 =
     145
     146- ZenPress tested for WordPress 6.8.1
     147- UI : Remove site health meta box
     148- UI : Remove WooCommerce admin dashboard setup metabox
     149
    139150= 1.0.6 =
    140151
     
    150161
    151162- Fix ABSPATH on woocommerce patterns snippets.
    152 - Disable RSS feeds except main one.
    153 - Remove RSS feeds links in head except main one.
    154 - Remove Rest API link in head.
    155 - Remove WP Mail SMTP ads widget.
     163- Performance : Disable RSS feeds except main one.
     164- Performance : Remove RSS feeds links in head except main one.
     165- Performance : Remove Rest API link in head.
     166- Performance : Remove WP Mail SMTP ads widget.
    156167
    157168= 1.0.3 =
     
    169180= 1.0.1 =
    170181
    171 Fix script loading error on WC home admin page
     182- Fix script loading error on WC home admin page
     183
     184= 1.0.0.2 =
     185
     186- First release of ZenPress, yaaaaayyy!
     187
     188== Upgrade Notice ==
     189
     190= 1.0.0.1 =
     191
     192- Small fixes for WordPress Directory Submission
    172193
    173194= 1.0 =
    174195
    175 First release of ZenPress, yaaaaayyy!
    176 
    177 == Upgrade Notice ==
    178 
    179 = 1.0.* =
    180 
    181 Small fixes for WordPress Directory Submission
    182 
    183 = 1.0 =
    184 
    185 Let's boost your WordPress website!
     196- Let's boost your WordPress website!
    186197
    187198== Credits ==
  • zenpress/trunk/zenpress.php

    r3285781 r3313963  
    1212 * Plugin Name: ZenPress - Unbloat, Performance & Security
    1313 * Description: The zeniest unbloat, performance and security lightweight plugin for WordPress and WooCommerce. Install, activate, and done!
    14  * Version: 1.0.6
     14 * Version: 1.0.8
    1515 * Plugin URI: https://wordpress.org/plugins/zenpress/
    1616 * Author: Quentin Le Duff
     
    4040}
    4141
     42function zenpress_include_functions($zenpress_folder) {
     43    $zenpress_path = plugin_dir_path(__FILE__) . rtrim($zenpress_folder, '/') . '/';
     44
     45    if (!is_dir($zenpress_path)) {
     46        return;
     47    }
     48
     49    $zenpress_files = glob($zenpress_path . '*.php');
     50
     51    if ($zenpress_files === false) {
     52        return;
     53    }
     54
     55    foreach ($zenpress_files as $file) {
     56        if (file_exists($file)) {
     57            $base_name = basename($file, '.php');
     58
     59            $constant_name = 'ZENPRESS_' . strtoupper(str_replace(['-', '_'], '_', $base_name));
     60
     61            if (!defined($constant_name) || constant($constant_name) !== false) {
     62                include_once $file;
     63            }
     64        }
     65    }
     66}
     67
    4268/*****
    4369 * PERFORMANCE (つ≧▽≦)つ
    4470 ****/
    45 if (!defined('ZENPRESS_DISABLE_ADJACENT_POSTS') || ZENPRESS_DISABLE_ADJACENT_POSTS !== false) {
    46     include plugin_dir_path(__FILE__) . 'inc/performance/disable__adjacent-posts.php';
    47 }
    48 
    49 if (!defined('ZENPRESS_DISABLE_DASHICONS') || ZENPRESS_DISABLE_DASHICONS !== false) {
    50     include plugin_dir_path(__FILE__) . 'inc/performance/disable__dashicons.php';
    51 }
    52 
    53 if (!defined('ZENPRESS_DISABLE_DNS_PREFETCH') || ZENPRESS_DISABLE_DNS_PREFETCH !== false) {
    54     include plugin_dir_path(__FILE__) . 'inc/performance/disable__dns-prefetch.php';
    55 }
    56 
    57 if (!defined('ZENPRESS_DISABLE_EMOJIS') || ZENPRESS_DISABLE_EMOJIS !== false) {
    58     include plugin_dir_path(__FILE__) . 'inc/performance/disable__emoji-scripts.php';
    59 }
    60 
    61 if (!defined('ZENPRESS_DISABLE_JQUERY_MIGRATE') || ZENPRESS_DISABLE_JQUERY_MIGRATE !== false) {
    62     include plugin_dir_path(__FILE__) . 'inc/performance/disable__jquery-migrate.php';
    63 }
    64 
    65 if (!defined('ZENPRESS_DISABLE_OEMBED') || ZENPRESS_DISABLE_OEMBED !== false) {
    66     include plugin_dir_path(__FILE__) . 'inc/performance/disable__oembed.php';
    67 }
    68 
    69 if (!defined('ZENPRESS_DISABLE_PDF_THUMBNAILS') || ZENPRESS_DISABLE_PDF_THUMBNAILS !== false) {
    70     include plugin_dir_path(__FILE__) . 'inc/performance/disable__pdf-thumbnails.php';
    71 }
    72 
    73 if (!defined('ZENPRESS_DISABLE_RSS') || ZENPRESS_DISABLE_RSS !== false) {
    74     include plugin_dir_path(__FILE__) . 'inc/performance/disable__rss.php';
    75 }
    76 
    77 if (!defined('ZENPRESS_DISABLE_SHORTLINK') || ZENPRESS_DISABLE_SHORTLINK !== false) {
    78     include plugin_dir_path(__FILE__) . 'inc/performance/disable__shortlink.php';
    79 }
    80 
    81 if (!defined('ZENPRESS_DISABLE_WLW_MANIFEST') || ZENPRESS_DISABLE_WLW_MANIFEST !== false) {
    82     include plugin_dir_path(__FILE__) . 'inc/performance/disable__wlw-manifest.php';
    83 }
    84 
    85 if (!defined('ZENPRESS_DISABLE_WC_CART_FRAGMENTS') || ZENPRESS_DISABLE_WC_CART_FRAGMENTS !== false) {
    86     include plugin_dir_path(__FILE__) . 'inc/performance/disable__woocommerce-cart-fragments.php';
    87 }
    88 
    89 if (!defined('ZENPRESS_DISABLE_WC_SCRIPTS_STYLES') || ZENPRESS_DISABLE_WC_SCRIPTS_STYLES !== false) {
    90     include plugin_dir_path(__FILE__) . 'inc/performance/disable__woocommerce-scripts-styles.php';
    91 }
    92 
    93 if (!defined('ZENPRESS_DISABLE_WC_STRIPE_SCRIPTS') || ZENPRESS_DISABLE_WC_STRIPE_SCRIPTS !== false) {
    94     include plugin_dir_path(__FILE__) . 'inc/performance/disable__woocommerce-stripe-scripts.php';
    95 }
    96 
    97 if (!defined('ZENPRESS_DISABLE_WC_WIDGETS') || ZENPRESS_DISABLE_WC_WIDGETS !== false) {
    98     include plugin_dir_path(__FILE__) . 'inc/performance/disable__woocommerce-widgets.php';
    99 }
    100 
    101 if (!defined('ZENPRESS_REMOVE_GUTENBERG_BLOCK_PATTERNS') || ZENPRESS_REMOVE_GUTENBERG_BLOCK_PATTERNS !== false) {
    102     include plugin_dir_path(__FILE__) . 'inc/performance/remove__gutenberg-unwanted-block-patterns.php';
    103 }
    104 
    105 if (!defined('ZENPRESS_REMOVE_REST_API_LINK') || ZENPRESS_REMOVE_REST_API_LINK !== false) {
    106     include plugin_dir_path(__FILE__) . 'inc/performance/remove__rest-api-link.php';
    107 }
    108 
    109 if (!defined('ZENPRESS_REMOVE_WC_PATTERNS') || ZENPRESS_REMOVE_WC_PATTERNS !== false) {
    110     include plugin_dir_path(__FILE__) . 'inc/performance/remove__woocommerce-patterns.php';
    111 }
    112 
    113 if (!defined('ZENPRESS_SEPARATE_GUTENBERG_CORE_BLOCK_STYLES') || ZENPRESS_SEPARATE_GUTENBERG_CORE_BLOCK_STYLES !== false) {
    114     include plugin_dir_path(__FILE__) . 'inc/performance/separate__gutenberg-core-block-styles.php';
    115 }
     71zenpress_include_functions('inc/performance/');
    11672
    11773/*****
    11874 * SECURITY ┐(︶▽︶)┌
    11975 ****/
    120 if (!defined('ZENPRESS_BLOCK_USER_ENUMERATION_PROTECTION') || ZENPRESS_BLOCK_USER_ENUMERATION_PROTECTION !== false) {
    121     include plugin_dir_path(__FILE__) . 'inc/security/block__user-enumeration.php';
    122 }
    123 
    124 if (!defined('ZENPRESS_DISABLE_AUTHOR_ARCHIVES') || ZENPRESS_DISABLE_AUTHOR_ARCHIVES !== false) {
    125     include plugin_dir_path(__FILE__) . 'inc/security/disable__author-archives.php';
    126 }
    127 
    128 if (!defined('ZENPRESS_DISABLE_PINGBACK_TRACKBACK') || ZENPRESS_DISABLE_PINGBACK_TRACKBACK !== false) {
    129     include plugin_dir_path(__FILE__) . 'inc/security/disable__pingback-trackback.php';
    130 }
    131 
    132 if (!defined('ZENPRESS_DISABLE_XMLRPC_RSDLINK') || ZENPRESS_DISABLE_XMLRPC_RSDLINK !== false) {
    133     include plugin_dir_path(__FILE__) . 'inc/security/disable__xmlrpc-rsdlink.php';
    134 }
    135 
    136 if (!defined('ZENPRESS_HIDE_WC_VERSION') || ZENPRESS_HIDE_WC_VERSION !== false) {
    137     include plugin_dir_path(__FILE__) . 'inc/security/hide__woocommerce-version.php';
    138 }
    139 
    140 if (!defined('ZENPRESS_HIDE_WP_VERSION') || ZENPRESS_HIDE_WP_VERSION !== false) {
    141     include plugin_dir_path(__FILE__) . 'inc/security/hide__wordpress-version.php';
    142 }
    143 
    144 if (!defined('ZENPRESS_LOGIN_PROTECTION') || ZENPRESS_LOGIN_PROTECTION !== false) {
    145     include plugin_dir_path(__FILE__) . 'inc/security/protect__wp-login.php';
    146 }
     76zenpress_include_functions('inc/security/');
    14777
    14878/*****
    14979 * USER INTERFACE ヾ(☆▽☆)
    15080 ****/
    151 if (!defined('ZENPRESS_ADMIN_BAR_CLEANUP') || ZENPRESS_ADMIN_BAR_CLEANUP !== false) {
    152     include plugin_dir_path(__FILE__) . 'inc/ui/clean__admin-bar.php';
    153 }
    154 
    155 if (!defined('ZENPRESS_DASHBOARD_CLEANUP') || ZENPRESS_DASHBOARD_CLEANUP !== false) {
    156     include plugin_dir_path(__FILE__) . 'inc/ui/clean__dashboard-items.php';
    157 }
     81zenpress_include_functions('inc/ui/');
    15882
    15983/*****
Note: See TracChangeset for help on using the changeset viewer.