Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.37MB] [CPU: ▼1.57ms] Passed 4 tests
A check of server-side resources used by Mailgun Subscriptions
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.40 | 43.72 ▼3.53 |
Dashboard /wp-admin | 3.70 ▲0.40 | 50.33 ▲1.37 |
Posts /wp-admin/edit.php | 3.75 ▲0.40 | 50.56 ▲6.37 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.34 | 90.68 ▼9.73 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 43.10 ▲5.61 |
Mailgun Lists /wp-admin/options-general.php?page=mailgun_subscriptions | 3.62 | 485.94 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, 8 new options
New WordPress options |
---|
mailgun_account_management_page |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_mailgun-subscriptions |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Mailgun Subscriptions
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.38 ▼0.07 | 1.95 ▲0.08 | 44.58 ▼0.79 |
Dashboard /wp-admin | 2,199 ▲19 | 5.65 ▼0.08 | 87.46 ▼7.71 | 38.50 ▲0.52 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.05 ▲0.02 | 35.13 ▼6.82 | 37.12 ▼1.52 |
Add New Post /wp-admin/post-new.php | 1,529 ▼4 | 17.49 ▼5.65 | 676.62 ▲56.53 | 58.36 ▲0.81 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.20 ▲0.01 | 99.77 ▼2.04 | 45.46 ▲0.25 |
Mailgun Lists /wp-admin/options-general.php?page=mailgun_subscriptions | 791 | 2.06 | 23.60 | 30.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_mailgun-subscriptions
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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 take a closer look at the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Mailgun_Subscriptions\\Confirmation' not found in wp-content/plugins/mailgun-subscriptions/Mailgun_Subscriptions/Null_Confirmation.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mailgun-subscriptions/Mailgun_Subscriptions/Widget.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mailgun-subscriptions/mailgun-subscriptions.php:46
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: mailing lists, subscriptions, email, widget
mailgun-subscriptions/mailgun-subscriptions.php Passed 13 tests
The entry point to "Mailgun Subscriptions" version 1.2.0 is a PHP file that has certain tags in its header comment area
59 characters long description:
A widget for visitors to subscribe to Mailgun mailing lists
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected2,783 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 448 | 276 | 2,474 |
PO File | 1 | 49 | 51 | 185 |
Markdown | 1 | 47 | 0 | 57 |
CSS | 1 | 6 | 0 | 48 |
JSON | 2 | 0 | 0 | 19 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 12.26 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 1 | 4.35% |
▷ Concrete classes | 22 | 95.65% |
▷ Final classes | 0 | 0.00% |
Methods | 249 | |
▷ Static methods | 15 | 6.02% |
▷ Public methods | 148 | 59.44% |
▷ Protected methods | 57 | 22.89% |
▷ Private methods | 44 | 17.67% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 1 | 5.56% |
▷ Class constants | 17 | 94.44% |
▷ Public constants | 17 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin