Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.88MB] [CPU: ▲4.01ms] Passed 4 tests
Server-side resources used by Site Speed Monitor
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.38 ▲0.91 | 48.06 ▲3.14 |
Dashboard /wp-admin | 4.22 ▲0.92 | 58.18 ▲4.62 |
Posts /wp-admin/edit.php | 4.27 ▲0.91 | 53.36 ▲4.67 |
Add New Post /wp-admin/post-new.php | 6.74 ▲0.85 | 102.25 ▲3.62 |
Media Library /wp-admin/upload.php | 4.08 ▲0.85 | 47.09 ▲12.15 |
Site Speed Monitor /wp-admin/tools.php?page=site-speed-monitor-tools | 4.04 | 40.45 |
Site Speed Monitor /wp-admin/options-general.php?page=site-speed-monitor | 4.05 | 47.06 |
Server storage [IO: ▲1.21MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 65 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Site Speed Monitor: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲83 | 14.65 ▲0.25 | 1.77 ▼0.16 | 43.18 ▼1.51 |
Dashboard /wp-admin | 2,238 ▲64 | 5.62 ▲0.10 | 99.05 ▼2.39 | 42.38 ▼3.97 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 2.04 ▲0.01 | 36.32 ▼1.36 | 38.18 ▲2.44 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 23.18 ▲0.18 | 657.27 ▼8.80 | 59.72 ▲6.99 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.18 ▼0.04 | 108.70 ▼1.29 | 43.81 ▼4.05 |
Site Speed Monitor /wp-admin/tools.php?page=site-speed-monitor-tools | 774 | 2.00 | 25.68 | 23.31 |
Site Speed Monitor /wp-admin/options-general.php?page=site-speed-monitor | 1,033 | 1.87 | 31.06 | 42.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
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
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/site-speed-monitor/includes/documentation/hook-docs.php
- > /wp-content/plugins/site-speed-monitor/includes/documentation/term-docs.php
- > /wp-content/plugins/site-speed-monitor/includes/documentation/faq-docs.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/site-speed-monitor/site-speed-monitor.php:86
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser 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
10 plugin tags: monitor, report, graph, tester, speed...
site-speed-monitor/site-speed-monitor.php Passed 13 tests
The main PHP file in "Site Speed Monitor" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
95 characters long description:
Site Speed Monitor allows you to monitor your website load times using the WebPageTest.org API.
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
Good job! No executable or dangerous file extensions detected20,495 lines of code in 57 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 3,009 | 2,264 | 14,520 |
PHP | 23 | 2,109 | 1,546 | 3,716 |
CSS | 22 | 424 | 242 | 2,259 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 28.61 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 132.00 |
Average method complexity | 4.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 17 | 100.00% |
Methods | 142 | |
▷ Static methods | 42 | 29.58% |
▷ Public methods | 139 | 97.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 2.11% |
Functions | 9 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 9 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.08MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/header-pattern.png | 20.72KB | 20.26KB | ▼ 2.18% |
assets/images/developer-header-parrot.png | 5.49KB | 5.48KB | 0.25% |
assets/images/site-speed-monitor-text-white.png | 3.67KB | 3.38KB | ▼ 7.86% |
assets/images/code-parrots-logo-dark.png | 9.14KB | 7.06KB | ▼ 22.73% |
assets/images/header-parrot.png | 44.14KB | 18.63KB | ▼ 57.78% |