-
v3.1.5 Stable
released this
2026-11-03 17:01:05 +00:00 | 7 commits to main since this release3.1.5
Release date: 2026-09-18
Highlights
- Maintenance review: composer update, code review, security review and compatibility review (WordPress 4.7 - 7.2, PHP 5.6 - 8.5). Declared WordPress floor corrected to the real tested minimum (4.7). Test suite expanded to 147 tests with 94.78% line coverage, meeting the 80% AGENTS target.
Added
- 76 new PHPUnit tests: front-end output (
noindex_seo_metarobots, all majornoindex_seo_showcontexts, overrides, CPT defaults, transient shortcut), admin surface (settings page, meta boxes, Quick Edit, bulk actions, columns, filters, enqueues, conflict detection, helpers), sitemap per-term exclusion, and uninstall cleanup.
Changed
- Minimum WordPress requirement raised from 4.0 to 4.7 in the plugin header,
readme.txtandphpcs.xml(minimum_supported_wp_version). Version 4.7 is the oldest release in the tested range and the first with the complete REST API, so every advertised feature (including the/wp-json/noindex-seo/v1/endpoints) is available on all supported versions. Newer-API integrations keep degrading gracefully above the floor (wp_robots5.7+, sitemaps 5.5+, block editor 5.0+,register_post_meta, term meta). - Tested up to WordPress 7.2 in
readme.txt. - Removed three now-obsolete
WPCompatPHPStan ignores (rest_api_initaction,WP_REST_Request::get_param()× 2): with the 4.7 floor those APIs always exist, and PHPStan reports unmatched ignores as errors. - Dev dependencies updated via
composer update(phpstan/phpstan2.2.8 → 2.2.14,nikic/php-parser5.8.0 → 5.9.0,php-stubs/wordpress-stubs6.9.4 → 7.1.0,szepeviktor/phpstan-wordpress2.0.3 → 2.0.4,wp-hooks/wordpress-core1.12.0 → 1.13.0). No production code ships these packages. - Coverage regression floor in
bin/preflight.shraised from 25% to 80% now that the suite meets the AGENTS target.
Fixed
- Dead nonce check in
noindex_seo_process_form()andnoindex_seo_process_apply_suggestions():! check_admin_referer()with a specific action can never be true (the function exits on failure instead of returning false), so the||branch was dead code flagged by PHPStan level 9 with the updated WordPress stubs. Both handlers now checkcurrent_user_can( 'manage_options' )first and callcheck_admin_referer()separately, which dies on an invalid nonce. No behavior change for valid requests.
Security
- Full canonical checklist (
AGENTS-security.md) reviewed against the release diff: no findings. Input validation (safelist + strict types), sanitization (sanitize_text_field,absint,sanitize_key), late output escaping, nonces on every state-changing action, capability checks in UI and execution logic,$wpdb->prepare()on all custom SQL, no dangerous functions, RESTpermission_callbacks intact, no secrets in code.composer auditclean. - The nonce-handler fix above is hardening only: the previous code was still safe in practice because
check_admin_referer()dies on failure.
Compatibility
- WordPress: 4.7 - 7.2
- PHP: 5.6 - 8.5
Tests
- PHP Coding Standards: 3.13.6
- WordPress Coding Standards: 3.4.1
- PHPUnit: 9.6.36 (147 tests, 569 assertions — all passing on WordPress 7.1.1 test library; staging site runs WordPress 7.2-alpha, PHP 8.5.10, MariaDB 11.8.9)
- PHPCompatibility 5.6-8.5 scan: clean (declared PHP floor 5.6 confirmed)
- PHPStan level 9: clean;
bin/preflight.sh: full PASS (coverage 94.78%, above the 80% AGENTS target and floor)
Downloads