Benchmarks
Plugin footprint 82% 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.04MB] [CPU: ▼5.60ms] 75% from 4 tests
Server-side resources used by
Please fix the following
- CPU: The total CPU usage must kept under 500.00ms (currently 711.50ms on /wp-admin/options-general.php?page=mailgun-lists)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.56 ▼5.98 |
Dashboard /wp-admin | 3.34 ▲0.04 | 47.14 ▼4.56 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 46.68 ▼2.38 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 84.99 ▼9.48 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.24 ▲1.09 |
Mailgun Lists /wp-admin/options-general.php?page=mailgun-lists | 3.28 | 711.50 |
Mailgun /wp-admin/options-general.php?page=mailgun | 3.45 | 33.69 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
mailgun |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_list_widget |
Browser metrics Passed 4 tests
Checking browser requirements for
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.61 ▼0.50 | 1.71 ▼0.73 | 43.82 ▲0.36 |
Dashboard /wp-admin | 2,231 ▲43 | 4.86 ▼0.95 | 113.51 ▼2.01 | 41.19 ▼4.21 |
Posts /wp-admin/edit.php | 2,114 ▲46 | 2.02 ▲0.01 | 41.52 ▲5.77 | 35.80 ▼0.30 |
Add New Post /wp-admin/post-new.php | 1,560 ▲40 | 18.51 ▼4.78 | 590.79 ▼90.28 | 57.29 ▲0.59 |
Media Library /wp-admin/upload.php | 1,413 ▲25 | 4.20 ▼0.03 | 97.62 ▼5.69 | 42.72 ▼2.23 |
Mailgun Lists /wp-admin/options-general.php?page=mailgun-lists | 825 | 2.02 | 25.00 | 25.40 |
Mailgun /wp-admin/options-general.php?page=mailgun | 1,245 | 2.08 | 24.97 | 38.81 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 8 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_list_widget
- widget_recent-comments
- mailgun
- db_upgraded
- can_compress_scripts
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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Mailgun' not found in wp-content/plugins/mailgun/includes/admin.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/mailgun/mailgun.php:74
- > PHP Fatal error
Uncaught Error: Class 'Mailgun' not found in wp-content/plugins/mailgun/includes/options-page.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mailgun/includes/wp-mail-api.php:63
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mailgun/includes/widget.php:22
- > PHP Fatal error
Uncaught Error: Class 'Mailgun' not found in wp-content/plugins/mailgun/includes/lists-page.php:22
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=mailgun
- > Network (severe)
wp-content/plugins/mailgun/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots require images: #3 (Administration option to View Available Lists for subscription), #4 (Setting up a Subscription Widget), #5 (Using a Subscription Code), #6 (Subscription Form Seen By Site Visitors)
mailgun/mailgun.php 92% from 13 tests
The primary PHP file in "" version 1.9.5 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("/languages/.")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected3,005 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 307 | 646 | 1,739 |
PO File | 5 | 237 | 255 | 830 |
Markdown | 2 | 162 | 0 | 436 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 45.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 5.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 1 | 3.45% |
▷ Public methods | 29 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 16 | 94.12% |
▷ Anonymous functions | 1 | 5.88% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin