Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.36MB] [CPU: ▼1.63ms] Passed 4 tests
This is a short check of server-side resources used by WP Mail Pro
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.37 | 45.11 ▲8.43 |
Dashboard /wp-admin | 3.67 ▲0.33 | 52.87 ▼8.65 |
Posts /wp-admin/edit.php | 3.72 ▲0.37 | 51.22 ▲1.33 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.37 | 92.04 ▼7.62 |
Media Library /wp-admin/upload.php | 3.59 ▲0.37 | 42.62 ▲10.76 |
Logs /wp-admin/admin.php?page=wpmailpro&tab=logs | 3.59 | 43.25 |
WP Mail Pro /wp-admin/admin.php?page=wpmailpro | 3.59 | 43.41 |
Settings /wp-admin/admin.php?page=wpmailpro&tab=settings | 3.59 | 41.04 |
Metrics /wp-admin/admin.php?page=wpmailpro&tab=metrics | 3.59 | 43.48 |
/wp-admin/admin.php?page=wpmailpro-preview-email | 3.59 | 41.23 |
DNS Configuration /wp-admin/admin.php?page=wpmailpro&tab=dns | 3.59 | 41.62 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 3.74 | 51.14 |
Server storage [IO: ▲3.51MB] [DB: ▲0.08MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 162 new files
Database: 5 new tables, 10 new options
New tables |
---|
wp_actionscheduler_groups |
wp_wpmp_emails |
wp_actionscheduler_claims |
wp_actionscheduler_actions |
wp_actionscheduler_logs |
New WordPress options |
---|
action_scheduler_hybrid_store_demarkation |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
action_scheduler_lock_async-request-runner |
theysaidso_admin_options |
widget_recent-posts |
schema-ActionScheduler_LoggerSchema |
db_upgraded |
schema-ActionScheduler_StoreSchema |
Browser metrics Passed 4 tests
WP Mail Pro: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲174 | 13.25 ▼1.33 | 2.12 ▲0.38 | 46.37 ▲7.19 |
Dashboard /wp-admin | 2,281 ▲93 | 5.87 ▲0.05 | 96.30 ▼10.93 | 37.91 ▼6.59 |
Posts /wp-admin/edit.php | 2,163 ▲71 | 2.03 ▼0.00 | 35.02 ▼6.06 | 29.77 ▼7.37 |
Add New Post /wp-admin/post-new.php | 1,572 ▲34 | 17.66 ▼5.35 | 641.94 ▼10.95 | 52.87 ▲2.48 |
Media Library /wp-admin/upload.php | 1,463 ▲75 | 4.22 ▲0.01 | 97.74 ▲1.22 | 42.81 ▲0.71 |
Logs /wp-admin/admin.php?page=wpmailpro&tab=logs | 1,322 | 7.14 | 165.07 | 134.41 |
WP Mail Pro /wp-admin/admin.php?page=wpmailpro | 973 | 6.66 | 119.08 | 45.19 |
Settings /wp-admin/admin.php?page=wpmailpro&tab=settings | 1,098 | 6.18 | 136.15 | 61.65 |
Metrics /wp-admin/admin.php?page=wpmailpro&tab=metrics | 978 | 6.70 | 123.63 | 48.21 |
/wp-admin/admin.php?page=wpmailpro-preview-email | 764 | 5.39 | 86.54 | 10.46 |
DNS Configuration /wp-admin/admin.php?page=wpmailpro&tab=dns | 1,004 | 6.84 | 125.31 | 44.85 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 1,315 | 1.85 | 23.47 | 31.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure failed, leaving 4 tables in the database
- wp_actionscheduler_actions
- wp_actionscheduler_claims
- wp_actionscheduler_groups
- wp_actionscheduler_logs
- This plugin did not uninstall successfully, leaving 10 options in the database
- action_scheduler_lock_async-request-runner
- schema-ActionScheduler_LoggerSchema
- action_scheduler_hybrid_store_demarkation
- widget_recent-posts
- schema-ActionScheduler_StoreSchema
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% 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 | 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
- 47× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/wpmail-pro/vendor/wpackio/enqueue/tests/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/wpmail-pro/vendor/wpackio/enqueue/tests/bootstrap.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_SimpleSchedule' not found in wp-content/plugins/wpmail-pro/includes/libraries/action-scheduler/classes/schedules/ActionScheduler_NullSchedule.php:6
- > PHP Fatal error
Uncaught Error: Interface 'ActionScheduler_Exception' not found in wp-content/plugins/wpmail-pro/includes/libraries/action-scheduler/classes/ActionScheduler_InvalidActionException.php:10
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpmail-pro/includes/libraries/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/wpmail-pro/includes/libraries/action-scheduler/classes/WP_CLI/ActionScheduler_WPCLI_Scheduler_command.php:6
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Logger' not found in wp-content/plugins/wpmail-pro/includes/libraries/action-scheduler/classes/data-stores/ActionScheduler_wpCommentLogger.php:6
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Abstract_RecurringSchedule' not found in wp-content/plugins/wpmail-pro/includes/libraries/action-scheduler/classes/schedules/ActionScheduler_CronSchedule.php:6
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Action' not found in wp-content/plugins/wpmail-pro/includes/libraries/action-scheduler/classes/actions/ActionScheduler_NullAction.php:6
- > PHP Fatal error
Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/wpmail-pro/includes/libraries/action-scheduler/lib/cron-expression/CronExpression_MonthField.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/wpmail-pro/includes/libraries/action-scheduler/classes/WP_CLI/Migration_Command.php:22
- > 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 90% 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
5 plugin tags: wpmailpro, smtp, deliverability, email, mail
wpmail-pro/wp-mail-pro.php 77% from 13 tests
The main PHP file in "WP Mail Pro" ver. 2.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("wpmail-pro.php" instead of "wp-mail-pro.php")
- 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin9,807 lines of code in 148 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 129 | 2,376 | 5,816 | 9,202 |
Markdown | 5 | 136 | 0 | 271 |
JSON | 6 | 0 | 0 | 223 |
XML | 2 | 9 | 3 | 96 |
JavaScript | 5 | 0 | 128 | 14 |
CSS | 1 | 1 | 18 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 10.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 19 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 98 | |
▷ Abstract classes | 16 | 16.33% |
▷ Concrete classes | 82 | 83.67% |
▷ Final classes | 0 | 0.00% |
Methods | 728 | |
▷ Static methods | 81 | 11.13% |
▷ Public methods | 546 | 75.00% |
▷ Protected methods | 161 | 22.12% |
▷ Private methods | 21 | 2.88% |
Functions | 90 | |
▷ Named functions | 81 | 90.00% |
▷ Anonymous functions | 9 | 10.00% |
Constants | 47 | |
▷ Global constants | 8 | 17.02% |
▷ Class constants | 39 | 82.98% |
▷ Public constants | 39 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin