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.12MB] [CPU: ▼2.44ms] Passed 4 tests
Analyzing server-side resources used by Mailroad Switch
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 37.94 ▲0.73 |
Dashboard /wp-admin | 3.42 ▲0.12 | 46.31 ▼1.66 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 46.76 ▼2.82 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 83.67 ▼4.77 |
Media Library /wp-admin/upload.php | 3.34 ▲0.12 | 33.84 ▼0.49 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Mailroad Switch
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲61 | 13.71 ▼0.88 | 1.58 ▼0.00 | 40.56 ▼3.71 |
Dashboard /wp-admin | 2,210 ▲19 | 5.85 ▲0.95 | 102.15 ▼1.89 | 37.64 ▼7.44 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.02 ▲0.06 | 40.49 ▼1.37 | 34.07 ▼1.50 |
Add New Post /wp-admin/post-new.php | 1,521 ▼12 | 23.39 ▲0.33 | 679.33 ▼8.50 | 48.76 ▼6.18 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.24 ▼0.04 | 94.64 ▼14.19 | 40.69 ▼5.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: recipients, recipient, admin, rerouting, separate...
mailroad-switch/mailroad-switch.php 92% from 13 tests
The main PHP script in "Mailroad Switch" version 1.0 is automatically included on every request by WordPress
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 161 characters long)
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
Success! There were no dangerous files found in this plugin1,000 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 415 | 270 | 944 |
CSS | 1 | 1 | 1 | 33 |
JavaScript | 1 | 0 | 1 | 18 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 8.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 9 | 69.23% |
Methods | 60 | |
▷ Static methods | 27 | 45.00% |
▷ Public methods | 57 | 95.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 5.00% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin