diff --git a/.github/scripts/check-wordpress-tested-up-to.py b/.github/scripts/check-wordpress-tested-up-to.py
index b361e60..fba7acf 100755
--- a/.github/scripts/check-wordpress-tested-up-to.py
+++ b/.github/scripts/check-wordpress-tested-up-to.py
@@ -19,7 +19,8 @@
WORDPRESS_LATEST_VERSION = os.environ.get("WORDPRESS_LATEST_VERSION")
WORDPRESS_VERSION_CHECK_FILE = Path("wordpress-version-check.json")
-METADATA_PATHS = {Path("enginescript-site-optimizer.php"), Path("readme.txt")}
+# Only readme.txt: Plugin Check (2.2 and later) refuses "Tested up to" in the plugin header
+METADATA_PATHS = {Path("readme.txt")}
DEFAULT_EXCLUDED_DIRS = {
".git",
"build",
diff --git a/.github/scripts/test-automation.py b/.github/scripts/test-automation.py
index 6eb407c..c6e0a04 100755
--- a/.github/scripts/test-automation.py
+++ b/.github/scripts/test-automation.py
@@ -105,11 +105,12 @@ def findings(self) -> list[dict[str, object]]:
def test_metadata_changes_only_authoritative_headers(self) -> None:
findings = self.findings()
- self.assertEqual(2, len(findings))
- before = {name: (self.root / name).read_bytes() for name in ("README.md", ".private/review.md")}
- self.assertEqual(
- ["enginescript-site-optimizer.php", "readme.txt"], metadata.update_tested_up_to_entries(findings, "9.9")
- )
+ self.assertEqual(1, len(findings))
+ before = {
+ name: (self.root / name).read_bytes()
+ for name in ("enginescript-site-optimizer.php", "README.md", ".private/review.md")
+ }
+ self.assertEqual(["readme.txt"], metadata.update_tested_up_to_entries(findings, "9.9"))
self.assertEqual([], metadata.get_failures("9.9", self.findings()))
for name, content in before.items():
self.assertEqual(content, (self.root / name).read_bytes())
@@ -544,7 +545,7 @@ def test_helpers_ignore_git_on_path(self) -> None:
self.write("bin/git", "#!/bin/sh\nexit 97\n")
(self.root / "bin/git").chmod(0o700)
with patch.dict(os.environ, PATH=f"{self.root / 'bin'}:{os.environ['PATH']}"):
- self.assertEqual(2, len(self.findings()))
+ self.assertEqual(1, len(self.findings()))
build, archive = self.create_package_fixture()
with contextlib.redirect_stdout(io.StringIO()):
self.assertEqual(9, package.validate_package(self.root, build, archive))
diff --git a/.github/workflows/wp-compatibility-test.yml b/.github/workflows/wp-compatibility-test.yml
index a5cc222..7e7da33 100644
--- a/.github/workflows/wp-compatibility-test.yml
+++ b/.github/workflows/wp-compatibility-test.yml
@@ -1564,6 +1564,9 @@ jobs:
# The WordPress test library still calls PHPUnit APIs removed in PHPUnit 10+.
# Keep this generated integration-test job on PHPUnit 9.6 while the rest
# of the project can continue using newer Composer-resolved QA tooling.
+ # This job does not run Psalm, and Psalm 7.4+ requires psalm/plugin-phpunit, whose
+ # 1.x releases conflict with PHPUnit below 11: remove Psalm first.
+ composer remove --dev vimeo/psalm --no-interaction --no-progress
if [ "${{ matrix.dependency-versions }}" = "lowest" ]; then
composer require --dev phpunit/phpunit:"^9.6" yoast/phpunit-polyfills:"^4.0" --with-all-dependencies --prefer-lowest --no-progress
else
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 105826d..3b92125 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -30,6 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Reject the special-use names `alt` and `onion` in domain lists.
- Raise the minimum WordPress version to 7.0, the version Jetpack requires.
- Raise the minimum PHP version from 8.2 to 8.3. PHP 8.2 reaches end of life on December 31, 2026, and EngineScript servers no longer support it. A site on PHP 8.2 keeps its current version of the plugin until it moves to PHP 8.3 or newer. The tests cover PHP 8.3 to 8.5.
+- Declare "Tested up to" only in `readme.txt`, not in the plugin header. Plugin Check refuses the field in the plugin header, because two copies can drift apart; the scheduled WordPress version check now updates `readme.txt` only. Static analysis runs on Psalm 7.
- Use one term, "domain", for an entry of the Preconnect and DNS Prefetch lists in the settings, the rejection reasons, and the documentation. The reasons now read "Invalid domain entry.", "No domain name found.", "Invalid domain name.", and "IP addresses and private, local, or reserved domain names are not allowed."
- "Remove WordPress Version" now also removes the generator tag from feeds, and "Remove Shortlink" also removes the shortlink HTTP response header.
- Stop adding the plugin's resource hints to the login screen.
diff --git a/composer.json b/composer.json
index 81ebfc2..a185d85 100644
--- a/composer.json
+++ b/composer.json
@@ -22,7 +22,7 @@
"dealerdirect/phpcodesniffer-composer-installer": "^1.2",
"friendsofphp/php-cs-fixer": "^3.95",
"phpmd/phpmd": "^3.0",
- "vimeo/psalm": "^6.16",
+ "vimeo/psalm": "^7.0",
"php-stubs/wordpress-stubs": "^7.1.2",
"szepeviktor/phpstan-wordpress": "^2.0",
"phpstan/phpstan": "^2.3.1",
diff --git a/composer.lock b/composer.lock
index cf264bf..3ccc65d 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "71f92e0a715d482fd99276aeaddc57a5",
+ "content-hash": "85a56e7782601cf3fb13f069338ca40f",
"packages": [],
"packages-dev": [
{
@@ -532,16 +532,16 @@
},
{
"name": "amphp/process",
- "version": "v2.1.1",
+ "version": "v2.1.2",
"source": {
"type": "git",
"url": "https://github.com/amphp/process.git",
- "reference": "6ee0d11112a9b1338b7dc270d51f254e872c90b5"
+ "reference": "acfd64f68df5fa7f2d674c93d1986b2bf5d02770"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/amphp/process/zipball/6ee0d11112a9b1338b7dc270d51f254e872c90b5",
- "reference": "6ee0d11112a9b1338b7dc270d51f254e872c90b5",
+ "url": "https://api.github.com/repos/amphp/process/zipball/acfd64f68df5fa7f2d674c93d1986b2bf5d02770",
+ "reference": "acfd64f68df5fa7f2d674c93d1986b2bf5d02770",
"shasum": ""
},
"require": {
@@ -588,7 +588,7 @@
"homepage": "https://amphp.org/process",
"support": {
"issues": "https://github.com/amphp/process/issues",
- "source": "https://github.com/amphp/process/tree/v2.1.1"
+ "source": "https://github.com/amphp/process/tree/v2.1.2"
},
"funding": [
{
@@ -596,7 +596,7 @@
"type": "github"
}
],
- "time": "2026-11-01T22:46:42+00:00"
+ "time": "2026-11-07T16:33:32+00:00"
},
{
"name": "amphp/serialization",
@@ -667,16 +667,16 @@
},
{
"name": "amphp/socket",
- "version": "v2.4.1",
+ "version": "v2.4.2",
"source": {
"type": "git",
"url": "https://github.com/amphp/socket.git",
- "reference": "b347be5aff6b2cc025208bb4d896607eb470c018"
+ "reference": "6e881835c73b75a0a4251a7f58441bc90b9f6c8a"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/amphp/socket/zipball/b347be5aff6b2cc025208bb4d896607eb470c018",
- "reference": "b347be5aff6b2cc025208bb4d896607eb470c018",
+ "url": "https://api.github.com/repos/amphp/socket/zipball/6e881835c73b75a0a4251a7f58441bc90b9f6c8a",
+ "reference": "6e881835c73b75a0a4251a7f58441bc90b9f6c8a",
"shasum": ""
},
"require": {
@@ -739,7 +739,7 @@
],
"support": {
"issues": "https://github.com/amphp/socket/issues",
- "source": "https://github.com/amphp/socket/tree/v2.4.1"
+ "source": "https://github.com/amphp/socket/tree/v2.4.2"
},
"funding": [
{
@@ -747,7 +747,7 @@
"type": "github"
}
],
- "time": "2026-08-22T18:13:20+00:00"
+ "time": "2026-11-11T03:42:20+00:00"
},
{
"name": "amphp/sync",
@@ -1392,20 +1392,20 @@
},
{
"name": "doctrine/deprecations",
- "version": "1.1.6",
+ "version": "1.2.0",
"source": {
"type": "git",
"url": "https://github.com/doctrine/deprecations.git",
- "reference": "d4fe3e6fd9bb9e72557a19674f44d8ac7db4c6ca"
+ "reference": "d2e16653a734c8784c1851ad68b02f997b53ca82"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/doctrine/deprecations/zipball/d4fe3e6fd9bb9e72557a19674f44d8ac7db4c6ca",
- "reference": "d4fe3e6fd9bb9e72557a19674f44d8ac7db4c6ca",
+ "url": "https://api.github.com/repos/doctrine/deprecations/zipball/d2e16653a734c8784c1851ad68b02f997b53ca82",
+ "reference": "d2e16653a734c8784c1851ad68b02f997b53ca82",
"shasum": ""
},
"require": {
- "php": "^7.1 || ^8.0"
+ "php": "^7.4 || ^8.0"
},
"conflict": {
"phpunit/phpunit": "<=7.5 || >=14"
@@ -1434,22 +1434,22 @@
"homepage": "https://www.doctrine-project.org/",
"support": {
"issues": "https://github.com/doctrine/deprecations/issues",
- "source": "https://github.com/doctrine/deprecations/tree/1.1.6"
+ "source": "https://github.com/doctrine/deprecations/tree/1.2.0"
},
- "time": "2026-02-07T07:09:04+00:00"
+ "time": "2026-11-11T10:04:49+00:00"
},
{
"name": "ergebnis/agent-detector",
- "version": "1.3.0",
+ "version": "2.0.0",
"source": {
"type": "git",
"url": "https://github.com/ergebnis/agent-detector.git",
- "reference": "0cd815cec1207873c37624d33f0f2853523152f3"
+ "reference": "bcc63004284c61c6df6e9625acf2673e3be1889b"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/ergebnis/agent-detector/zipball/0cd815cec1207873c37624d33f0f2853523152f3",
- "reference": "0cd815cec1207873c37624d33f0f2853523152f3",
+ "url": "https://api.github.com/repos/ergebnis/agent-detector/zipball/bcc63004284c61c6df6e9625acf2673e3be1889b",
+ "reference": "bcc63004284c61c6df6e9625acf2673e3be1889b",
"shasum": ""
},
"require": {
@@ -1459,8 +1459,8 @@
"ergebnis/composer-normalize": "^2.54.0",
"ergebnis/license": "^2.8.0",
"ergebnis/php-cs-fixer-config": "^6.60.2",
- "ergebnis/phpstan-rules": "^2.14.0",
- "ergebnis/phpunit-slow-test-detector": "^2.26.0",
+ "ergebnis/phpstan-rules": "^2.14.2",
+ "ergebnis/phpunit-slow-test-detector": "^2.27.0",
"ergebnis/rector-rules": "^1.18.5",
"fakerphp/faker": "^1.24.1",
"infection/infection": "^0.26.6",
@@ -1475,7 +1475,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-main": "1.3-dev"
+ "dev-main": "2.0-dev"
},
"composer-normalize": {
"indent-size": 2,
@@ -1505,7 +1505,7 @@
"security": "https://github.com/ergebnis/agent-detector/blob/main/.github/SECURITY.md",
"source": "https://github.com/ergebnis/agent-detector"
},
- "time": "2026-10-15T11:13:32+00:00"
+ "time": "2026-10-29T17:44:55+00:00"
},
{
"name": "evenement/evenement",
@@ -1674,23 +1674,23 @@
},
{
"name": "friendsofphp/php-cs-fixer",
- "version": "v3.95.27",
+ "version": "v3.95.30",
"source": {
"type": "git",
"url": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer.git",
- "reference": "1d0c68ee5f37446d8ad5970b82384cd1bb0a3317"
+ "reference": "e85cafc4d861c122839d5409eda3325ac0ec0300"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/1d0c68ee5f37446d8ad5970b82384cd1bb0a3317",
- "reference": "1d0c68ee5f37446d8ad5970b82384cd1bb0a3317",
+ "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/e85cafc4d861c122839d5409eda3325ac0ec0300",
+ "reference": "e85cafc4d861c122839d5409eda3325ac0ec0300",
"shasum": ""
},
"require": {
"clue/ndjson-react": "^1.3",
"composer/semver": "^3.4",
"composer/xdebug-handler": "^3.0.5",
- "ergebnis/agent-detector": "^1.2",
+ "ergebnis/agent-detector": "^2.0.0",
"ext-filter": "*",
"ext-hash": "*",
"ext-json": "*",
@@ -1702,30 +1702,30 @@
"react/socket": "^1.16",
"react/stream": "^1.4",
"sebastian/diff": "^4.0.6 || ^5.1.1 || ^6.0.2 || ^7.0 || ^8.0 || ^9.0",
- "symfony/console": "^5.4.47 || ^6.4.24 || ^7.0 || ^8.0",
- "symfony/event-dispatcher": "^5.4.45 || ^6.4.24 || ^7.0 || ^8.0",
- "symfony/filesystem": "^5.4.45 || ^6.4.24 || ^7.0 || ^8.0",
- "symfony/finder": "^5.4.45 || ^6.4.24 || ^7.0 || ^8.0",
- "symfony/options-resolver": "^5.4.45 || ^6.4.24 || ^7.0 || ^8.0",
- "symfony/polyfill-mbstring": "^1.37",
- "symfony/polyfill-php80": "^1.37",
- "symfony/polyfill-php81": "^1.37",
- "symfony/polyfill-php84": "^1.37",
- "symfony/process": "^5.4.47 || ^6.4.24 || ^7.2 || ^8.0",
- "symfony/stopwatch": "^5.4.45 || ^6.4.24 || ^7.0 || ^8.0"
+ "symfony/console": "^5.4.55 || ^6.4.50 || ^7.4.23 || ^8.1.11",
+ "symfony/event-dispatcher": "^5.4.45 || ^6.4.44 || ^7.4.17 || ^8.1.5",
+ "symfony/filesystem": "^5.4.56 || ^6.4.50 || ^7.4.23 || ^8.1.11",
+ "symfony/finder": "^5.4.45 || ^6.4.50 || ^7.4.23 || ^8.1.11",
+ "symfony/options-resolver": "^5.4.45 || ^6.4.49 || ^7.4.22 || ^8.1.10",
+ "symfony/polyfill-mbstring": "^1.43.3",
+ "symfony/polyfill-php80": "^1.43",
+ "symfony/polyfill-php81": "^1.38.1",
+ "symfony/polyfill-php84": "^1.43",
+ "symfony/process": "^5.4.54 || ^6.4.49 || ^7.4.22 || ^8.1.10",
+ "symfony/stopwatch": "^5.4.45 || ^6.4.24 || ^7.4.8 || ^8.1"
},
"require-dev": {
"facile-it/paraunit": "^1.3.1 || ^2.11.0",
"infection/infection": "^0.32.7",
- "justinrainbow/json-schema": "^6.12.0",
+ "justinrainbow/json-schema": "^6.14.0",
"keradus/cli-executor": "^2.3",
"php-coveralls/php-coveralls": "^2.9.1",
"php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.8",
"php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.8",
- "phpunit/phpunit": "^9.6.36 || ^10.5.64 || ^11.5.56 || ^12.5.35 || ^13.3.3",
- "symfony/polyfill-php85": "^1.41",
- "symfony/var-dumper": "^5.4.48 || ^6.4.45 || ^7.4.18 || ^8.1.7",
- "symfony/yaml": "^5.4.53 || ^6.4.45 || ^7.4.18 || ^8.1.6"
+ "phpunit/phpunit": "^9.6.38 || ^10.5.66 || ^11.5.57 || ^12.5.43 || ^13.4.6",
+ "symfony/polyfill-php85": "^1.43",
+ "symfony/var-dumper": "^5.4.54 || ^6.4.49 || ^7.4.22 || ^8.1.10",
+ "symfony/yaml": "^5.4.56 || ^6.4.50 || ^7.4.23 || ^8.1.11"
},
"suggest": {
"ext-dom": "For handling output formats in XML",
@@ -1766,7 +1766,7 @@
],
"support": {
"issues": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues",
- "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.95.27"
+ "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.95.30"
},
"funding": [
{
@@ -1774,7 +1774,7 @@
"type": "github"
}
],
- "time": "2026-09-22T09:54:55+00:00"
+ "time": "2026-11-09T14:32:19+00:00"
},
{
"name": "kelunik/certificate",
@@ -3140,11 +3140,11 @@
},
{
"name": "phpstan/phpstan",
- "version": "2.3.4",
+ "version": "2.3.5",
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phpstan/phpstan/zipball/f20ce6f3c82556cfcfc086b152445a12d1d64fff",
- "reference": "f20ce6f3c82556cfcfc086b152445a12d1d64fff",
+ "url": "https://api.github.com/repos/phpstan/phpstan/zipball/645a1bd6bead15fc1b8474137467961d0fa30a79",
+ "reference": "645a1bd6bead15fc1b8474137467961d0fa30a79",
"shasum": ""
},
"require": {
@@ -3200,7 +3200,7 @@
"type": "github"
}
],
- "time": "2026-10-28T22:38:53+00:00"
+ "time": "2026-11-03T12:14:22+00:00"
},
{
"name": "phpunit/php-code-coverage",
@@ -3649,6 +3649,325 @@
],
"time": "2026-10-27T04:15:03+00:00"
},
+ {
+ "name": "psalm/plugin-laravel",
+ "version": "v4.19.5",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/psalm/psalm-plugin-laravel.git",
+ "reference": "f9b54e015ff81be1240bfdc7bf3b4f95e45c3218"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/psalm/psalm-plugin-laravel/zipball/f9b54e015ff81be1240bfdc7bf3b4f95e45c3218",
+ "reference": "f9b54e015ff81be1240bfdc7bf3b4f95e45c3218",
+ "shasum": ""
+ },
+ "require": {
+ "ext-simplexml": "*",
+ "nikic/php-parser": "^5.0",
+ "php": "^8.2",
+ "psalm/psalm-plugin-api": "^0.4.2",
+ "sebastian/diff": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0",
+ "symfony/console": "^6.4 || ^7.0 || ^8.0",
+ "vimeo/psalm": "^7.3.1@stable"
+ },
+ "conflict": {
+ "laravel/framework": "<12.27 || 13.0.0 || >=13.1 <13.20",
+ "orchestra/testbench-core": "<10.0"
+ },
+ "require-dev": {
+ "alies-dev/psalm-tester": "^0.4",
+ "brianium/paratest": "^7.7",
+ "friendsofphp/php-cs-fixer": "^3.94",
+ "laravel/framework": "^12.27 || ^13.20",
+ "orchestra/testbench-core": "^10.0 || ^11.0",
+ "phpunit/phpunit": "^11.5 || ^12.5 || ^13.0",
+ "ramsey/collection": "^1.3",
+ "rector/rector": "^2.8.3",
+ "symfony/http-foundation": "^7.1 || ^8.0",
+ "symfony/process": "^7.1 || ^8.0"
+ },
+ "bin": [
+ "bin/psalm-laravel"
+ ],
+ "type": "psalm-plugin",
+ "extra": {
+ "psalm": {
+ "pluginClass": "Psalm\\LaravelPlugin\\Plugin"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Psalm\\LaravelPlugin\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Matthew Brown",
+ "email": "github@muglug.com",
+ "role": "Original Author"
+ },
+ {
+ "name": "Alies Lapatsin",
+ "email": "github@alies.dev",
+ "role": "Maintainer"
+ }
+ ],
+ "description": "Psalm plugin for Laravel",
+ "homepage": "https://github.com/psalm/psalm-plugin-laravel",
+ "keywords": [
+ "dev",
+ "laravel",
+ "psalm",
+ "psalm-plugin"
+ ],
+ "support": {
+ "issues": "https://github.com/psalm/psalm-plugin-laravel/issues",
+ "source": "https://github.com/psalm/psalm-plugin-laravel/tree/v4.19.5"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/alies-dev",
+ "type": "github"
+ }
+ ],
+ "time": "2026-11-13T00:15:12+00:00"
+ },
+ {
+ "name": "psalm/plugin-mockery",
+ "version": "1.3.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/psalm/psalm-plugin-mockery.git",
+ "reference": "ddff47dd095dc3c47224a3f6bf137e28570ef022"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/psalm/psalm-plugin-mockery/zipball/ddff47dd095dc3c47224a3f6bf137e28570ef022",
+ "reference": "ddff47dd095dc3c47224a3f6bf137e28570ef022",
+ "shasum": ""
+ },
+ "require": {
+ "composer-runtime-api": "^2.0",
+ "composer/semver": "^1.4 || ^2.0 || ^3.0",
+ "php": ">=8.1",
+ "psalm/psalm-plugin-api": "^0.4",
+ "vimeo/psalm": "^7|dev-master"
+ },
+ "conflict": {
+ "mockery/mockery": "<1.0"
+ },
+ "require-dev": {
+ "codeception/codeception": "^5.0",
+ "mockery/mockery": "^1.0",
+ "phpunit/phpunit": "^10.5 || ^11.5 || ^12.0 || ^13.0",
+ "squizlabs/php_codesniffer": "^3.3.1",
+ "weirdan/codeception-psalm-module": "^0.14.1"
+ },
+ "type": "psalm-plugin",
+ "extra": {
+ "psalm": {
+ "pluginClass": "Psalm\\MockeryPlugin\\Plugin"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Psalm\\MockeryPlugin\\": [
+ "."
+ ]
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Matt Brown",
+ "email": "github@muglug.com"
+ }
+ ],
+ "description": "Psalm plugin for Mockery",
+ "support": {
+ "issues": "https://github.com/psalm/psalm-plugin-mockery/issues",
+ "source": "https://github.com/psalm/psalm-plugin-mockery/tree/1.3.2"
+ },
+ "time": "2026-10-28T12:21:43+00:00"
+ },
+ {
+ "name": "psalm/plugin-phpunit",
+ "version": "1.2.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/psalm/psalm-plugin-phpunit.git",
+ "reference": "9227f2ac5d7ec16d1f4c9904a4326397b90d5566"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/psalm/psalm-plugin-phpunit/zipball/9227f2ac5d7ec16d1f4c9904a4326397b90d5566",
+ "reference": "9227f2ac5d7ec16d1f4c9904a4326397b90d5566",
+ "shasum": ""
+ },
+ "require": {
+ "ext-simplexml": "*",
+ "php": ">=8.2",
+ "psalm/psalm-plugin-api": "^0.4.2",
+ "vimeo/psalm": "^7.2 || dev-master"
+ },
+ "conflict": {
+ "phpspec/prophecy": "<1.20.0",
+ "phpspec/prophecy-phpunit": "<2.3.0",
+ "phpunit/phpunit": "<11.0"
+ },
+ "require-dev": {
+ "friendsofphp/php-cs-fixer": "^3.88",
+ "phpspec/prophecy-phpunit": "^2.5",
+ "phpunit/phpunit": "^11.0 || ^12.0 || ^13.0"
+ },
+ "type": "psalm-plugin",
+ "extra": {
+ "psalm": {
+ "pluginClass": "Psalm\\PhpUnitPlugin\\Plugin"
+ },
+ "branch-alias": {
+ "dev-master": "1.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Psalm\\PhpUnitPlugin\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Matt Brown",
+ "email": "github@muglug.com"
+ }
+ ],
+ "description": "Psalm plugin for PHPUnit",
+ "support": {
+ "issues": "https://github.com/psalm/psalm-plugin-phpunit/issues",
+ "source": "https://github.com/psalm/psalm-plugin-phpunit/tree/1.2.0"
+ },
+ "time": "2026-11-14T00:23:20+00:00"
+ },
+ {
+ "name": "psalm/plugin-symfony",
+ "version": "v5.11.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/psalm/psalm-plugin-symfony.git",
+ "reference": "1fef73d616f0e187ffc05d13dd98f10ade6bc9e0"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/psalm/psalm-plugin-symfony/zipball/1fef73d616f0e187ffc05d13dd98f10ade6bc9e0",
+ "reference": "1fef73d616f0e187ffc05d13dd98f10ade6bc9e0",
+ "shasum": ""
+ },
+ "require": {
+ "ext-simplexml": "*",
+ "php": ">=8.2",
+ "psalm/psalm-plugin-api": "^0.4.2",
+ "vimeo/psalm": "^7.0@stable|dev-master"
+ },
+ "conflict": {
+ "fidry/cpu-core-counter": "<1.2",
+ "symfony/expression-language": "<5.0",
+ "symfony/framework-bundle": "<5.0"
+ },
+ "require-dev": {
+ "doctrine/annotations": "^1.8|^2",
+ "doctrine/orm": "^2.9 || ^3.6",
+ "phpunit/phpunit": "~7.5 || ~9.5",
+ "symfony/cache-contracts": "^1.0 || ^2.0 || ^3.0",
+ "symfony/console": "*",
+ "symfony/expression-language": "^5.0 || ^6.0 || ^7.0 || ^8.0",
+ "symfony/form": "^5.0 || ^6.0 || ^7.0 || ^8.0",
+ "symfony/framework-bundle": "^5.0 || ^6.0 || ^7.0 || ^8.0",
+ "symfony/messenger": "^5.0 || ^6.0 || ^7.0 || ^8.0",
+ "symfony/mime": "^5.0 || ^6.0 || ^7.0 || ^8.0",
+ "symfony/security-core": "*",
+ "symfony/serializer": "^5.0 || ^6.0 || ^7.0 || ^8.0",
+ "symfony/validator": "*",
+ "twig/twig": "^2.10 || ^3.0",
+ "weirdan/codeception-psalm-module": "dev-master"
+ },
+ "suggest": {
+ "weirdan/doctrine-psalm-plugin": "If Doctrine is used, it is recommended install this plugin"
+ },
+ "type": "psalm-plugin",
+ "extra": {
+ "psalm": {
+ "pluginClass": "Psalm\\SymfonyPsalmPlugin\\Plugin"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Psalm\\SymfonyPsalmPlugin\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Farhad Safarov",
+ "email": "farhad.safarov@gmail.com"
+ }
+ ],
+ "description": "Psalm Plugin for Symfony",
+ "support": {
+ "issues": "https://github.com/psalm/psalm-plugin-symfony/issues",
+ "source": "https://github.com/psalm/psalm-plugin-symfony/tree/v5.11.0"
+ },
+ "time": "2026-11-11T11:34:54+00:00"
+ },
+ {
+ "name": "psalm/psalm-plugin-api",
+ "version": "0.4.3",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/psalm/psalm-plugin-api.git",
+ "reference": "1d4369adfe959d6459f10f647d386051e93e8e2e"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/psalm/psalm-plugin-api/zipball/1d4369adfe959d6459f10f647d386051e93e8e2e",
+ "reference": "1d4369adfe959d6459f10f647d386051e93e8e2e",
+ "shasum": ""
+ },
+ "conflict": {
+ "vimeo/psalm": "<7.0.0-rc3"
+ },
+ "type": "metapackage",
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Daniil Gentili",
+ "email": "daniil@daniil.it"
+ }
+ ],
+ "description": "Stable, semantically versioned API for Psalm plugins",
+ "support": {
+ "issues": "https://github.com/psalm/psalm-plugin-api/issues",
+ "source": "https://github.com/psalm/psalm-plugin-api/tree/0.4.3"
+ },
+ "time": "2026-11-13T22:58:21+00:00"
+ },
{
"name": "psr/container",
"version": "2.0.2",
@@ -4438,21 +4757,21 @@
},
{
"name": "rector/rector",
- "version": "2.8.3",
+ "version": "2.8.4",
"source": {
"type": "git",
"url": "https://github.com/rectorphp/rector.git",
- "reference": "12ddb68d34acb91bcf3d00302bf1c7c1b5840bd6"
+ "reference": "55acbd956d7e3907f7d21aab54edd68a310609e6"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/rectorphp/rector/zipball/12ddb68d34acb91bcf3d00302bf1c7c1b5840bd6",
- "reference": "12ddb68d34acb91bcf3d00302bf1c7c1b5840bd6",
+ "url": "https://api.github.com/repos/rectorphp/rector/zipball/55acbd956d7e3907f7d21aab54edd68a310609e6",
+ "reference": "55acbd956d7e3907f7d21aab54edd68a310609e6",
"shasum": ""
},
"require": {
"php": "^7.4|^8.0",
- "phpstan/phpstan": "^2.3.4"
+ "phpstan/phpstan": "^2.3.5"
},
"conflict": {
"rector/rector-doctrine": "*",
@@ -4483,7 +4802,7 @@
],
"support": {
"issues": "https://github.com/rectorphp/rector/issues",
- "source": "https://github.com/rectorphp/rector/tree/2.8.3"
+ "source": "https://github.com/rectorphp/rector/tree/2.8.4"
},
"funding": [
{
@@ -4491,7 +4810,7 @@
"type": "github"
}
],
- "time": "2026-10-29T05:51:41+00:00"
+ "time": "2026-11-03T18:48:08+00:00"
},
{
"name": "revolt/event-loop",
@@ -5434,16 +5753,16 @@
},
{
"name": "sebastian/version",
- "version": "6.0.1",
+ "version": "6.0.2",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/version.git",
- "reference": "9e935a16187e14f39b0e79910dabd614972cdb26"
+ "reference": "a8b6643a19ba6c8125a473623e45fb8cbb0e4159"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/9e935a16187e14f39b0e79910dabd614972cdb26",
- "reference": "9e935a16187e14f39b0e79910dabd614972cdb26",
+ "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/a8b6643a19ba6c8125a473623e45fb8cbb0e4159",
+ "reference": "a8b6643a19ba6c8125a473623e45fb8cbb0e4159",
"shasum": ""
},
"require": {
@@ -5476,7 +5795,7 @@
"support": {
"issues": "https://github.com/sebastianbergmann/version/issues",
"security": "https://github.com/sebastianbergmann/version/security/policy",
- "source": "https://github.com/sebastianbergmann/version/tree/6.0.1"
+ "source": "https://github.com/sebastianbergmann/version/tree/6.0.2"
},
"funding": [
{
@@ -5496,7 +5815,7 @@
"type": "tidelift"
}
],
- "time": "2026-10-04T05:50:08+00:00"
+ "time": "2026-11-09T06:30:55+00:00"
},
{
"name": "sirbrillig/phpcs-variable-analysis",
@@ -7619,22 +7938,22 @@
},
{
"name": "vimeo/psalm",
- "version": "6.20.5",
+ "version": "7.5.0",
"source": {
"type": "git",
"url": "https://github.com/vimeo/psalm.git",
- "reference": "e447b655502f2058630e6ee03f2ea1c3789fe166"
+ "reference": "9520421041c4de67379270dc17502544dd808140"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/vimeo/psalm/zipball/e447b655502f2058630e6ee03f2ea1c3789fe166",
- "reference": "e447b655502f2058630e6ee03f2ea1c3789fe166",
+ "url": "https://api.github.com/repos/vimeo/psalm/zipball/9520421041c4de67379270dc17502544dd808140",
+ "reference": "9520421041c4de67379270dc17502544dd808140",
"shasum": ""
},
"require": {
"amphp/amp": "^3",
"amphp/byte-stream": "^2",
- "amphp/parallel": "^2.3",
+ "amphp/parallel": "^2.4.0",
"composer-runtime-api": "^2",
"composer/semver": "^1.4 || ^2.0 || ^3.0",
"composer/xdebug-handler": "^2.0 || ^3.0",
@@ -7648,10 +7967,15 @@
"ext-simplexml": "*",
"ext-tokenizer": "*",
"felixfbecker/language-server-protocol": "^1.5.3",
- "fidry/cpu-core-counter": "^0.4.1 || ^0.5.1 || ^1.0.0",
+ "fidry/cpu-core-counter": "^1.2",
"netresearch/jsonmapper": "^5.0",
- "nikic/php-parser": "^5.2.0",
- "php": "~8.1.31 || ~8.2.27 || ~8.3.16 || ~8.4.3 || ~8.5.0",
+ "nikic/php-parser": "^5.9",
+ "php-64bit": "~8.2.27 || ~8.3.16 || ~8.4.3 || ~8.5.0 || ~8.6.0",
+ "psalm/plugin-laravel": "^4.17.4",
+ "psalm/plugin-mockery": "^1.3.2",
+ "psalm/plugin-phpunit": "^0.21 || ^0.22 || ^1.0",
+ "psalm/plugin-symfony": "^5.9.1",
+ "psalm/psalm-plugin-api": "0.4.3",
"sebastian/diff": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0",
"spatie/array-to-xml": "^2.17.0 || ^3.0",
"symfony/console": "^6.0 || ^7.0 || ^8.0",
@@ -7662,9 +7986,8 @@
"psalm/psalm": "self.version"
},
"require-dev": {
- "amphp/phpunit-util": "^3",
"bamarni/composer-bin-plugin": "^1.4",
- "brianium/paratest": "^6.9",
+ "brianium/paratest": "^7.3",
"danog/class-finder": "^0.4.8",
"dg/bypass-finals": "^1.5",
"ext-curl": "*",
@@ -7672,16 +7995,15 @@
"nunomaduro/mock-final-classes": "^1.1",
"php-parallel-lint/php-parallel-lint": "^1.2",
"phpstan/phpdoc-parser": "^1.6",
- "phpunit/phpunit": "^9.6",
- "psalm/plugin-mockery": "^1.1",
- "psalm/plugin-phpunit": "^0.19",
+ "phpunit/phpunit": "^10.5 || ^11.5 || ^12.5 || ^13.0",
"slevomat/coding-standard": "^8.4",
"squizlabs/php_codesniffer": "^3.6",
"symfony/process": "^6.0 || ^7.0 || ^8.0"
},
"suggest": {
"ext-curl": "In order to send data to shepherd",
- "ext-igbinary": "^2.0.5 is required, used to serialize caching data"
+ "ext-igbinary": "^2.0.5 is required, used to serialize caching data",
+ "ext-zstd": ">=0.15.0 is required, used to compress caching data"
},
"bin": [
"psalm",
@@ -7733,7 +8055,7 @@
"issues": "https://github.com/vimeo/psalm/issues",
"source": "https://github.com/vimeo/psalm"
},
- "time": "2026-10-31T16:01:17+00:00"
+ "time": "2026-11-14T00:41:11+00:00"
},
{
"name": "webmozart/assert",
diff --git a/enginescript-site-optimizer.php b/enginescript-site-optimizer.php
index 8cf00e2..4dcbe13 100644
--- a/enginescript-site-optimizer.php
+++ b/enginescript-site-optimizer.php
@@ -11,7 +11,6 @@
* Domain Path: /languages
* Requires at least: 7.0
* Requires PHP: 8.3
- * Tested up to: 7.1
*
* @package EngineScript_Site_Optimizer
*/
diff --git a/languages/enginescript-site-optimizer.pot b/languages/enginescript-site-optimizer.pot
index 3581d7f..a731378 100644
--- a/languages/enginescript-site-optimizer.pot
+++ b/languages/enginescript-site-optimizer.pot
@@ -9,7 +9,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"POT-Creation-Date: 2026-10-16T00:12:09+00:00\n"
+"POT-Creation-Date: 2026-11-14T08:44:04+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.12.0\n"
"X-Domain: enginescript-site-optimizer\n"
@@ -206,56 +206,56 @@ msgstr ""
msgid "Settings"
msgstr ""
-#: includes/options.php:157
+#: includes/options.php:159
msgid "The submitted settings have an invalid format. Your previous settings were retained."
msgstr ""
-#: includes/options.php:179
+#: includes/options.php:181
msgid "Enter domains as text. Your previous list was retained."
msgstr ""
-#: includes/options.php:206
+#: includes/options.php:208
msgid "Your previous list was retained."
msgstr ""
#. translators: 1: Line number in the submitted domain list, 2: Validation reason, a complete sentence without submitted text.
-#: includes/options.php:243
+#: includes/options.php:245
#, php-format
msgid "Line %1$d: %2$s"
msgstr ""
#. translators: %d: Maximum raw bytes allowed in one domain list.
-#: includes/options.php:271
+#: includes/options.php:273
#, php-format
msgid "Each domain list is limited to %d bytes."
msgstr ""
-#: includes/options.php:279
+#: includes/options.php:281
msgid "The domain list could not be read."
msgstr ""
#. translators: %d: Maximum raw bytes allowed in a nonblank domain line.
-#: includes/options.php:294
+#: includes/options.php:296
#, php-format
msgid "Each nonblank domain line is limited to %d bytes."
msgstr ""
#. translators: %d: Maximum nonblank lines allowed before removing duplicates or invalid domains.
-#: includes/options.php:304
+#: includes/options.php:306
#, php-format
msgid "Each domain list is limited to %d nonblank lines, including duplicates and invalid entries."
msgstr ""
-#: includes/options.php:326
+#: includes/options.php:328
msgid "Preconnect supports HTTPS port 443 only."
msgstr ""
-#: includes/options.php:346
+#: includes/options.php:348
msgid "Further rejected lines are not listed."
msgstr ""
#. translators: 1: Total number of rejected lines, 2: At most three reasons with their line numbers, each a complete sentence.
-#: includes/options.php:352
+#: includes/options.php:354
#, php-format
msgid "%1$d line was rejected. %2$s"
msgid_plural "%1$d lines were rejected. %2$s"
@@ -263,13 +263,13 @@ msgstr[0] ""
msgstr[1] ""
#. translators: %s: Safe validation reasons and line numbers, without submitted domains.
-#: includes/options.php:363
+#: includes/options.php:365
#, php-format
msgid "The preconnect list could not be fully accepted: %s"
msgstr ""
#. translators: %s: Safe validation reasons and line numbers, without submitted domains.
-#: includes/options.php:375
+#: includes/options.php:377
#, php-format
msgid "The DNS prefetch list could not be fully accepted: %s"
msgstr ""
@@ -315,81 +315,81 @@ msgstr ""
msgid "Invalid domain name."
msgstr ""
-#: uninstall.php:51
+#: uninstall.php:66
msgid "Site Optimizer settings could not be fully removed. The plugin files were retained. Pause site and settings changes, then retry removal."
msgstr ""
#. translators: %s: Why the settings could not be removed.
-#: uninstall.php:60
+#: uninstall.php:75
#, php-format
msgid "Reason: %s"
msgstr ""
-#: uninstall.php:75
-#: uninstall.php:81
-#: uninstall.php:160
+#: uninstall.php:90
+#: uninstall.php:96
+#: uninstall.php:175
msgid "The list of network sites returned an invalid site ID."
msgstr ""
-#: uninstall.php:98
-#: uninstall.php:130
-#: uninstall.php:181
-#: uninstall.php:460
+#: uninstall.php:113
+#: uninstall.php:145
+#: uninstall.php:195
+#: uninstall.php:465
msgid "The WordPress database object is unavailable."
msgstr ""
-#: uninstall.php:110
-#: uninstall.php:144
-#: uninstall.php:151
+#: uninstall.php:125
+#: uninstall.php:159
+#: uninstall.php:166
msgid "The list of network sites could not be read."
msgstr ""
#. translators: %d: Site ID.
-#: uninstall.php:191
+#: uninstall.php:205
#, php-format
msgid "The current site changed while the settings of site %d were being deleted."
msgstr ""
#. translators: %d: Site ID.
-#: uninstall.php:208
+#: uninstall.php:221
#, php-format
msgid "The settings of site %d could not be verified as removed."
msgstr ""
#. translators: %d: Site ID.
-#: uninstall.php:219
+#: uninstall.php:231
#, php-format
msgid "The settings of site %d are still stored after deletion."
msgstr ""
-#: uninstall.php:245
+#: uninstall.php:256
msgid "The site-switch state could not be read."
msgstr ""
-#: uninstall.php:281
-#: uninstall.php:287
-#: uninstall.php:294
+#: uninstall.php:291
+#: uninstall.php:297
+#: uninstall.php:304
msgid "WordPress could not switch back to the original site."
msgstr ""
#. translators: %d: Site ID.
-#: uninstall.php:324
+#: uninstall.php:333
#, php-format
msgid "WordPress could not switch to site %d."
msgstr ""
#. translators: 1: Number of sites, 2: Comma-separated site IDs.
-#: uninstall.php:377
+#: uninstall.php:385
#, php-format
msgid "Settings could not be removed from %1$d site. Site ID: %2$s."
msgid_plural "Settings could not be removed from %1$d sites. Site IDs, at most the first 20: %2$s."
msgstr[0] ""
msgstr[1] ""
-#: uninstall.php:437
+#: uninstall.php:444
msgid "A site was created during removal."
msgstr ""
-#: uninstall.php:485
+#: uninstall.php:490
msgid "Site Optimizer removal failed"
msgstr ""
diff --git a/psalm.xml b/psalm.xml
index 72eca40..09bb992 100644
--- a/psalm.xml
+++ b/psalm.xml
@@ -15,6 +15,16 @@
-
+
+
+
+
+
+
+
+
+
diff --git a/readme.txt b/readme.txt
index c270163..a9c520d 100644
--- a/readme.txt
+++ b/readme.txt
@@ -80,6 +80,7 @@ No. The option removes WordPress's generator output from the page head and from
* Read on/off settings the way WordPress reads booleans: a stored or submitted string `false` now means off.
* Reject the special-use names `alt` and `onion` in domain lists.
* Raise the minimum WordPress version to 7.0, the version Jetpack requires, and the minimum PHP version to 8.3 (PHP 8.2 reaches end of life on December 31, 2026).
+* Declare "Tested up to" only in `readme.txt`, not in the plugin header, as Plugin Check requires
* Use one term, "domain", for an entry of the Preconnect and DNS Prefetch lists in the settings, the rejection reasons, and the documentation. The reasons now read "Invalid domain entry.", "No domain name found.", "Invalid domain name.", and "IP addresses and private, local, or reserved domain names are not allowed."
* Let `es_optimizer_normalize_stored_options()` accept a stored value that is not an array and treat it as empty, instead of failing with a type error.
* Mark only the `fonts.gstatic.com` preconnect hint with `crossorigin`. The hint for `fonts.googleapis.com` no longer carries it, so the stylesheet request can use the connection.
diff --git a/stubs/psalm-wordpress-constants.php b/stubs/psalm-wordpress-constants.php
deleted file mode 100644
index e0d5b8b..0000000
--- a/stubs/psalm-wordpress-constants.php
+++ /dev/null
@@ -1,8 +0,0 @@
-