Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.12MB] [CPU: ▼5.10ms] Passed 4 tests
Server-side resources used by Dashboard for Mailgun
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.69 ▼0.42 |
Dashboard /wp-admin | 3.48 ▲0.14 | 49.05 ▼8.22 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 48.03 ▼2.60 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 86.83 ▼9.14 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 38.73 ▲1.90 |
Dashboard /wp-admin/admin.php?page=dashboard-for-mailgun | 3.39 | 35.26 |
Settings /wp-admin/admin.php?page=dashboard-for-mailgun-settings | 3.40 | 34.65 |
Server storage [IO: ▲2.44MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Dashboard for Mailgun
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲52 | 14.75 ▲0.33 | 1.81 ▲0.01 | 47.90 ▲3.47 |
Dashboard /wp-admin | 2,232 ▲44 | 4.82 ▼0.06 | 104.25 ▼10.25 | 43.20 ▲3.32 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 2.01 ▲0.02 | 36.83 ▼0.89 | 38.22 ▲6.34 |
Add New Post /wp-admin/post-new.php | 1,553 ▲17 | 23.08 ▼0.05 | 705.04 ▲50.74 | 57.65 ▼0.99 |
Media Library /wp-admin/upload.php | 1,411 ▲23 | 4.22 ▼0.14 | 112.07 ▲16.36 | 52.30 ▲11.85 |
Dashboard /wp-admin/admin.php?page=dashboard-for-mailgun | 833 | 2.65 | 59.52 | 49.67 |
Settings /wp-admin/admin.php?page=dashboard-for-mailgun-settings | 830 | 2.08 | 36.38 | 32.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% 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
Please fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant MAILGUN_DASHBOARD_PATH - assumed 'MAILGUN_DASHBOARD_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/dashboard-for-mailgun/application/bootstrap.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/dashboard-for-mailgun/dashboard-for-mailgun.php:15
- > PHP Fatal error
require_once(): Failed opening required 'MAILGUN_DASHBOARD_PATH/inc/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/dashboard-for-mailgun/application/bootstrap.php on line 8
- > PHP Warning
require_once(MAILGUN_DASHBOARD_PATH/inc/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/dashboard-for-mailgun/application/bootstrap.php on line 8
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=dashboard-for-mailgun
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:1130 Uncaught TypeError: Cannot use 'in' operator to search for 'length' in Mailgun API key or domain, not set.
Optimizations
Plugin configuration 96% from 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
6 plugin tags: email, dashboard, mail, transactional, mailgun...
dashboard-for-mailgun/dashboard-for-mailgun.php 92% from 13 tests
Analyzing the main PHP file in "Dashboard for Mailgun" version 0.1
You should first fix the following items:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected35,788 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 5,896 | 9,916 | 23,792 |
CSS | 5 | 1,043 | 42 | 8,668 |
SVG | 1 | 0 | 0 | 2,671 |
PHP | 9 | 168 | 224 | 657 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 14 | |
▷ Global constants | 6 | 42.86% |
▷ Class constants | 8 | 57.14% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |
assets/css/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
assets/css/images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |
assets/css/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
assets/css/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |