Autoptimize

Slug: autoptimize · Optimizing Matters · 900,000+

Actively maintained

Overall Score

Good overall quality

87
Good

What this score means

Scores are calculated on a 100-point scale by analysing six weighted categories: Security, WP.org Readiness, Performance, Code Quality, Accessibility, and Vulnerabilities. Open vulnerabilities are weighted by severity, CVSS, and patch availability, and incomplete source data can reduce confidence slightly.

  • Excellent The plugin follows best practices across every measured category. It is well-maintained, low-risk, and recommended for production use.
  • Good Strong overall quality with minor areas for improvement. Generally safe to use on most sites.
  • Needs Review Some areas of concern detected. Review the full issues report and weigh the risks before installing on production.
  • High Risk Significant quality or security problems found. Exercise caution — check the details carefully before using this plugin.
Score computed: May 22, 2026 10:16 pm (1 month ago). Vulnerability data mode: Live.
High confidence (100/100) based on metadata completeness and vulnerability evidence quality.
Open vulnerabilities are weighted by severity, CVSS, and patch availability, then adjusted slightly when the source data is incomplete.
  • Wordfence: June 28, 2026 6:47 pm (25 minutes ago)

No known open vulnerabilities found.

AI-Generated Summary

Autoptimize currently scores 87/100 (good). Latest scan findings include 0 errors and 13 warnings.

Strengths

  • Overall score is in a strong range for production use.
  • No open vulnerabilities are currently recorded in tracked sources.

Risks

  • Tested-up-to metadata is behind the current WordPress version.

Recommended Next Actions

  • Address warning-level findings to improve maintainability and reduce future risk.
  • Validate compatibility against the latest WordPress core and refresh tested-up-to metadata.

Generated from latest scan and metadata signals. Validate in staging before production changes.

Score Breakdown

Shield
Security
60
Needs Review
Why this score?

Top deductions are based on 1 affected rules, reducing this category by 40 total points.

Rule Hits Impact Share
Security issue: Warning 10 -40 100%
W
WP.org Readiness
96
Excellent
Why this score?

Top deductions are based on 2 affected rules, reducing this category by 4 total points.

Rule Hits Impact Share
Tested up to version is behind current WordPress 1 -3 75%
Repo issue: Notice 1 -1 25%
Speed
Performance
100
Excellent
Why this score?

Top deductions are based on 0 affected rules, reducing this category by 0 total points.

No deductions were applied for this category in the latest score run.

Code
Code Quality
99
Excellent
Why this score?

Top deductions are based on 1 affected rules, reducing this category by 1 total points.

Rule Hits Impact Share
Code Quality issue: Notice 1 -1 100%
A11y
Accessibility
94
Excellent
Why this score?

Top deductions are based on 1 affected rules, reducing this category by 6 total points.

Rule Hits Impact Share
Accessibility issue: Warning 3 -6 100%
Bug
Vulnerability Status
100
Excellent
Why this score?

Top deductions are based on 0 affected rules, reducing this category by 0 total points.

No deductions were applied for this category in the latest score run.

Plugin Details

  • Version: 3.1.15.1
  • Active Installs: 900,000+
  • Last Updated: 2026-04-04 07:44:00
  • Tested up to: 6.9.4
  • Requires PHP: 7.1
  • Rating: 4.7/5 (1,425 ratings)
  • Support: 7/14 resolved (50%)
  • View on WordPress.org
  • Download Plugin

Scan Summary

  • Errors: 0
  • Warnings: 13
  • Notices: 2
  • Last Scanned: 2026-05-22 21:16:43
  • Score confidence: 100/100
Scans are performed automatically once per day, and the report will note when source data is stale or incomplete.

What Changed Since Last Scan

Comparing latest scan (2026-05-22 21:16:43) to previous scan (2026-05-21 15:52:18).
New: 0 Resolved: 0 Worsened: 0

New Issues

No items in this category.

Resolved Issues

No items in this category.

Worsened Issues

No items in this category.

Detected Issues

Severity Category Message File Fix Guidance
WARNING SECURITY Declared minimum PHP 7.1 is end-of-life and no longer receives security updates.
Quick Increase minimum PHP version to a currently supported branch.
Moderate Audit dependencies and code for compatibility with modern PHP runtime behavior.
Advanced Track upstream PHP lifecycle changes and schedule proactive baseline upgrades.
NOTICE REPO Main plugin file does not declare a Domain Path header. autoptimize.php
Quick Add a Domain Path header if language files are stored in a languages directory.
Moderate Apply the same remediation pattern across repo findings and re-scan to confirm notice issues drop.
Advanced Add automated linting, CI checks, and team review guidance so this issue class is prevented in future releases.
WARNING SECURITY Raw superglobal access detected. autoptimize.php
Quick Wrap direct request values with sanitization and nonce verification in the affected code path.
Moderate Centralize request normalization in helper methods so handlers consume validated input only.
Advanced Adopt typed request DTOs and automated security lint checks for unsanitized superglobal access.
WARNING SECURITY Use of base64_decode() detected. classes/autoptimizeBase.php
Quick Ensure any encoded payloads are necessary, documented, and never used to obscure executable logic.
Moderate Apply the same remediation pattern across security findings and re-scan to confirm warning issues drop.
Advanced Add automated linting, CI checks, and team review guidance so this issue class is prevented in future releases.
WARNING SECURITY Raw superglobal access detected. classes/autoptimizeMain.php
Quick Wrap direct request values with sanitization and nonce verification in the affected code path.
Moderate Centralize request normalization in helper methods so handlers consume validated input only.
Advanced Adopt typed request DTOs and automated security lint checks for unsanitized superglobal access.
NOTICE CODE_QUALITY Short PHP opening tags or inline template tags may reduce compatibility across environments. classes/autoptimizeMain.php
Quick Prefer full <?php opening tags for maximum portability.
Moderate Apply the same remediation pattern across code quality findings and re-scan to confirm notice issues drop.
Advanced Add automated linting, CI checks, and team review guidance so this issue class is prevented in future releases.
WARNING SECURITY Raw superglobal access detected. classes/autoptimizeOptionWrapper.php
Quick Wrap direct request values with sanitization and nonce verification in the affected code path.
Moderate Centralize request normalization in helper methods so handlers consume validated input only.
Advanced Adopt typed request DTOs and automated security lint checks for unsanitized superglobal access.
WARNING ACCESSIBILITY Image markup without an alt attribute detected. classes/autoptimizePartners.php
Quick Add alt attributes to the flagged image tags, or alt="" for decorative images.
Moderate Audit all templates/components for missing alternative text and update content guidelines.
Advanced Integrate accessibility testing in CI (axe/pa11y) and block releases with critical a11y violations.
WARNING SECURITY Raw superglobal access detected. classes/autoptimizeConfig.php
Quick Wrap direct request values with sanitization and nonce verification in the affected code path.
Moderate Centralize request normalization in helper methods so handlers consume validated input only.
Advanced Adopt typed request DTOs and automated security lint checks for unsanitized superglobal access.
WARNING ACCESSIBILITY Image markup without an alt attribute detected. classes/autoptimizeConfig.php
Quick Add alt attributes to the flagged image tags, or alt="" for decorative images.
Moderate Audit all templates/components for missing alternative text and update content guidelines.
Advanced Integrate accessibility testing in CI (axe/pa11y) and block releases with critical a11y violations.
WARNING SECURITY Raw superglobal access detected. classes/autoptimizeCriticalCSSSettingsAjax.php
Quick Wrap direct request values with sanitization and nonce verification in the affected code path.
Moderate Centralize request normalization in helper methods so handlers consume validated input only.
Advanced Adopt typed request DTOs and automated security lint checks for unsanitized superglobal access.
WARNING SECURITY Raw superglobal access detected. classes/autoptimizeImages.php
Quick Wrap direct request values with sanitization and nonce verification in the affected code path.
Moderate Centralize request normalization in helper methods so handlers consume validated input only.
Advanced Adopt typed request DTOs and automated security lint checks for unsanitized superglobal access.
WARNING ACCESSIBILITY Image markup without an alt attribute detected. classes/autoptimizeImages.php
Quick Add alt attributes to the flagged image tags, or alt="" for decorative images.
Moderate Audit all templates/components for missing alternative text and update content guidelines.
Advanced Integrate accessibility testing in CI (axe/pa11y) and block releases with critical a11y violations.
WARNING SECURITY Raw superglobal access detected. classes/autoptimizeMetabox.php
Quick Wrap direct request values with sanitization and nonce verification in the affected code path.
Moderate Centralize request normalization in helper methods so handlers consume validated input only.
Advanced Adopt typed request DTOs and automated security lint checks for unsanitized superglobal access.
WARNING SECURITY Direct database query detected without an immediately visible $wpdb->prepare() wrapper. classes/critcss-inc/admin_settings_debug.php
Quick Wrap dynamic SQL arguments with $wpdb->prepare() in the flagged query.
Moderate Refactor repeated SQL into repository/helper methods that enforce prepared statements by default.
Advanced Add integration tests and static checks that fail builds when direct dynamic SQL is introduced.

Score History

No history available yet. · All-Time High: N/A

All Past Vulnerabilities

Showing all known historical vulnerabilities for this plugin, including open and closed records.

Vulnerability CVE Severity Status Affected Versions Patched Version Updated Source
Autoptimize <= 3.1.0 - Authenticated (Admin+) Stored Cross-Site Scripting via Critical CSS Settings N/A LOW Closed *-3.1.0 3.1.1 2022-07-19 00:00:00 Wordfence
Autoptimize <= 2.7.7 - Race Condition leading to Remote Code Execution N/A LOW Closed [*, 2.7.8) 2.7.8 2020-10-09 00:00:00 Wordfence
Autoptimize <= 3.1.14 - Authenticated (Contributor+) Stored Cross-Site Scripting via Lazy-loaded Image Attributes N/A LOW Closed *-3.1.14 3.1.15 2026-03-20 00:00:00 Wordfence
Autoptimize <= 3.1.6 - Authenticated (Admin+) Stored Cross-Site Scripting via Critical CSS Rules N/A LOW Closed *-3.1.6 3.1.7 2023-04-25 00:00:00 Wordfence
Autoptimize <= 2.7.7 - Unsafe File Upload to Cross-Site Scripting N/A LOW Closed [*, 2.7.8) 2.7.8 2020-10-09 00:00:00 Wordfence
Autoptimize <= 2.8.3 - Stored Cross-Site Scripting N/A LOW Closed [*, 2.8.4) 2.8.4 2021-05-07 00:00:00 Wordfence
Autoptimize <= 3.1.13 - Authenticated (Contributor+) Stored Cross-Site Scripting N/A LOW Closed *-3.1.13 3.1.14 2025-12-03 00:32:37 Wordfence
Autoptimize <= 2.7.7 - Arbitrary File Upload (and Remote Code Execution) via Import Settings N/A LOW Closed [*, 2.7.8) 2.7.8 2020-10-09 00:00:00 Wordfence
Autoptimize <= 3.0.4 - Sensitive Information Disclosure N/A LOW Closed *-3.0.4 3.1.0 2022-12-05 00:00:00 Wordfence
Autoptimize <= 3.1.14 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'ao_post_preload' Meta Value N/A LOW Closed *-3.1.14 3.1.15 2026-03-20 00:00:00 Wordfence
Autoptimize <= 2.1.0 - Unauthenticated Local File Inclusion N/A LOW Closed *-2.1.0 2.1.1 2017-06-19 00:00:00 Wordfence
Autoptimize <= 2.7.6 - Authenticated Arbitrary File Upload N/A LOW Closed *-2.7.6 2.7.7 2020-08-24 00:00:00 Wordfence