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.06MB] [CPU: ▼2.42ms] Passed 4 tests
An overview of server-side resources used by mailshogun
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.65 ▲0.04 |
Dashboard /wp-admin | 3.35 ▲0.05 | 45.93 ▼7.19 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 48.01 ▲0.06 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 96.63 ▼2.60 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 39.30 ▲3.98 |
Mailshogun /wp-admin/options-general.php?page=mailshogun-unique-identifier | 3.27 | 31.68 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for mailshogun
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲181 | 13.60 ▼0.86 | 7.83 ▲6.19 | 37.71 ▼4.83 |
Dashboard /wp-admin | 2,208 ▲23 | 5.88 ▼0.02 | 105.32 ▼3.12 | 41.43 ▼0.26 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.01 ▼0.04 | 36.78 ▲0.06 | 32.66 ▼0.08 |
Add New Post /wp-admin/post-new.php | 1,530 ▼3 | 23.08 ▲0.01 | 602.49 ▼57.19 | 87.08 ▲20.47 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.19 ▼0.03 | 100.20 ▼4.82 | 42.13 ▼3.69 |
Mailshogun /wp-admin/options-general.php?page=mailshogun-unique-identifier | 1,027 | 2.34 | 30.84 | 58.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/mailshogun/admin/partials/mailshogun-admin-display.php
- > /wp-content/plugins/mailshogun/public/partials/mailshogun-public-display.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/mailshogun/views/mailshogun-template.php:2
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 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
These attributes need your attention:
- Screenshots: Screenshot #2 (This is the second screen shot) image not found
- Donate link: Please fix this invalid url: ""
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== mailshogun ===
)
mailshogun/mailshogun.php Passed 13 tests
The main PHP script in "mailshogun" version 1.0.0 is automatically included on every request by WordPress
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.
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
Everything looks great! No dangerous files found in this plugin580 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 186 | 570 | 444 |
JavaScript | 5 | 33 | 86 | 94 |
CSS | 3 | 13 | 25 | 42 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 1.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 18 | 78.26% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 21.74% |
Functions | 6 | |
▷ Named functions | 6 | 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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/new-log-very-small.png | 3.95KB | 0.71KB | ▼ 81.95% |
public/img/new-log-small.png | 3.70KB | 0.56KB | ▼ 84.99% |
public/img/logo24.png | 4.60KB | 1.08KB | ▼ 76.47% |