Skip to content

Commit 89b3cca

Browse files
authored
Updated Release
1 parent 7b8d189 commit 89b3cca

File tree

5 files changed

+63
-39
lines changed

5 files changed

+63
-39
lines changed

.github/ISSUE_TEMPLATE/compatibility-test-failure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: PHP {{ env.PHP_VERSION }} Compatibility Test Failure
33
labels: bug, compatibility, automated
4-
assignees:
4+
assignees: []
55
---
66

77
## PHP Compatibility Test Failure

.github/ISSUE_TEMPLATE/plugin-check-failure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: WordPress Plugin Check Failure
33
labels: bug, plugin-check, automated
4-
assignees:
4+
assignees: []
55
---
66

77
## WordPress Plugin Check Failure

CHANGELOG.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
55

66
## [Unreleased]
77
### Added
8-
- Added standardized readme.txt file for WordPress.org repository
9-
- Implemented automated "Tested up to" WordPress version checker using skaut/wordpress-version-checker GitHub Action
10-
- Added full plugin header information including plugin URI and License URI
11-
- Created .wordpress-version-checker.json configuration for WordPress compatibility checking
12-
- Enabled automatic PR creation for WordPress compatibility updates with "automated" and "documentation" labels
13-
- Added PHPUnit test framework with GitHub Actions workflow for automated testing
14-
- Configured cross-version PHP testing (7.4-8.2) with multisite support
8+
- Enhanced GitHub Actions workflows for plugin testing
9+
10+
## [1.5.5] - 2025-05-21
11+
### Added
12+
- WordPress 6.8 compatibility
13+
- WordPress Plugin Check workflow for code quality verification
14+
- Automated GitHub issue creation for test failures
15+
16+
### Fixed
17+
- Changed text domain from 'simple-wp-optimizer-enginescript' to 'Simple-WP-Optimizer' to comply with WordPress.org standards
18+
- Updated all internationalization function calls with the correct text domain
19+
- Added missing text domain parameter in translation functions
20+
- Fixed issue template formatting for automated GitHub issue creation
21+
22+
### Improved
23+
- Made the plugin fully compatible with the WordPress Plugin Check tool
24+
- Enhanced plugin repo compatibility
25+
- Improved documentation and code comments
1526

1627
## [1.5.4] - 2025-05-04
1728
### Changed

readme.txt

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
Contributors: enginescript
33
Tags: optimization, performance, cleanup
44
Requires at least: 5.0
5-
Tested up to: 6.4
6-
Stable tag: 1.5.4
5+
Tested up to: 6.8
6+
Stable tag: 1.5.5
77
Requires PHP: 7.4
88
License: GPLv2 or later
99
License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -42,6 +42,16 @@ No, the plugin has a simple interface where you can toggle features on and off.
4242

4343
== Changelog ==
4444

45+
= 1.5.5 =
46+
* Added compatibility with WordPress 6.8
47+
* Fixed text domain to comply with WordPress.org standards (changed from 'simple-wp-optimizer-enginescript' to 'Simple-WP-Optimizer')
48+
* Updated all internationalization function calls with proper text domain
49+
* Fixed missing text domain parameter in translation functions
50+
* Resolved issues with WordPress plugin check requirements
51+
* Fixed issue template formatting for automated GitHub issue creation
52+
* Made the plugin fully compatible with the WordPress Plugin Check tool
53+
* Improved documentation and code comments
54+
4555
= 1.5.4 =
4656
* Security enhancements and code optimization
4757

@@ -55,5 +65,8 @@ No, the plugin has a simple interface where you can toggle features on and off.
5565

5666
== Upgrade Notice ==
5767

68+
= 1.5.5 =
69+
This update adds compatibility with WordPress 6.8 and fixes text domain issues for better internationalization. The plugin now fully complies with WordPress.org plugin directory standards and passes all WordPress Plugin Check tests.
70+
5871
= 1.5.4 =
5972
This update includes security enhancements and code optimization.

simple-wp-optimizer.php

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
Plugin Name: EngineScript: Simple WP Optimization
44
Plugin URI: https://github.com/EngineScript/Simple-WP-Optimizer
55
Description: Optimizes WordPress by removing unnecessary features and scripts to improve performance
6-
Version: 1.5.4
6+
Version: 1.5.5
77
Author: EngineScript
88
License: GPL v2 or later
99
License URI: https://www.gnu.org/licenses/gpl-2.0.html
10-
Text Domain: simple-wp-optimizer-enginescript
10+
Text Domain: Simple-WP-Optimizer
1111
Requires at least: 5.0
1212
Requires PHP: 7.4
13-
Tested up to: 6.4
13+
Tested up to: 6.8
1414
Security: Follows OWASP security guidelines and WordPress best practices
1515
*/
1616

@@ -51,7 +51,7 @@
5151

5252
// Define plugin version
5353
if (!defined('ES_WP_OPTIMIZER_VERSION')) {
54-
define('ES_WP_OPTIMIZER_VERSION', '1.5.4');
54+
define('ES_WP_OPTIMIZER_VERSION', '1.5.5');
5555
}
5656

5757
/**
@@ -115,7 +115,7 @@ function es_optimizer_settings_page() {
115115
// Security: Check user capabilities before displaying the page
116116
// This prevents unauthorized access to plugin settings
117117
if (!current_user_can('manage_options')) {
118-
wp_die(esc_html__('You do not have sufficient permissions to access this page.', 'simple-wp-optimizer-enginescript'));
118+
wp_die(esc_html__('You do not have sufficient permissions to access this page.', 'Simple-WP-Optimizer'));
119119
}
120120

121121
$options = get_option('es_optimizer_options');
@@ -147,9 +147,9 @@ function es_optimizer_settings_page() {
147147

148148
<hr>
149149
<p>
150-
<?php esc_html_e('This plugin is part of the EngineScript project.', 'simple-wp-optimizer-enginescript'); ?>
150+
<?php esc_html_e('This plugin is part of the EngineScript project.', 'Simple-WP-Optimizer'); ?>
151151
<a href="https://github.com/EngineScript/EngineScript" target="_blank" rel="noopener noreferrer">
152-
<?php esc_html_e('Visit the EngineScript GitHub page', 'simple-wp-optimizer-enginescript'); ?>
152+
<?php esc_html_e('Visit the EngineScript GitHub page', 'Simple-WP-Optimizer'); ?>
153153
</a>
154154
</p>
155155
</div>
@@ -166,24 +166,24 @@ function es_optimizer_render_performance_options($options) {
166166
es_optimizer_render_checkbox_option(
167167
$options,
168168
'disable_emojis',
169-
esc_html__('Disable WordPress Emojis', 'simple-wp-optimizer-enginescript'),
170-
esc_html__('Remove emoji scripts and styles to improve page load time', 'simple-wp-optimizer-enginescript')
169+
esc_html__('Disable WordPress Emojis', 'Simple-WP-Optimizer'),
170+
esc_html__('Remove emoji scripts and styles to improve page load time', 'Simple-WP-Optimizer')
171171
);
172172

173173
// jQuery Migrate settings
174174
es_optimizer_render_checkbox_option(
175175
$options,
176176
'remove_jquery_migrate',
177-
esc_html__('Remove jQuery Migrate', 'simple-wp-optimizer-enginescript'),
178-
esc_html__('Remove jQuery Migrate script (may affect compatibility with very old plugins)', 'simple-wp-optimizer-enginescript')
177+
esc_html__('Remove jQuery Migrate', 'Simple-WP-Optimizer'),
178+
esc_html__('Remove jQuery Migrate script (may affect compatibility with very old plugins)', 'Simple-WP-Optimizer')
179179
);
180180

181181
// Classic Theme Styles settings
182182
es_optimizer_render_checkbox_option(
183183
$options,
184184
'disable_classic_theme_styles',
185-
esc_html__('Disable Classic Theme Styles', 'simple-wp-optimizer-enginescript'),
186-
esc_html__('Remove classic theme styles added in WordPress 6.1+', 'simple-wp-optimizer-enginescript')
185+
esc_html__('Disable Classic Theme Styles', 'Simple-WP-Optimizer'),
186+
esc_html__('Remove classic theme styles added in WordPress 6.1+', 'Simple-WP-Optimizer')
187187
);
188188
}
189189

@@ -197,32 +197,32 @@ function es_optimizer_render_header_options($options) {
197197
es_optimizer_render_checkbox_option(
198198
$options,
199199
'remove_wp_version',
200-
esc_html__('Remove WordPress Version', 'simple-wp-optimizer-enginescript'),
201-
esc_html__('Remove WordPress version from header (security benefit)', 'simple-wp-optimizer-enginescript')
200+
esc_html__('Remove WordPress Version', 'Simple-WP-Optimizer'),
201+
esc_html__('Remove WordPress version from header (security benefit)', 'Simple-WP-Optimizer')
202202
);
203203

204204
// WLW Manifest settings
205205
es_optimizer_render_checkbox_option(
206206
$options,
207207
'remove_wlw_manifest',
208-
esc_html__('Remove WLW Manifest', 'simple-wp-optimizer-enginescript'),
209-
esc_html__('Remove Windows Live Writer manifest link', 'simple-wp-optimizer-enginescript')
208+
esc_html__('Remove WLW Manifest', 'Simple-WP-Optimizer'),
209+
esc_html__('Remove Windows Live Writer manifest link', 'Simple-WP-Optimizer')
210210
);
211211

212212
// Shortlink settings
213213
es_optimizer_render_checkbox_option(
214214
$options,
215215
'remove_shortlink',
216-
esc_html__('Remove Shortlink', 'simple-wp-optimizer-enginescript'),
217-
esc_html__('Remove WordPress shortlink URLs from header', 'simple-wp-optimizer-enginescript')
216+
esc_html__('Remove Shortlink', 'Simple-WP-Optimizer'),
217+
esc_html__('Remove WordPress shortlink URLs from header', 'Simple-WP-Optimizer')
218218
);
219219

220220
// Recent Comments Style settings
221221
es_optimizer_render_checkbox_option(
222222
$options,
223223
'remove_recent_comments_style',
224-
esc_html__('Remove Recent Comments Style', 'simple-wp-optimizer-enginescript'),
225-
esc_html__('Remove recent comments widget inline CSS', 'simple-wp-optimizer-enginescript')
224+
esc_html__('Remove Recent Comments Style', 'Simple-WP-Optimizer'),
225+
esc_html__('Remove recent comments widget inline CSS', 'Simple-WP-Optimizer')
226226
);
227227
}
228228

@@ -236,24 +236,24 @@ function es_optimizer_render_additional_options($options) {
236236
es_optimizer_render_checkbox_option(
237237
$options,
238238
'enable_dns_prefetch',
239-
esc_html__('Enable DNS Prefetch', 'simple-wp-optimizer-enginescript'),
240-
esc_html__('Add DNS prefetch for common external domains', 'simple-wp-optimizer-enginescript')
239+
esc_html__('Enable DNS Prefetch', 'Simple-WP-Optimizer'),
240+
esc_html__('Add DNS prefetch for common external domains', 'Simple-WP-Optimizer')
241241
);
242242

243243
// DNS Prefetch Domains textarea
244244
es_optimizer_render_textarea_option(
245245
$options,
246246
'dns_prefetch_domains',
247-
esc_html__('DNS Prefetch Domains', 'simple-wp-optimizer-enginescript'),
248-
esc_html__('Enter one domain per line. Include the full URL (e.g., https://fonts.googleapis.com)', 'simple-wp-optimizer-enginescript')
247+
esc_html__('DNS Prefetch Domains', 'Simple-WP-Optimizer'),
248+
esc_html__('Enter one domain per line. Include the full URL (e.g., https://fonts.googleapis.com)', 'Simple-WP-Optimizer')
249249
);
250250

251251
// Jetpack Ads settings
252252
es_optimizer_render_checkbox_option(
253253
$options,
254254
'disable_jetpack_ads',
255-
esc_html__('Disable Jetpack Ads', 'simple-wp-optimizer-enginescript'),
256-
esc_html__('Remove Jetpack advertisements and promotions', 'simple-wp-optimizer-enginescript')
255+
esc_html__('Disable Jetpack Ads', 'Simple-WP-Optimizer'),
256+
esc_html__('Remove Jetpack advertisements and promotions', 'Simple-WP-Optimizer')
257257
);
258258
}
259259

@@ -448,7 +448,7 @@ function es_optimizer_add_settings_link($links) {
448448
// The admin_url function is used to properly generate a URL within the WordPress admin area
449449
// Setting text is wrapped in translation function but doesn't need escaping here
450450
// as WordPress core handles this when rendering plugin links
451-
$settings_link = '<a href="' . admin_url('options-general.php?page=es-optimizer-settings') . '">' . __('Settings') . '</a>';
451+
$settings_link = '<a href="' . admin_url('options-general.php?page=es-optimizer-settings') . '">' . __('Settings', 'Simple-WP-Optimizer') . '</a>';
452452
array_unshift($links, $settings_link);
453453
return $links;
454454
}

0 commit comments

Comments
 (0)