Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.48MB] [CPU: ▼3.12ms] Passed 4 tests
An overview of server-side resources used by Site Speed Test - SpeedGuard
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.44 | 47.08 ▲8.44 |
Dashboard /wp-admin | 3.81 ▲0.51 | 50.65 ▲5.93 |
Posts /wp-admin/edit.php | 3.84 ▲0.49 | 47.86 ▲1.68 |
Add New Post /wp-admin/post-new.php | 6.44 ▲0.55 | 77.72 ▼21.00 |
Media Library /wp-admin/upload.php | 3.70 ▲0.47 | 34.88 ▲0.92 |
Speed Tests /wp-admin/admin.php?page=speedguard_tests | 3.65 | 35.37 |
Settings /wp-admin/admin.php?page=speedguard_settings | 3.63 | 32.62 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
speedguard_average |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
speedguard_options |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Site Speed Test - SpeedGuard
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,940 ▲194 | 13.25 ▼1.43 | 2.45 ▲0.77 | 42.86 ▲1.71 |
Dashboard /wp-admin | 2,313 ▲128 | 4.90 ▼1.00 | 107.36 ▲9.78 | 45.25 ▼3.72 |
Posts /wp-admin/edit.php | 2,135 ▲43 | 2.02 ▼0.01 | 34.57 ▼1.79 | 34.63 ▲5.21 |
Add New Post /wp-admin/post-new.php | 1,555 ▲27 | 23.09 ▲4.89 | 637.42 ▼44.94 | 53.45 ▼1.94 |
Media Library /wp-admin/upload.php | 1,433 ▲42 | 4.23 ▲0.07 | 97.47 ▼8.00 | 44.08 ▼4.12 |
Speed Tests /wp-admin/admin.php?page=speedguard_tests | 1,423 | 1.73 | 29.90 | 50.20 |
Settings /wp-admin/admin.php?page=speedguard_settings | 1,092 | 1.84 | 26.97 | 36.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/speedguard/admin/partials/speedguard-admin-display.php
- > /wp-content/plugins/speedguard/public/partials/speedguard-public-display.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/speedguard/admin/includes/class.tests.php on line 9
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/speedguard/admin/includes/class.tests.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/speedguard/admin/includes/class.settings.php:11
- > PHP Fatal error
Uncaught Error: Class 'SpeedGuard_Admin' not found in wp-content/plugins/speedguard/admin/includes/class.widgets.php:8
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/speedguard/admin/includes/class.tests.php on line 9
- > PHP Warning
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
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: optimization, speed, site speed, performance, test speed
speedguard/speedguard.php Passed 13 tests
"Site Speed Test - SpeedGuard" version 1.8.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
74 characters long description:
Keeps an eye on your website’s speed for you; every single day for free.
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
Good job! No executable or dangerous file extensions detected2,197 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 226 | 554 | 1,590 |
JavaScript | 4 | 115 | 69 | 471 |
CSS | 3 | 33 | 15 | 135 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 19.23 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 89.00 |
Average method complexity | 3.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 98 | |
▷ Static methods | 31 | 31.63% |
▷ Public methods | 92 | 93.88% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 6.12% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
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 |
admin/assets/images/sabrina.png | 9.65KB | 4.16KB | ▼ 56.88% |