Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.57MB] [CPU: ▼3.16ms] Passed 4 tests
A check of server-side resources used by MailerLite - WooCommerce integration
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.07 ▲0.61 | 44.45 ▲2.19 |
Dashboard /wp-admin | 3.90 ▲0.60 | 50.44 ▼9.65 |
Posts /wp-admin/edit.php | 3.96 ▲0.60 | 53.62 ▲7.49 |
Add New Post /wp-admin/post-new.php | 6.43 ▲0.54 | 85.92 ▼10.03 |
Media Library /wp-admin/upload.php | 3.77 ▲0.53 | 39.70 ▲4.86 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 60 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_mailerlite_checkouts |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by MailerLite - WooCommerce integration
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲18 | 14.37 ▲0.13 | 1.71 ▼0.46 | 42.48 ▼5.84 |
Dashboard /wp-admin | 2,198 ▲24 | 5.61 ▲0.10 | 89.26 ▼17.56 | 37.54 ▼8.64 |
Posts /wp-admin/edit.php | 2,097 ▼0 | 1.95 ▼0.03 | 39.29 ▼1.10 | 34.43 ▼2.88 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 21.10 ▼2.21 | 701.51 ▲42.32 | 58.36 ▲6.46 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.20 ▲0.06 | 97.54 ▲3.32 | 40.92 ▲1.08 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/woo-mailerlite/includes/views/components/woo-mailerlite-modals.php
- > /wp-content/plugins/woo-mailerlite/includes/views/components/wizard-breadcrumb-component.php
- 21× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'MailerLite\\Includes\\Classes\\Singleton' not found in wp-content/plugins/woo-mailerlite/includes/classes/process/CheckoutProcess.php:7
- > PHP Fatal error
Uncaught Error: Class 'MailerLite\\Includes\\Classes\\Singleton' not found in wp-content/plugins/woo-mailerlite/includes/classes/settings/ShopSettings.php:11
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/woo-mailerlite/includes/views/app.php:39
- > PHP Fatal error
Uncaught Error: Class 'MailerLite\\Includes\\Classes\\Settings\\MailerLiteSettings' not found in wp-content/plugins/woo-mailerlite/includes/hooks.php:52
- > PHP Fatal error
Uncaught Error: Class 'MailerLite\\Includes\\Classes\\Singleton' not found in wp-content/plugins/woo-mailerlite/includes/classes/process/OrderProcess.php:11
- > PHP Fatal error
Uncaught Error: Class 'MailerLite\\Includes\\Classes\\Singleton' not found in wp-content/plugins/woo-mailerlite/includes/classes/settings/SynchronizeSettings.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-mailerlite/includes/functions.php:143
- > PHP Notice
Undefined variable: currentStep in wp-content/plugins/woo-mailerlite/includes/views/components/wizard-breadcrumb-component.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-mailerlite/includes/admin/hooks.php:103
- > PHP Notice
Undefined variable: currentStep in wp-content/plugins/woo-mailerlite/includes/views/components/wizard-breadcrumb-component.php on line 7
- > 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 errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Donate link: Please fix this invalid url: "Donate link: https://www.mailerlite.com/"
woo-mailerlite/woo-mailerlite.php 85% from 13 tests
The principal PHP file in "MailerLite - WooCommerce integration" v. 2.0.4 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 238 characters long)
- Requires at least: Required version must match the one declared in readme.txt ("3.0.1" instead of "3.0.0")
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
No dangerous file extensions were detected9,346 lines of code in 56 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 2,216 | 3,609 | 6,789 |
JavaScript | 9 | 272 | 161 | 1,391 |
CSS | 4 | 62 | 9 | 992 |
LESS | 2 | 19 | 14 | 89 |
JSON | 2 | 0 | 0 | 48 |
Markdown | 1 | 9 | 0 | 22 |
SVG | 2 | 0 | 1 | 15 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 22.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 83.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 2 | 9.09% |
▷ Concrete classes | 20 | 90.91% |
▷ Final classes | 0 | 0.00% |
Methods | 403 | |
▷ Static methods | 2 | 0.50% |
▷ Public methods | 388 | 96.28% |
▷ Protected methods | 2 | 0.50% |
▷ Private methods | 13 | 3.23% |
Functions | 88 | |
▷ Named functions | 79 | 89.77% |
▷ Anonymous functions | 9 | 10.23% |
Constants | 10 | |
▷ Global constants | 7 | 70.00% |
▷ Class constants | 3 | 30.00% |
▷ Public constants | 3 | 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