Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.31MB] [CPU: ▼308.54ms] Passed 4 tests
Analyzing server-side resources used by Autoptimize criticalcss.com power-up
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.21 | 77.02 ▲21.98 |
Dashboard /wp-admin | 3.80 ▲0.39 | 41.52 ▼0.47 |
Posts /wp-admin/edit.php | 4.02 ▲0.38 | 49.24 ▲2.73 |
Add New Post /wp-admin/post-new.php | 7.26 ▲0.29 | 104.31 ▼1,238.39 |
Media Library /wp-admin/upload.php | 3.67 ▲0.38 | 32.74 ▲1.97 |
Autoptimize CriticalCSS Power-Up /wp-admin/admin.php?page=ao_ccss_settings | 3.62 | 35.55 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 3 new options
New WordPress options |
---|
autoptimize_ccss_version |
recovery_mode_email_last_sent |
autoptimize_ccss_servicestatus |
Browser metrics Passed 4 tests
A check of browser resources used by Autoptimize criticalcss.com power-up
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,806 ▲64 | 15.91 ▲0.62 | 6.10 ▲0.04 | 2.51 ▲0.39 |
Dashboard /wp-admin | 2,900 ▲42 | 6.19 ▼0.01 | 120.68 ▼10.61 | 163.73 ▼5.56 |
Posts /wp-admin/edit.php | 2,697 ▲3 | 3.23 ▼0.01 | 66.32 ▲0.64 | 143.89 ▲1.69 |
Add New Post /wp-admin/post-new.php | 1,668 ▲7 | 16.35 ▼5.88 | 404.57 ▼6.15 | 195.39 ▲50.35 |
Media Library /wp-admin/upload.php | 1,709 ▲8 | 5.47 ▼0.04 | 138.69 ▼4.07 | 186.45 ▲1.25 |
Autoptimize CriticalCSS Power-Up /wp-admin/admin.php?page=ao_ccss_settings | 858 | 1.97 | 38.45 | 86.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Warning in wp-includes/class-wp-hook.php+307
call_user_func_array() expects parameter 1 to be a valid callback, class 'autoptimizeCriticalCSS' does not have a method 'on_uninstall'
- Zombie WordPress options detected upon uninstall: 3 options
- autoptimize_ccss_servicestatus
- autoptimize_ccss_version
- recovery_mode_email_last_sent
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=ao_ccss_settings
- > Error in wp-content/plugins/autoptimize-criticalcss/critcss-inc/admin_settings.php+37
Uncaught Error: Class 'autoptimizeConfig' not found in wp-content/plugins/autoptimize-criticalcss/critcss-inc/admin_settings.php:37
Stack trace:
#0 wp-includes/class-wp-hook.php(307): ao_ccss_settings()
#1 wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(474): WP_Hook->do_action()
#3 wp-admin/admin.php(259): do_action()
#4 {main}
thrown
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 fix the following
- 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/autoptimize-criticalcss/critcss-inc/core_ajax.php:43
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/autoptimize-criticalcss/critcss-inc/admin_settings_debug.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/autoptimize-criticalcss/critcss-inc/admin_settings_queue.js.php:54
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/autoptimize-criticalcss/critcss-inc/admin_settings_impexp.js.php:6
- > PHP Notice
Undefined variable: ao_ccss_debug in wp-content/plugins/autoptimize-criticalcss/critcss-inc/admin_settings_queue.js.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/autoptimize-criticalcss/critcss-inc/admin_settings_feeds.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/autoptimize-criticalcss/critcss-inc/admin_settings_rules.js.php:31
- > PHP Notice
Undefined variable: ao_ccss_debug in wp-content/plugins/autoptimize-criticalcss/critcss-inc/admin_settings_rules.js.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/autoptimize-criticalcss/critcss-inc/cron.php:6
- > PHP Notice
Undefined variable: ao_ccss_debug in wp-content/plugins/autoptimize-criticalcss/critcss-inc/admin_settings_rules.js.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: A description for screenshot #1 is missing in autoptimize-criticalcss/assets to your readme.txt
autoptimize-criticalcss/ao_criticss_aas.php 85% from 13 tests
The primary PHP file in "Autoptimize criticalcss.com power-up" version 1.18.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("autoptimize-criticalcss.php" instead of "ao_criticss_aas.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin3,225 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 554 | 641 | 2,815 |
CSS | 2 | 1 | 3 | 289 |
Markdown | 1 | 31 | 0 | 86 |
JavaScript | 4 | 9 | 6 | 35 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 7 | 36.84% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 38 | |
▷ Named functions | 38 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin