Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲1.24MB] [CPU: ▲9.76ms] Passed 4 tests
An overview of server-side resources used by A2 Optimized WP - Turbocharge and secure your WordPress site
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.54 ▲1.07 | 49.82 ▲8.14 |
Dashboard /wp-admin | 4.64 ▲1.34 | 55.06 ▲4.43 |
Posts /wp-admin/edit.php | 4.69 ▲1.34 | 61.03 ▲11.35 |
Add New Post /wp-admin/post-new.php | 7.16 ▲1.27 | 102.82 ▲22.38 |
Media Library /wp-admin/upload.php | 4.50 ▲1.27 | 48.10 ▲15.11 |
Optimization /wp-admin/admin.php?page=a2-optimized&a2_page=optimizations | 4.78 | 64.33 |
Page Load Speed Score /wp-admin/admin.php?page=a2-optimized | 4.77 | 53.86 |
Website and Server Performance /wp-admin/admin.php?page=a2-optimized&a2_page=server_performance | 4.77 | 51.29 |
Server storage [IO: ▲1.80MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
- You have illegally modified 2 files (0.66KB) outside of "wp-content/plugins/a2-optimized-wp/" and "wp-content/uploads/"
- (new file) wp-content/settings/a2opt-cache/.htaccess
- (new file) wp-content/settings/a2opt-cache/wp.com.php
Filesystem: 86 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
a2_litespeed_lock |
widget_theysaidso_widget |
a2opt-cache |
a2_db_optimizations |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for A2 Optimized WP - Turbocharge and secure your WordPress site
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲73 | 14.32 ▼0.39 | 1.79 ▲0.01 | 41.13 ▼2.43 |
Dashboard /wp-admin | 2,243 ▲65 | 5.72 ▲0.03 | 95.41 ▼17.57 | 41.20 ▼1.04 |
Posts /wp-admin/edit.php | 2,145 ▲45 | 1.98 ▼0.14 | 40.03 ▼0.06 | 36.53 ▲1.34 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 23.33 ▼0.08 | 681.23 ▲78.00 | 57.49 ▲7.46 |
Media Library /wp-admin/upload.php | 1,445 ▲48 | 4.21 ▲0.00 | 98.13 ▼1.13 | 42.14 ▼2.32 |
Optimization /wp-admin/admin.php?page=a2-optimized&a2_page=optimizations | 1,603 | 3.77 | 76.87 | 104.50 |
Page Load Speed Score /wp-admin/admin.php?page=a2-optimized | 1,603 | 3.75 | 74.45 | 47.01 |
Website and Server Performance /wp-admin/admin.php?page=a2-optimized&a2_page=server_performance | 1,605 | 3.86 | 70.44 | 49.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/a2-optimized-wp/core/A2_Optimized_CacheDisk.php+981
rmdir(wp-content/settings/a2opt-cache): Directory not empty
- Zombie WordPress options were found after uninstall: 9 options
- widget_recent-comments
- a2_litespeed_lock
- widget_recent-posts
- theysaidso_admin_options
- a2opt-cache
- a2_db_optimizations
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/a2-optimized-wp/app/templates/admin/errors/requirements-error.php
- 20× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Trait 'A2_Optimized\\Core\\Registry\\Base_Registry' not found in wp-content/plugins/a2-optimized-wp/core/registry/class-model.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'A2_Optimized\\Core\\Model' not found in wp-content/plugins/a2-optimized-wp/app/models/class-settings.php:15
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/a2-optimized-wp/app/templates/admin/page-settings/page-settings.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/a2-optimized-wp/app/templates/admin/page-settings/page-settings.php:4
- > PHP Fatal error
Uncaught Error: Class 'A2_Optimized\\App\\Controllers\\Admin\\Base_Controller' not found in wp-content/plugins/a2-optimized-wp/app/controllers/admin/class-admin-settings.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/a2-optimized-wp/app/templates/admin/page-settings/page-settings-fields.php:1
- > PHP Notice
Undefined variable: data in wp-content/plugins/a2-optimized-wp/app/templates/admin/page-settings/page-settings.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'A2_Optimized\\App\\Models\\Admin\\Base_Model' not found in wp-content/plugins/a2-optimized-wp/app/models/admin/class-admin-settings.php:17
- > PHP Fatal error
Uncaught Error: Class 'A2_Optimized\\Core\\Controller' not found in wp-content/plugins/a2-optimized-wp/app/controllers/admin/class-base-controller.php:15
- > PHP Notice
Undefined variable: errors in wp-content/plugins/a2-optimized-wp/app/templates/admin/errors/requirements-error.php on line 6
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
a2-optimized-wp/a2-optimized.php 85% from 13 tests
This is the main PHP file of "A2 Optimized WP - Turbocharge and secure your WordPress site" version 3.0.7.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("a2-optimized-wp.php" instead of "a2-optimized.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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected27,978 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 605 | 2,179 | 12,045 |
PHP | 44 | 1,770 | 2,868 | 8,499 |
CSS | 6 | 3 | 53 | 5,714 |
Sass | 1 | 213 | 2 | 1,027 |
JSON | 1 | 0 | 0 | 405 |
SVG | 1 | 0 | 0 | 288 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 36.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 274.00 |
Average method complexity | 4.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 95.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 31 | |
▷ Abstract classes | 3 | 9.68% |
▷ Concrete classes | 28 | 90.32% |
▷ Final classes | 3 | 10.71% |
Methods | 366 | |
▷ Static methods | 129 | 35.25% |
▷ Public methods | 258 | 70.49% |
▷ Protected methods | 21 | 5.74% |
▷ Private methods | 87 | 23.77% |
Functions | 24 | |
▷ Named functions | 19 | 79.17% |
▷ Anonymous functions | 5 | 20.83% |
Constants | 34 | |
▷ Global constants | 8 | 23.53% |
▷ Class constants | 26 | 76.47% |
▷ Public constants | 26 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/admin/wave-success.png | 1.61KB | 0.83KB | ▼ 48.02% |
(invalid) assets/images/admin/wave-warn.png | 2.85KB | 0.00KB | ▼ 100.00% |
assets/images/admin/a2opt-logo-2022.png | 11.34KB | 4.28KB | ▼ 62.23% |
assets/images/admin/wave-danger.png | 1.51KB | 0.80KB | ▼ 46.79% |
assets/images/admin/wave-empty.png | 2.80KB | 1.51KB | ▼ 45.92% |