Skip to content

Commit 5f3b469

Browse files
authored
Update
1 parent 62a7e16 commit 5f3b469

File tree

4 files changed

+62
-8
lines changed

4 files changed

+62
-8
lines changed

CHANGELOG.md

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

66
## [Unreleased]
77

8+
## [1.5.8] - 2025-06-15
9+
### Added
10+
- Enhanced code organization with single responsibility principle implementation
11+
- Dedicated DNS domain validation functions for improved maintainability
12+
- Proper translator comments for all internationalization strings with placeholders
13+
- Additional sanitization layer for nonce verification using sanitize_text_field()
14+
15+
### Fixed
16+
- **WordPress Plugin Check Compliance**: Resolved all WordPress.org compatibility issues
17+
- **Variable Naming**: Implemented camelCase convention for all variables (nonceValue, domainsInput, etc.)
18+
- **Function Complexity**: Reduced cyclomatic complexity by extracting validation logic into separate functions
19+
- **Code Standards**: Fixed $_POST data handling with proper WordPress sanitization practices
20+
- **i18n Compliance**: Added missing translator comments for sprintf() placeholders
21+
- **Documentation**: Updated upgrade notice character limits to meet WordPress.org requirements
22+
23+
### Enhanced
24+
- Improved code architecture with es_optimizer_validate_single_domain() function
25+
- Better error handling with es_optimizer_show_domain_rejection_notice() function
26+
- Enhanced maintainability through function separation and reduced complexity
27+
- Cleaner code structure following WordPress coding standards
28+
- Optimized function organization for better testing and debugging
29+
30+
### Security
31+
- **Enhanced Nonce Handling**: Additional sanitization layer for CSRF protection
32+
- **Improved Input Validation**: Strengthened domain validation with dedicated functions
33+
- **WordPress Standards**: Full compliance with WordPress security best practices
34+
835
## [1.5.7] - 2025-06-15
936
### Added
1037
- WordPress nonce protection for CSRF security in settings forms

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![PHP Compatible](https://img.shields.io/badge/PHP-7.4%2B-purple.svg?logo=php)](https://www.php.net/)
77

88
## Current Version
9-
[![Version](https://img.shields.io/badge/Version-1.5.7-orange.svg?logo=github)](https://github.com/EngineScript/Simple-WP-Optimizer/releases/download/v1.5.7/simple-wp-optimizer-1.5.7.zip)
9+
[![Version](https://img.shields.io/badge/Version-1.5.8-orange.svg?logo=github)](https://github.com/EngineScript/Simple-WP-Optimizer/releases/download/v1.5.8/simple-wp-optimizer-1.5.8.zip)
1010

1111
## Description
1212

@@ -61,6 +61,16 @@ This plugin implements comprehensive security measures following WordPress and O
6161
- **Capability Checks:** Proper user permission verification for all admin functions
6262
- **Direct Access Prevention:** Prevents direct script execution outside WordPress
6363

64+
## WordPress.org Compliance
65+
66+
This plugin is fully compliant with WordPress.org standards:
67+
68+
-**Plugin Check Passed:** Passes all WordPress Plugin Check automated tests
69+
-**Security Standards:** Follows WordPress and OWASP security guidelines
70+
-**Coding Standards:** Adheres to WordPress coding conventions and best practices
71+
-**Internationalization:** Ready for translation with proper i18n implementation
72+
-**Performance:** Optimized code structure with reduced complexity
73+
6474
## Frequently Asked Questions
6575

6676
### Will this plugin work with my theme?

readme.txt

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: enginescript
33
Tags: optimization, performance, cleanup
44
Requires at least: 6.0
55
Tested up to: 6.8
6-
Stable tag: 1.5.7
6+
Stable tag: 1.5.8
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,20 @@ No, the plugin has a simple interface where you can toggle features on and off.
4242

4343
== Changelog ==
4444

45+
= 1.5.8 =
46+
* **CODE QUALITY**: Fixed all WordPress Plugin Check compliance issues for WordPress.org standards
47+
* **CODE QUALITY**: Implemented camelCase variable naming convention throughout codebase
48+
* **CODE QUALITY**: Reduced function complexity by extracting DNS validation logic into separate functions
49+
* **CODE QUALITY**: Added proper translator comments for all internationalization strings with placeholders
50+
* **CODE QUALITY**: Enhanced $_POST data handling with proper sanitization using sanitize_text_field()
51+
* **CODE QUALITY**: Improved code organization with single responsibility principle
52+
* **CODE QUALITY**: Fixed upgrade notice character limits to meet WordPress.org requirements
53+
* **SECURITY**: Enhanced nonce verification with additional sanitization layer
54+
* **SECURITY**: Improved domain validation architecture with dedicated validation functions
55+
* **MAINTENANCE**: Optimized function structure for better maintainability and testing
56+
* **MAINTENANCE**: Updated code documentation for improved developer experience
57+
* **COMPLIANCE**: Full WordPress Plugin Check compatibility - passes all automated tests
58+
4559
= 1.5.7 =
4660
* **SECURITY ENHANCEMENT**: Added WordPress nonce protection for CSRF security in all form submissions
4761
* **SECURITY ENHANCEMENT**: Enhanced DNS prefetch security with HTTPS-only domain enforcement
@@ -117,11 +131,14 @@ Major security and code quality improvements with PHPStan analysis and WordPress
117131

118132
== Upgrade Notice ==
119133

120-
= 1.5.6 =
121-
Major security enhancement update with comprehensive OWASP-compliant security implementation and enhanced GitHub Actions workflows. This update includes detailed security documentation, enhanced input validation, improved output escaping, secure coding patterns, and comprehensive static analysis fixes. Recommended for all users to ensure optimal security posture and code quality.
134+
= 1.5.8 =
135+
CODE QUALITY UPDATE: Fixed all WordPress Plugin Check issues for full WordPress.org compliance. Enhanced code organization.
122136

123-
= 1.5.5 =
124-
This update includes significant code quality improvements with comprehensive static analysis fixes and enhanced security scanning. The plugin now passes PHPStan level 5 analysis with zero errors and includes improved WordPress API compliance. Enhanced development workflow with proper WordPress stubs and more reliable testing.
137+
= 1.5.7 =
138+
SECURITY UPDATE: Important security enhancements including CSRF protection and DNS prefetch security. Update recommended.
139+
140+
= 1.5.6 =
141+
Major security enhancement update with OWASP-compliant security implementation. Recommended for all users.
125142

126143
= 1.5.5 =
127144
WordPress 6.8 compatibility and internationalization fixes. Passes all Plugin Check tests.

simple-wp-optimizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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.7
6+
Version: 1.5.8
77
Author: EngineScript
88
License: GPL v2 or later
99
License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -51,7 +51,7 @@
5151

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

5757
/**

0 commit comments

Comments
 (0)