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.01MB] [CPU: ▼4.43ms] Passed 4 tests
A check of server-side resources used by Mailgun Post Notifications
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.46 ▼3.80 |
Dashboard /wp-admin | 3.31 ▲0.01 | 48.67 ▼1.23 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.67 ▼4.07 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 85.82 ▼8.60 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.49 ▲4.21 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Mailgun Post Notifications
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 14.74 ▲0.36 | 2.10 ▲0.28 | 43.97 ▼2.54 |
Dashboard /wp-admin | 2,210 ▲22 | 4.85 ▼0.04 | 100.96 ▼15.31 | 40.71 ▼3.78 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.02 ▼0.03 | 35.22 ▼2.07 | 33.67 ▼1.74 |
Add New Post /wp-admin/post-new.php | 1,524 ▲10 | 23.05 ▲5.46 | 657.67 ▲1.67 | 51.95 ▲3.08 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.28 ▲0.05 | 100.44 ▲0.93 | 44.81 ▼1.64 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/mailgun-post-notifications/email-templates/html/new-post.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mailgun-post-notifications/mailgun-post-notifications.php:62
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/mailgun-post-notifications/email-templates/text/new-post.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: email, mailing lists, notification, subscriptions
mailgun-post-notifications/mailgun-post-notifications.php 92% from 13 tests
This is the main PHP file of "Mailgun Post Notifications" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin496 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 98 | 50 | 445 |
Markdown | 1 | 20 | 0 | 51 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 7.75 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 29 | |
▷ Static methods | 5 | 17.24% |
▷ Public methods | 15 | 51.72% |
▷ Protected methods | 11 | 37.93% |
▷ Private methods | 3 | 10.34% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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 are no PNG files in this plugin