Skip to content

Commit 6cfdfb6

Browse files
authored
Workflows
1 parent 0b20930 commit 6cfdfb6

12 files changed

+66
-34
lines changed

.github/copilot-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ applyTo: '**'
1010
- **Text Domain:** `enginescript-site-optimizer`
1111
- **Function/Hook Prefix:** `es_optimizer_`
1212
- **Version Constant:** `ES_SITE_OPTIMIZER_VERSION`
13-
- **WordPress:** 6.5+ | **PHP:** 7.4+
13+
- **WordPress:** 6.6+ | **PHP:** 7.4+
1414
- **Work Environment:** GitHub Codespaces (remote). Never suggest local terminal commands.
1515

1616
## Code Standards

.github/workflows/gemini-issue-assistant.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ jobs:
252252
echo "4. Check for existing similar functionality" >> analysis_prompt.txt
253253
echo "5. Provide actionable recommendations" >> analysis_prompt.txt
254254
echo "" >> analysis_prompt.txt
255-
echo "REPOSITORY CONTEXT: WordPress plugin project (WordPress 6.5+, PHP 7.4+)" >> analysis_prompt.txt
255+
echo "REPOSITORY CONTEXT: WordPress plugin project (WordPress 6.6+, PHP 7.4+)" >> analysis_prompt.txt
256256
echo "" >> analysis_prompt.txt
257257
elif [ "$ANALYSIS_TYPE" = "comment-analysis" ]; then
258258
# Create comment-focused prompt - FOCUS ON CONVERSATION CONTEXT
@@ -275,7 +275,7 @@ jobs:
275275
echo "3. Are there code implications from this comment?" >> analysis_prompt.txt
276276
echo "4. What follow-up actions are suggested?" >> analysis_prompt.txt
277277
echo "" >> analysis_prompt.txt
278-
echo "REPOSITORY CONTEXT: WordPress plugin project (WordPress 6.5+, PHP 7.4+)" >> analysis_prompt.txt
278+
echo "REPOSITORY CONTEXT: WordPress plugin project (WordPress 6.6+, PHP 7.4+)" >> analysis_prompt.txt
279279
fi
280280
281281
# Add codebase context if available

.github/workflows/new-pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
Thanks for contributing to EngineScript Site Optimizer! 🎉
2525
2626
**Before we review:**
27-
- [ ] Have you tested your changes with WordPress 6.5+?
27+
- [ ] Have you tested your changes with WordPress 6.6+?
2828
- [ ] Are your changes compatible with PHP 7.4+?
2929
- [ ] Have you followed WordPress coding standards?
3030
- [ ] Did you update the CHANGELOG.md if needed?

.github/workflows/wp-compatibility-test.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# This workflow performs comprehensive WordPress plugin compatibility and quality checks.
22
# It runs multiple validation processes including:
33
# - WordPress Plugin Check for WordPress.org compatibility
4-
# - PHP compatibility testing across multiple PHP versions (7.4, 8.0, 8.3, 8.4)
5-
# - WordPress compatibility testing across multiple WP versions (6.5, latest, nightly)
4+
# - PHPUnit tests across PHP versions (7.4/8.0: PHPUnit 9+polyfills2; 8.1: PHPUnit 9+polyfills4; 8.2: PHPUnit 11+polyfills4; 8.3: PHPUnit 12+polyfills4)
5+
# - PHP compatibility testing across multiple PHP versions (7.4, 8.0, 8.3, 8.4, 8.5)
6+
# - WordPress compatibility testing across multiple WP versions (6.6, latest, nightly)
67
# - PHPStan static analysis for WordPress-specific code quality
78
# - WordPress security vulnerability scanning using pattern analysis
89
# - PHPCS code standards validation for WordPress coding standards
@@ -586,8 +587,8 @@ jobs:
586587
runs-on: ubuntu-latest
587588
strategy:
588589
matrix:
589-
php-version: ['7.4', '8.0', '8.3', '8.4']
590-
wp-version: ['6.5', 'latest', 'nightly']
590+
php-version: ['7.4', '8.0', '8.3', '8.4', '8.5']
591+
wp-version: ['6.6', 'latest', 'nightly']
591592
fail-fast: false
592593

593594
services:
@@ -805,7 +806,7 @@ jobs:
805806
$this->assertNotEmpty($wp_version, 'WordPress version should be available');
806807
807808
// Test that we're running on a supported WordPress version
808-
$min_wp_version = '6.5';
809+
$min_wp_version = '6.6';
809810
$this->assertTrue(version_compare($wp_version, $min_wp_version, '>='),
810811
"WordPress version {$wp_version} should be >= {$min_wp_version}");
811812
}

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This project follows the [WordPress Community Code of Conduct](https://make.word
1111
### Requirements
1212

1313
- **PHP**: 7.4 or higher
14-
- **WordPress**: 6.5 or higher
14+
- **WordPress**: 6.6 or higher
1515
- **Composer**: For dependency management
1616
- **Node.js**: 16+ (if working with build tools)
1717
- **Git**: For version control
@@ -162,7 +162,7 @@ function es_optimizer_example_function( $input ) {
162162
### Testing
163163

164164
1. **Manual Testing**:
165-
- Test in WordPress 6.5+ and latest version
165+
- Test in WordPress 6.6+ and latest version
166166
- Test with PHP 7.4 and 8.3+
167167
- Verify admin interface functionality
168168
- Check frontend optimizations

GEMINI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This is a WordPress performance optimization plugin that removes unnecessary fea
99

1010
- **Name:** EngineScript Site Optimizer
1111
- **Version:** 2.0.0
12-
- **WordPress Compatibility:** 6.5+
12+
- **WordPress Compatibility:** 6.6+
1313
- **PHP Compatibility:** 7.4+
1414
- **License:** GPL-3.0-or-later
1515
- **Text Domain:** enginescript-site-optimizer

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/cf82cdb35973466abe7895e6d37666ed)](https://app.codacy.com/gh/EngineScript/enginescript-site-optimizer/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
44
[![Github License](https://img.shields.io/badge/License-GPL%20v3-green.svg?logo=gnu)](https://www.gnu.org/licenses/gpl-3.0.html)
5-
[![WordPress Compatible](https://img.shields.io/badge/WordPress-6.5%2B-blue.svg?logo=wordpress)](https://wordpress.org/)
5+
[![WordPress Compatible](https://img.shields.io/badge/WordPress-6.6%2B-blue.svg?logo=wordpress)](https://wordpress.org/)
66
[![PHP Compatible](https://img.shields.io/badge/PHP-7.4%2B-purple.svg?logo=php)](https://www.php.net/)
77

88
## Current Version
@@ -95,7 +95,7 @@ Yes, hiding the WordPress version can provide a minor security benefit by making
9595
### Requirements
9696

9797
- PHP 7.4 or higher
98-
- WordPress 6.5 or higher
98+
- WordPress 6.6 or higher
9999
- Composer (for development and testing)
100100

101101
### Setting up the development environment
@@ -107,13 +107,13 @@ Yes, hiding the WordPress version can provide a minor security benefit by making
107107

108108
### PHP 8.x Compatibility
109109

110-
This plugin is fully compatible with PHP versions 7.4 through 8.4. For testing with PHP 8.x, we provide a custom PHPUnit runner script that helps avoid common compatibility issues between PHPUnit and newer PHP versions:
110+
This plugin is fully compatible with PHP versions 7.4 through 8.5. For testing with PHP 8.x, we provide a custom PHPUnit runner script that helps avoid common compatibility issues between PHPUnit and newer PHP versions:
111111

112112
```bash
113113
# For PHP 7.4 (standard testing)
114114
composer test
115115

116-
# For PHP 8.0, 8.1, 8.2, 8.3, and 8.4 (using the custom runner)
116+
# For PHP 8.0, 8.1, 8.2, 8.3, 8.4, and 8.5 (using the custom runner)
117117
composer test:php8
118118
```
119119

@@ -135,8 +135,8 @@ This ensures our plugin stays up-to-date with the latest WordPress versions with
135135

136136
The plugin includes a comprehensive PHPUnit test suite that runs automatically on GitHub Actions. Our testing matrix includes:
137137

138-
- PHP versions: 7.4, 8.0, 8.1, 8.2, 8.3, 8.4
139-
- WordPress versions: 6.5, latest, nightly
138+
- PHP versions: 7.4, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5
139+
- WordPress versions: 6.6, latest, nightly
140140
- Both single site and multisite installations
141141

142142
This ensures code quality and compatibility across different PHP versions and WordPress configurations.

composer.json

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,17 @@
1414
"php": ">=7.4"
1515
},
1616
"require-dev": {
17-
"phpunit/phpunit": "^9.5",
18-
"yoast/phpunit-polyfills": "^4.0",
19-
"wp-coding-standards/wpcs": "^3.1",
20-
"dealerdirect/phpcodesniffer-composer-installer": "^1.0.0",
21-
"php-stubs/wordpress-stubs": "^6.9",
22-
"szepeviktor/phpstan-wordpress": "^1.3",
23-
"phpstan/phpstan": "^1.0",
24-
"phpcompatibility/phpcompatibility-wp": "^2.1"
17+
"phpunit/phpunit": "9.*",
18+
"yoast/phpunit-polyfills": "2.*",
19+
"squizlabs/php_codesniffer": "3.*",
20+
"wp-coding-standards/wpcs": "3.*",
21+
"phpcsstandards/phpcsextra": "1.*",
22+
"dealerdirect/phpcodesniffer-composer-installer": "1.*",
23+
"friendsofphp/php-cs-fixer": "3.*",
24+
"php-stubs/wordpress-stubs": "6.*",
25+
"szepeviktor/phpstan-wordpress": "2.*",
26+
"phpstan/phpstan": "2.*",
27+
"phpcompatibility/phpcompatibility-wp": "2.*"
2528
},
2629
"scripts": {
2730
"phpcs": "phpcs --standard=phpcs.xml",

enginescript-site-optimizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* License: GPL-3.0-or-later
99
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
1010
* Text Domain: enginescript-site-optimizer
11-
* Requires at least: 6.5
11+
* Requires at least: 6.6
1212
* Requires PHP: 7.4
1313
* Tested up to: 6.9
1414
* Security: Follows OWASP security guidelines and WordPress best practices

phpcs.xml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
<exclude-pattern>*/vendor/*</exclude-pattern>
1010
<exclude-pattern>*/node_modules/*</exclude-pattern>
1111
<exclude-pattern>*/tests/*</exclude-pattern>
12-
<exclude-pattern>*/assets/*</exclude-pattern>
13-
<exclude-pattern>*/languages/*</exclude-pattern>
1412
<exclude-pattern>*/.git/*</exclude-pattern>
1513
<exclude-pattern>*/.github/*</exclude-pattern>
14+
<exclude-pattern>*/build/*</exclude-pattern>
15+
<exclude-pattern>*/dist/*</exclude-pattern>
1616

17-
<!-- Use WordPress coding standards -->
18-
<rule ref="WordPress">
17+
<!-- Use WordPress-Extra coding standards (includes WordPress-Core) -->
18+
<rule ref="WordPress-Extra">
1919
<!-- Allow short array syntax [] instead of array() -->
2020
<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
2121

@@ -26,6 +26,9 @@
2626
<exclude name="WordPress.DB.DirectDatabaseQuery"/>
2727
</rule>
2828

29+
<!-- WordPress documentation standards -->
30+
<rule ref="WordPress-Docs"/>
31+
2932
<!-- COMMENTED OUT: These rules enforce spaces instead of tabs, which conflicts with WordPress standards -->
3033
<!-- WordPress standards actually require TABS for indentation, not spaces -->
3134
<!--
@@ -85,6 +88,8 @@
8588

8689
<!-- WordPress security and best practices -->
8790
<rule ref="WordPress.Security"/>
91+
92+
<!-- WordPress internationalization configuration -->
8893
<rule ref="WordPress.WP.I18n">
8994
<properties>
9095
<!-- Set the text domain for internationalization -->
@@ -103,7 +108,14 @@
103108
<rule ref="PHPCompatibilityWP">
104109
<include-pattern>*\.php$</include-pattern>
105110
</rule>
106-
<config name="minimum_supported_wp_version" value="6.5"/>
111+
112+
<!-- PHPCSExtra rules for additional code quality checks -->
113+
<rule ref="PHPCSExtra">
114+
<exclude name="Modernize.FunctionCalls.Dirname.Nested"/>
115+
</rule>
116+
117+
<!-- Set minimum WordPress version for deprecated function checks -->
118+
<config name="minimum_wp_version" value="6.6"/>
107119
<config name="testVersion" value="7.4-"/>
108120

109121
<!-- Show progress -->
@@ -115,4 +127,4 @@
115127
<!-- Use colors in output -->
116128
<arg name="colors"/>
117129

118-
</ruleset>
130+
</ruleset>

0 commit comments

Comments
 (0)