• 3.1.5 a50d125883

    v3.1.5 Stable

    javier released this 2026-11-03 17:01:05 +00:00 | 7 commits to main since this release

    3.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 major noindex_seo_show contexts, 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.txt and phpcs.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_robots 5.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 WPCompat PHPStan ignores (rest_api_init action, 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/phpstan 2.2.8 → 2.2.14, nikic/php-parser 5.8.0 → 5.9.0, php-stubs/wordpress-stubs 6.9.4 → 7.1.0, szepeviktor/phpstan-wordpress 2.0.3 → 2.0.4, wp-hooks/wordpress-core 1.12.0 → 1.13.0). No production code ships these packages.
    • Coverage regression floor in bin/preflight.sh raised from 25% to 80% now that the suite meets the AGENTS target.

    Fixed

    • Dead nonce check in noindex_seo_process_form() and noindex_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 check current_user_can( 'manage_options' ) first and call check_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, REST permission_callbacks intact, no secrets in code. composer audit clean.
    • 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