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
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.30ms] Passed 4 tests
Server-side resources used by YourChoice MailPro
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.03 | 34.57 ▼6.76 |
Dashboard /wp-admin | 3.30 ▲0.00 | 39.45 ▼9.83 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 47.51 ▲0.80 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 83.73 ▼5.23 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 33.76 ▲0.63 |
YourChoice MailPro /wp-admin/options-general.php?page=mailpro | 3.27 | 28.68 |
Server storage [IO: ▲0.15MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_yourchoicemailprowidget |
Browser metrics Passed 4 tests
A check of browser resources used by YourChoice MailPro
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,867 ▲132 | 13.62 ▼1.13 | 1.75 ▼0.42 | 39.12 ▼9.26 |
Dashboard /wp-admin | 2,248 ▲63 | 5.85 ▼0.05 | 121.15 ▲7.49 | 45.39 ▼1.59 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.05 ▲0.01 | 39.49 ▲2.75 | 35.05 ▼1.16 |
Add New Post /wp-admin/post-new.php | 1,537 ▲3 | 23.31 ▲0.26 | 639.51 ▼44.66 | 60.53 ▲2.94 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.20 ▼0.05 | 101.00 ▲1.66 | 41.77 ▼2.15 |
YourChoice MailPro /wp-admin/options-general.php?page=mailpro | 794 | 2.03 | 27.22 | 30.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_yourchoicemailprowidget
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=mailpro
- > Notice in wp-content/plugins/yourchoice-mailpro/yourchoice-mailpro.php+237
Trying to access array offset on value of type bool
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
The following issues need your attention
- 10× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/yourchoice-mailpro/classes/widget.php:11
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/yourchoice-mailpro/views/failure.tpl.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/yourchoice-mailpro/views/admin.tpl.php:2
- > PHP Notice
Undefined variable: options in wp-content/plugins/yourchoice-mailpro/views/success.tpl.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yourchoice-mailpro/classes/dashboard-widget.php:44
- > PHP Notice
Undefined variable: options in wp-content/plugins/yourchoice-mailpro/views/failure.tpl.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/yourchoice-mailpro/views/success.tpl.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/yourchoice-mailpro/views/admin_basic.tpl.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/yourchoice-mailpro/views/admin_recaptcha.tpl.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/yourchoice-mailpro/yourchoice-mailpro.php:36
- > 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)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: subscribers, newsletter, yourchoice, mailpro
yourchoice-mailpro/yourchoice-mailpro.php Passed 13 tests
The principal PHP file in "YourChoice MailPro" v. 2.0.3 is loaded by WordPress automatically on each request
74 characters long description:
A MailPro API interface to add email addresses into a MailPro address book
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 detected1,760 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 8 | 368 | 0 | 987 |
PHP | 9 | 82 | 47 | 685 |
JavaScript | 3 | 5 | 7 | 43 |
CSS | 1 | 11 | 3 | 34 |
XML | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 5.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 26 | |
▷ Named functions | 26 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin