Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.40MB] [CPU: ▲16.90ms] 75% from 4 tests
A check of server-side resources used by Autoptimize
Please fix the following
- CPU: Total CPU usage should be kept under 500.00ms (currently 705.82ms on /wp-admin/options-general.php?page=autoptimize)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.67 ▲1.20 | 61.96 ▲20.66 |
Dashboard /wp-admin | 4.81 ▲1.46 | 70.64 ▲9.42 |
Posts /wp-admin/edit.php | 4.86 ▲1.50 | 76.82 ▲30.12 |
Add New Post /wp-admin/post-new.php | 7.36 ▲1.46 | 105.06 ▲7.41 |
Media Library /wp-admin/upload.php | 4.69 ▲1.46 | 65.47 ▲31.94 |
autoptimize_extra /wp-admin/admin.php?page=autoptimize_extra | 4.66 | 57.32 |
Autoptimize /wp-admin/options-general.php?page=autoptimize | 6.03 | 705.82 |
AO pro /wp-admin/admin.php?page=ao_protab | 4.70 | 224.02 |
AO partner /wp-admin/admin.php?page=ao_partners | 5.78 | 408.59 |
autoptimize_imgopt /wp-admin/admin.php?page=autoptimize_imgopt | 4.66 | 56.99 |
Critical CSS /wp-admin/admin.php?page=ao_critcss | 5.10 | 204.88 |
Server storage [IO: ▲0.88MB] [DB: ▲0.09MB] 67% from 3 tests
Input-output and database impact of this plugin
It is recommended to fix the following issues
- There were 21 files (183.01KB) illegally modified outside of "wp-content/plugins/autoptimize/" and "wp-content/uploads/"
- (new file) wp-content/autoptimize_404_handler.php
- (new file) wp-content/cache/autoptimize/autoptimize_single_75d7822d25873fd727beecf0744affa4.php.deflate
- (new file) wp-content/cache/autoptimize/autoptimize_single_75d7822d25873fd727beecf0744affa4.php
- (new file) wp-content/cache/autoptimize/autoptimize_single_005c2eb210a376d583ea312a6c0756f0.php.none
- (new file) wp-content/cache/autoptimize/.htaccess
- (new file) wp-content/cache/autoptimize/autoptimize_d41d8cd98f00b204e9800998ecf8427e.php
- (new file) wp-content/cache/autoptimize/autoptimize_single_005c2eb210a376d583ea312a6c0756f0.php.deflate
- (new file) wp-content/cache/autoptimize/autoptimize_single_005c2eb210a376d583ea312a6c0756f0.php
- (new file) wp-content/cache/autoptimize/autoptimize_single_005c2eb210a376d583ea312a6c0756f0.php.gzip
- (new file) wp-content/cache/autoptimize/autoptimize_d41d8cd98f00b204e9800998ecf8427e.php.none
- ...
Filesystem: 80 new files
Database: no new tables, 10 new options
New WordPress options |
---|
db_upgraded |
autoptimize_imgopt_launched |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
autoptimize_version |
autoptimize_service_availablity |
can_compress_scripts |
widget_recent-posts |
autoptimize_ccss_version |
Browser metrics Passed 4 tests
A check of browser resources used by Autoptimize
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,005 ▲243 | 13.44 ▼0.91 | 9.05 ▲7.49 | 38.66 ▼4.98 |
Dashboard /wp-admin | 2,258 ▲81 | 5.65 ▲0.02 | 98.61 ▲10.00 | 41.13 ▲3.33 |
Posts /wp-admin/edit.php | 2,160 ▲60 | 2.20 ▲0.18 | 40.87 ▲7.40 | 36.39 ▲1.91 |
Add New Post /wp-admin/post-new.php | 6,340 ▲4,814 | 26.29 ▲3.22 | 909.02 ▲296.60 | 67.26 ▲10.86 |
Media Library /wp-admin/upload.php | 1,457 ▲60 | 4.27 ▲0.07 | 100.54 ▲1.31 | 46.58 ▲4.23 |
autoptimize_extra /wp-admin/admin.php?page=autoptimize_extra | 1,086 | 2.24 | 28.69 | 52.72 |
Autoptimize /wp-admin/options-general.php?page=autoptimize | 1,590 | 2.36 | 52.74 | 44.24 |
AO pro /wp-admin/admin.php?page=ao_protab | 1,129 | 2.23 | 27.70 | 59.84 |
AO partner /wp-admin/admin.php?page=ao_partners | 1,045 | 2.25 | 27.95 | 37.96 |
autoptimize_imgopt /wp-admin/admin.php?page=autoptimize_imgopt | 1,100 | 2.24 | 30.41 | 43.96 |
Critical CSS /wp-admin/admin.php?page=ao_critcss | 1,871 | 2.29 | 31.42 | 57.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.09MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined variable: ao_ccss_debug in wp-content/plugins/autoptimize/classes/critcss-inc/admin_settings_rules.js.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/autoptimize/classes/critcss-inc/admin_settings_impexp.js.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/autoptimize/classes/critcss-inc/admin_settings_queue.js.php:76
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/autoptimize/classes/critcss-inc/admin_settings_rules.js.php:43
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/autoptimize/classes/critcss-inc/admin_settings_debug.php:10
- > PHP Notice
Undefined variable: ao_ccss_debug in wp-content/plugins/autoptimize/classes/critcss-inc/admin_settings_queue.js.php on line 23
- > PHP Notice
Undefined variable: ao_ccss_debug in wp-content/plugins/autoptimize/classes/critcss-inc/admin_settings_rules.js.php on line 26
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: core web vitals, pagespeed, minify, optimize, performance...
autoptimize/autoptimize.php Passed 13 tests
The main PHP file in "Autoptimize" ver. 3.1.10 adds more information about the plugin and also serves as the entry point for this plugin
76 characters long description:
Makes your site faster by optimizing CSS, JS, Images, Google fonts and more.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin12,876 lines of code in 67 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 46 | 1,978 | 3,886 | 11,859 |
CSS | 7 | 71 | 22 | 692 |
JavaScript | 11 | 44 | 73 | 237 |
Markdown | 1 | 31 | 0 | 86 |
HTML | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 61.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 307.00 |
Average method complexity | 5.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 37 | |
▷ Abstract classes | 1 | 2.70% |
▷ Concrete classes | 36 | 97.30% |
▷ Final classes | 0 | 0.00% |
Methods | 460 | |
▷ Static methods | 123 | 26.74% |
▷ Public methods | 356 | 77.39% |
▷ Protected methods | 53 | 11.52% |
▷ Private methods | 51 | 11.09% |
Functions | 24 | |
▷ Named functions | 10 | 41.67% |
▷ Anonymous functions | 14 | 58.33% |
Constants | 48 | |
▷ Global constants | 32 | 66.67% |
▷ Class constants | 16 | 33.33% |
▷ Public constants | 16 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
classes/external/do_not_donate_smallest.png | 9.36KB | 3.91KB | ▼ 58.24% |