Skip to content

Commit 54708c4

Browse files
authored
Updated Files
1 parent b0786b4 commit 54708c4

File tree

2 files changed

+205
-0
lines changed

2 files changed

+205
-0
lines changed

CHANGELOG.md

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
# Changelog
2+
3+
All notable changes to the Simple WP Optimizer plugin will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [1.5.4] - 2025-05-04
9+
### Changed
10+
- Updated plugin name to "EngineScript: Simple WP Optimizationn"
11+
- Improved code documentation and security notes
12+
- Aligned version numbers in plugin header and constant definition
13+
14+
## [1.5.3] - 2025-03-15
15+
### Added
16+
- Enhanced security implementation with detailed documentation
17+
- Added PHPCS ignore comments with security explanations
18+
- Improved validation for DNS prefetch domains
19+
20+
### Fixed
21+
- Fixed potential security issues with escaped outputs
22+
- Fixed DNS prefetch implementation for better performance
23+
24+
## [1.5.2] - 2025-01-20
25+
### Added
26+
- Added Jetpack Blaze disabling feature
27+
28+
### Changed
29+
- Improved function documentation with security notes
30+
- Enhanced settings page with better organization
31+
32+
## [1.5.1] - 2024-11-05
33+
### Changed
34+
- Updated WordPress compatibility to 6.5
35+
- Improved code organization
36+
- Enhanced settings validation
37+
38+
## [1.5.0] - 2024-09-10
39+
### Added
40+
- Added option to disable Jetpack advertisements and promotions
41+
- Implemented settings link in plugins page
42+
43+
### Changed
44+
- Refactored settings page rendering for better security
45+
- Updated text domain for better translation support
46+
47+
## [1.4.1] - 2024-07-25
48+
### Added
49+
- Enhanced DNS prefetching with better security measures
50+
- Added proper input validation for domain entries
51+
52+
### Fixed
53+
- Fixed escaping in DNS prefetch output
54+
- Improved error handling for invalid domains
55+
56+
## [1.4.0] - 2024-05-30
57+
### Added
58+
- Added DNS prefetching for common external domains
59+
- Added textarea input for custom DNS prefetch domains
60+
- Implemented domain validation and sanitization
61+
62+
### Changed
63+
- Improved settings organization with grouped options
64+
- Enhanced option descriptions
65+
66+
## [1.3.0] - 2024-03-15
67+
### Added
68+
- Option to disable classic theme styles (added in WordPress 6.1+)
69+
- Improved header cleanup options
70+
71+
### Changed
72+
- Enhanced security for settings page
73+
- Better user capability checks
74+
75+
## [1.2.0] - 2023-12-10
76+
### Added
77+
- Option to remove recent comments widget inline CSS
78+
- Option to remove shortlinks from WordPress header
79+
80+
### Changed
81+
- Improved settings validation
82+
- Better code organization
83+
84+
## [1.1.0] - 2023-09-05
85+
### Added
86+
- Option to remove WLW manifest
87+
- Option to remove WordPress version from header
88+
- Comprehensive settings page with checkboxes
89+
90+
### Changed
91+
- Switched to WordPress Settings API
92+
- Better organization of options
93+
94+
## [1.0.0] - 2023-06-01
95+
### Added
96+
- Initial release
97+
- Option to disable WordPress emojis
98+
- Option to remove jQuery Migrate
99+
- Basic settings page
100+
- Default options

README.md

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
# Simple WP Optimizer
2+
3+
![GitHub License](https://img.shields.io/github/license/EngineScript/Simple-WP-Optimizer)
4+
![WordPress Plugin Version](https://img.shields.io/badge/version-1.5.4-blue)
5+
![WordPress Plugin Required PHP Version](https://img.shields.io/badge/php-%3E%3D7.4-green)
6+
![WordPress Plugin: Tested WP Version](https://img.shields.io/badge/wordpress-5.6--6.0-green)
7+
8+
A lightweight WordPress plugin designed to optimize your website by removing unnecessary scripts, styles, and header elements that can slow down your site.
9+
10+
## Features
11+
12+
- **Header Cleanup:** Remove WordPress version, WLW manifest links, and shortlinks
13+
- **Script Optimization:** Disable WordPress emojis and remove jQuery Migrate
14+
- **Style Optimization:** Remove inline styles from recent comments widget and disable classic theme styles
15+
- **DNS Prefetching:** Add DNS prefetch for common external domains to improve load times
16+
- **Jetpack Optimization:** Remove Jetpack advertisements and promotions
17+
18+
## Installation
19+
20+
### Manual Installation
21+
22+
1. Download the latest release from the [releases page](https://github.com/EngineScript/Simple-WP-Optimizer/releases)
23+
2. Upload the plugin files to the `/wp-content/plugins/simple-wp-optimizer` directory
24+
3. Activate the plugin through the 'Plugins' menu in WordPress
25+
4. Configure the plugin settings via the 'WP Optimizer' menu
26+
27+
### Using Composer
28+
29+
```bash
30+
composer require enginescript/simple-wp-optimizer
31+
```
32+
33+
## Usage
34+
35+
1. Navigate to the WP Optimizer menu in your WordPress admin dashboard (under Settings)
36+
2. Enable the optimization features you want to use
37+
3. Configure the DNS Prefetch domains if needed
38+
4. Save your changes
39+
40+
## Screenshots
41+
42+
1. **Settings Page:** Configure which optimizations to enable
43+
2. **Header Cleanup Options:** Remove unnecessary elements from WordPress headers
44+
3. **Performance Options:** Disable emojis and jQuery Migrate
45+
4. **DNS Prefetch Configuration:** Add domains for DNS prefetching
46+
47+
## Frequently Asked Questions
48+
49+
### Will this plugin work with my theme?
50+
51+
Simple WP Optimizer is designed to be compatible with most WordPress themes. The optimizations focus on removing unnecessary WordPress elements rather than modifying theme functionality.
52+
53+
### What does "Remove jQuery Migrate" do?
54+
55+
jQuery Migrate is a script that helps maintain backward compatibility with older jQuery code. Modern themes and plugins generally don't need it, so removing it can improve load time without affecting functionality in most cases.
56+
57+
### What does "Disable WordPress Emojis" do?
58+
59+
This option removes emoji-related scripts and styles that WordPress adds by default. Most websites don't need these resources, so removing them can reduce HTTP requests and improve page load time.
60+
61+
### Will removing the WordPress version improve security?
62+
63+
Yes, hiding the WordPress version can provide a minor security benefit by making it slightly more difficult for potential attackers to identify vulnerability targets based on your WordPress version.
64+
65+
## Development
66+
67+
### Requirements
68+
69+
- PHP 7.4 or higher
70+
- WordPress 5.6 or higher
71+
- Composer (for development and testing)
72+
73+
### Setting up the development environment
74+
75+
1. Clone this repository: `git clone https://github.com/EngineScript/Simple-WP-Optimizer.git`
76+
2. Install dependencies: `composer install`
77+
3. Set up the test environment: `bin/install-wp-tests.sh wordpress_test root '' localhost latest`
78+
4. Run tests: `composer test`
79+
80+
## Contributing
81+
82+
Contributions are welcome! Please feel free to submit a Pull Request.
83+
84+
1. Fork the project
85+
2. Create your feature branch: `git checkout -b feature/new-optimization`
86+
3. Commit your changes: `git commit -m 'Add some new optimization'`
87+
4. Push to the branch: `git push origin feature/new-optimization`
88+
5. Open a Pull Request
89+
90+
## License
91+
92+
This project is licensed under the GPL-2.0+ License - see the [LICENSE](LICENSE) file for details.
93+
94+
## Changelog
95+
96+
See [CHANGELOG.MD](CHANGELOG.MD) for a list of changes in each release.
97+
98+
## Credits
99+
100+
- Developed by [EngineScript](https://github.com/EngineScript)
101+
- Special thanks to all contributors
102+
103+
## Support
104+
105+
For support, please open an issue in the GitHub repository or contact us via [[email protected]](mailto:[email protected]).

0 commit comments

Comments
 (0)