Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.78MB] [CPU: ▼6.69ms] Passed 4 tests
An overview of server-side resources used by WP WooCommerce Mailchimp
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.24 ▲0.77 | 43.19 ▼0.19 |
Dashboard /wp-admin | 4.13 ▲0.83 | 56.06 ▲0.74 |
Posts /wp-admin/edit.php | 4.18 ▲0.82 | 57.37 ▼0.30 |
Add New Post /wp-admin/post-new.php | 6.67 ▲0.78 | 90.26 ▼27.01 |
Media Library /wp-admin/upload.php | 3.99 ▲0.76 | 43.53 ▲7.93 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 4.15 | 40.21 |
Server storage [IO: ▲0.95MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 90 new files
Database: no new tables, 19 new options
New WordPress options |
---|
widget_recent-posts |
ss_wc_mailchimp_double_opt_in |
ss_wc_mailchimp_opt_in_label |
ss_wc_mailchimp_version |
ss_wc_mailchimp_list |
ss_wc_mailchimp_display_opt_in |
widget_theysaidso_widget |
ss_wc_mailchimp_interest_groups |
ss_wc_mailchimp_opt_in_checkbox_default_status |
ss_wc_mailchimp_tags |
... |
Browser metrics Passed 4 tests
WP WooCommerce Mailchimp: 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,828 ▲67 | 14.22 ▼0.07 | 1.89 ▼0.09 | 43.90 ▼5.38 |
Dashboard /wp-admin | 2,209 ▲32 | 5.66 ▼0.03 | 84.94 ▼6.44 | 42.28 ▼2.20 |
Posts /wp-admin/edit.php | 2,117 ▲17 | 2.00 ▼0.00 | 39.41 ▲3.33 | 38.59 ▲0.58 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 23.69 ▲0.56 | 627.69 ▼46.51 | 60.39 ▲4.76 |
Media Library /wp-admin/upload.php | 1,414 ▲14 | 4.29 ▲0.16 | 96.50 ▼27.26 | 45.32 ▼6.81 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 995 | 2.06 | 27.33 | 31.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 19 options
- ss_wc_mailchimp_double_opt_in
- widget_recent-comments
- ss_wc_mailchimp_opt_in_label
- ss_wc_mailchimp_tags
- ss_wc_mailchimp_interest_groups
- ss_wc_mailchimp_opt_in_checkbox_display_location
- ss_wc_mailchimp_display_opt_in
- widget_recent-posts
- ss_wc_mailchimp_debug
- can_compress_scripts
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
- 32× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Action' not found in wp-content/plugins/woocommerce-mailchimp/includes/lib/action-scheduler/classes/ActionScheduler_NullAction.php:6
- > PHP Fatal error
Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/woocommerce-mailchimp/includes/lib/action-scheduler/lib/cron-expression/CronExpression_DayOfWeekField.php:18
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Logger' not found in wp-content/plugins/woocommerce-mailchimp/includes/lib/action-scheduler/classes/ActionScheduler_wpCommentLogger.php:6
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Abstract_QueueRunner' not found in wp-content/plugins/woocommerce-mailchimp/includes/lib/action-scheduler/classes/ActionScheduler_WPCLI_QueueRunner.php:8
- > PHP Fatal error
Uncaught Error: Interface 'ActionScheduler_Schedule' not found in wp-content/plugins/woocommerce-mailchimp/includes/lib/action-scheduler/classes/ActionScheduler_NullSchedule.php:6
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_AdminView_Deprecated' not found in wp-content/plugins/woocommerce-mailchimp/includes/lib/action-scheduler/classes/ActionScheduler_AdminView.php:7
- > PHP Fatal error
Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/woocommerce-mailchimp/includes/lib/action-scheduler/lib/cron-expression/CronExpression_MonthField.php:8
- > PHP Fatal error
Uncaught Error: Interface 'ActionScheduler_Schedule' not found in wp-content/plugins/woocommerce-mailchimp/includes/lib/action-scheduler/classes/ActionScheduler_CronSchedule.php:6
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/woocommerce-mailchimp/includes/lib/action-scheduler/classes/ActionScheduler_Abstract_ListTable.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/woocommerce-mailchimp/includes/lib/action-scheduler/classes/ActionScheduler_Abstract_ListTable.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: mailchimp, ecommerce, email, woocommerce
woocommerce-mailchimp/woocommerce-mailchimp.php 85% from 13 tests
The primary PHP file in "WP WooCommerce Mailchimp" version 2.4.12 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin5,947 lines of code in 76 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 70 | 1,809 | 3,538 | 5,251 |
JavaScript | 1 | 71 | 23 | 350 |
PO File | 1 | 55 | 66 | 152 |
SVG | 1 | 0 | 1 | 140 |
CSS | 1 | 7 | 0 | 41 |
XML | 2 | 2 | 0 | 13 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 12.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 60 | |
▷ Abstract classes | 9 | 15.00% |
▷ Concrete classes | 51 | 85.00% |
▷ Final classes | 9 | 17.65% |
Methods | 503 | |
▷ Static methods | 58 | 11.53% |
▷ Public methods | 385 | 76.54% |
▷ Protected methods | 93 | 18.49% |
▷ Private methods | 25 | 4.97% |
Functions | 22 | |
▷ Named functions | 18 | 81.82% |
▷ Anonymous functions | 4 | 18.18% |
Constants | 33 | |
▷ Global constants | 10 | 30.30% |
▷ Class constants | 23 | 69.70% |
▷ Public constants | 23 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.52MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 8.86KB | 4.57KB | ▼ 48.42% |
assets/icon-500x500.png | 35.29KB | 15.56KB | ▼ 55.92% |
assets/icon-256x256.png | 17.98KB | 8.53KB | ▼ 52.58% |
assets/screenshot-2.png | 127.91KB | 44.09KB | ▼ 65.53% |
assets/screenshot-1.png | 144.82KB | 52.06KB | ▼ 64.05% |