Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲4.23MB] [CPU: ▲16.63ms] Passed 4 tests
Server-side resources used by MailPoet - Newsletters, Email Marketing, and Automation
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.82 ▲4.36 | 64.66 ▲20.27 |
Dashboard /wp-admin | 7.54 ▲4.19 | 69.43 ▲6.85 |
Posts /wp-admin/edit.php | 7.59 ▲4.23 | 72.74 ▲22.68 |
Add New Post /wp-admin/post-new.php | 10.27 ▲4.38 | 116.52 ▲16.71 |
Media Library /wp-admin/upload.php | 7.35 ▲4.12 | 60.17 ▲25.45 |
Export /wp-admin/admin.php?page=mailpoet-export | 7.36 | 61.51 |
Automation Templates /wp-admin/admin.php?page=mailpoet-automation-templates | 7.36 | 58.25 |
Settings /wp-admin/admin.php?page=mailpoet-settings | 7.36 | 47.49 |
Help /wp-admin/admin.php?page=mailpoet-help | 7.36 | 53.74 |
MailPoet /wp-admin/admin.php?page=mailpoet-landingpage | 7.53 | 62.65 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 7.51 | 71.26 |
WooCommerce Setup /wp-admin/admin.php?page=mailpoet-woocommerce-setup | 7.19 | 47.05 |
Welcome Wizard /wp-admin/admin.php?page=mailpoet-welcome-wizard | 7.99 | 66.60 |
Automation Analytics /wp-admin/admin.php?page=mailpoet-automation-analytics | 7.36 | 52.65 |
Email Editor /wp-admin/admin.php?page=mailpoet-email-editor | 7.36 | 53.43 |
Server storage [IO: ▲27.24MB] [DB: ▲1.26MB] 67% from 3 tests
Filesystem and database footprint
Just a few items left to fix
- Try to limit filesystem usage to 25MB (currently using 27.24MB)
Filesystem: 3,948 new files
Database: 44 new tables, 10 new options
New tables |
---|
wp_mailpoet_feature_flags |
wp_mailpoet_newsletters |
wp_mailpoet_automation_run_logs |
wp_mailpoet_subscriber_ips |
wp_mailpoet_statistics_woocommerce_purchases |
wp_mailpoet_scheduled_tasks |
wp_mailpoet_custom_fields |
wp_mailpoet_statistics_bounces |
wp_mailpoet_automation_run_subjects |
wp_mailpoet_automation_runs |
... |
New WordPress options |
---|
widget_mailpoet_form |
widget_recent-posts |
can_compress_scripts |
schema-ActionScheduler_StoreSchema |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
schema-ActionScheduler_LoggerSchema |
db_upgraded |
action_scheduler_hybrid_store_demarkation |
Browser metrics Passed 4 tests
This is an overview of browser requirements for MailPoet - Newsletters, Email Marketing, and Automation
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,868 ▲106 | 14.68 ▲0.34 | 1.45 ▼0.28 | 36.96 ▼7.71 |
Dashboard /wp-admin | 2,273 ▲99 | 5.68 ▲0.09 | 96.61 ▼9.65 | 43.55 ▼3.42 |
Posts /wp-admin/edit.php | 2,178 ▲78 | 2.01 ▲0.02 | 39.78 ▼3.41 | 37.73 ▼1.48 |
Add New Post /wp-admin/post-new.php | 1,580 ▲54 | 23.47 ▲0.31 | 603.12 ▲11.93 | 50.99 ▼2.57 |
Media Library /wp-admin/upload.php | 1,476 ▲73 | 4.18 ▼0.05 | 102.51 ▲6.01 | 44.32 ▲2.81 |
Export /wp-admin/admin.php?page=mailpoet-export | 1,176 | 14.37 | 257.76 | 43.09 |
Automation Templates /wp-admin/admin.php?page=mailpoet-automation-templates | 1,175 | 14.43 | 249.96 | 43.01 |
Settings /wp-admin/admin.php?page=mailpoet-settings | 1,170 | 14.39 | 186.04 | 50.33 |
Help /wp-admin/admin.php?page=mailpoet-help | 1,170 | 14.43 | 211.32 | 66.83 |
MailPoet /wp-admin/admin.php?page=mailpoet-landingpage | 1,174 | 14.29 | 216.96 | 48.17 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 1,445 | 1.80 | 25.03 | 33.84 |
WooCommerce Setup /wp-admin/admin.php?page=mailpoet-woocommerce-setup | 1,170 | 14.36 | 215.25 | 55.80 |
Welcome Wizard /wp-admin/admin.php?page=mailpoet-welcome-wizard | 945 | 11.86 | 233.06 | 51.45 |
Automation Analytics /wp-admin/admin.php?page=mailpoet-automation-analytics | 1,170 | 14.38 | 186.33 | 57.65 |
Email Editor /wp-admin/admin.php?page=mailpoet-email-editor | 1,170 | 14.30 | 216.78 | 64.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲1.26MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The plugin did not uninstall successfully, leaving 44 tables in the database
- wp_mailpoet_subscriber_segment
- wp_mailpoet_tags
- wp_mailpoet_custom_fields
- wp_mailpoet_statistics_clicks
- wp_mailpoet_settings
- wp_actionscheduler_logs
- wp_mailpoet_newsletter_segment
- wp_mailpoet_subscriber_tag
- wp_mailpoet_scheduled_tasks
- wp_actionscheduler_actions
- ...
- This plugin does not fully uninstall, leaving 11 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- action_scheduler_migration_status
- schema-ActionScheduler_LoggerSchema
- action_scheduler_hybrid_store_demarkation
- can_compress_scripts
- widget_recent-posts
- schema-ActionScheduler_StoreSchema
- db_upgraded
- theysaidso_admin_options
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mailpoet-export
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/mailpoet/mailpoet-cron.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Declaration of MailPoetVendor\\Doctrine\\ORM\\Mapping\\ReflectionReadonlyProperty::setValue(MailPoetVendor\\Doctrine\\ORM\\Mapping\\mixed $objectOrValue, ?MailPoetVendor\\Doctrine\\ORM\\Mapping\\mixed $value = NULL): void should be compatible with ReflectionProperty::setValue($object, $value = NULL) in wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/Mapping/ReflectionReadonlyProperty.php on line 28
- > PHP Warning
Declaration of MailPoetVendor\\Doctrine\\ORM\\Mapping\\ReflectionReadonlyProperty::getValue(?object $object = NULL): MailPoetVendor\\Doctrine\\ORM\\Mapping\\mixed should be compatible with ReflectionProperty::getValue($object = NULL) in wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/Mapping/ReflectionReadonlyProperty.php on line 24
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Screenshots: Screenshot #1 (Sample newsletters) image not found
mailpoet/mailpoet.php Passed 13 tests
The main PHP file in "MailPoet - Newsletters, Email Marketing, and Automation" ver. 4.38.0 adds more information about the plugin and also serves as the entry point for this plugin
87 characters long description:
Create and send newsletters, post notifications and welcome emails from your WordPress.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin315,693 lines of code in 2,907 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2,654 | 24,648 | 34,602 | 299,997 |
CSS | 32 | 40 | 115 | 5,790 |
HTML | 50 | 274 | 204 | 5,048 |
Handlebars | 99 | 210 | 4 | 3,538 |
JSON | 5 | 0 | 0 | 719 |
SVG | 44 | 0 | 1 | 364 |
XSD | 1 | 18 | 0 | 142 |
Markdown | 3 | 26 | 0 | 55 |
JavaScript | 19 | 0 | 15 | 40 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please tend to the following items
- Method cyclomatic complexity has to be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 9.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 416.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 331 | |
Interfaces | 180 | |
Traits | 51 | |
Classes | 2,399 | |
▷ Abstract classes | 105 | 4.38% |
▷ Concrete classes | 2,294 | 95.62% |
▷ Final classes | 206 | 8.98% |
Methods | 17,476 | |
▷ Static methods | 1,281 | 7.33% |
▷ Public methods | 14,190 | 81.20% |
▷ Protected methods | 1,553 | 8.89% |
▷ Private methods | 1,733 | 9.92% |
Functions | 867 | |
▷ Named functions | 175 | 20.18% |
▷ Anonymous functions | 692 | 79.82% |
Constants | 2,319 | |
▷ Global constants | 190 | 8.19% |
▷ Class constants | 2,129 | 91.81% |
▷ Public constants | 2,036 | 95.63% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
117 compressed PNG files occupy 0.18MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/newsletter_editor/social-icons/07-full-symbol-black/Google-Plus.png | 0.73KB | 1.24KB | 0.00% |
assets/img/newsletter_editor/social-icons/04-full-flat-roundrect/Email.png | 1.05KB | 1.12KB | 0.00% |
assets/img/newsletter_editor/social-icons/05-full-gradient-square/Email.png | 2.05KB | 2.14KB | 0.00% |
assets/img/form_editor_icons.png | 12.25KB | 5.27KB | ▼ 56.96% |
assets/img/datepicker/ui-icons_454545_256x240.png | 3.71KB | 4.11KB | 0.00% |