Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼8.15ms] Passed 4 tests
Analyzing server-side resources used by Mailrelay
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 39.29 ▼9.82 |
Dashboard /wp-admin | 3.41 ▲0.07 | 47.97 ▼5.04 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 43.00 ▲3.10 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 79.98 ▼18.17 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 33.55 ▲0.44 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Mailrelay
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲43 | 14.36 ▼0.14 | 1.68 ▲0.01 | 43.50 ▼3.46 |
Dashboard /wp-admin | 2,198 ▲18 | 5.52 ▼0.15 | 96.75 ▲6.13 | 67.72 ▲29.40 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.02 ▲0.01 | 33.81 ▼8.48 | 32.73 ▼5.32 |
Add New Post /wp-admin/post-new.php | 6,212 ▲4,675 | 19.63 ▲1.45 | 911.84 ▲295.22 | 38.52 ▼26.01 |
Media Library /wp-admin/upload.php | 1,415 ▲12 | 4.22 ▼0.01 | 93.43 ▼4.24 | 70.15 ▲29.53 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/mailrelay/mailrelay.php
- > /wp-content/plugins/mailrelay/inc/global-hooks.php
- > /wp-content/plugins/mailrelay/inc/class-mailrelaypages.php
- > /wp-content/plugins/mailrelay/inc/common.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mailrelay/inc/class-mailrelay-wpforms.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mailrelay/inc/block-widgets.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Donate link: Please fix this invalid url: ""
mailrelay/mailrelay.php 92% from 13 tests
This is the main PHP file of "Mailrelay" version 2.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,164 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 163 | 34 | 796 |
PO File | 2 | 58 | 78 | 187 |
JavaScript | 1 | 16 | 0 | 107 |
Markdown | 2 | 30 | 0 | 60 |
CSS | 2 | 5 | 0 | 14 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.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 | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 92.86% |
▷ Protected methods | 2 | 7.14% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
mailrelay.png | 0.37KB | 0.23KB | ▼ 38.48% |