Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.87ms] Passed 4 tests
Analyzing server-side resources used by Email Customizer for WooCommerce | Drag and Drop Email Templates Builder
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.91 ▼4.61 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.21 ▼14.13 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 42.76 ▼4.87 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.52 ▼15.86 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.37 ▲1.59 |
Server storage [IO: ▲1.46MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 153 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Email Customizer for WooCommerce | Drag and Drop Email Templates Builder
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.32 ▼0.03 | 1.90 ▲0.19 | 43.90 ▲0.68 |
Dashboard /wp-admin | 2,198 ▲23 | 5.64 ▲0.02 | 88.36 ▼33.27 | 44.08 ▲1.91 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▼0.08 | 37.00 ▲0.66 | 33.33 ▼0.96 |
Add New Post /wp-admin/post-new.php | 1,526 ▼9 | 23.42 ▲5.04 | 687.90 ▲34.84 | 68.45 ▲5.19 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.21 ▼0.00 | 95.89 ▼4.35 | 40.41 ▼6.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 9× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/email-customizer-for-woocommerce/classes/inc/templates/customer_processing_order.php
- > /wp-content/plugins/email-customizer-for-woocommerce/classes/inc/templates/customer_refunded_order.php
- > /wp-content/plugins/email-customizer-for-woocommerce/classes/inc/templates/customer_completed_order.php
- > /wp-content/plugins/email-customizer-for-woocommerce/classes/inc/templates/customer_invoice.php
- > /wp-content/plugins/email-customizer-for-woocommerce/classes/inc/templates/customer_note.php
- > /wp-content/plugins/email-customizer-for-woocommerce/classes/inc/templates/admin_cancelled_order.php
- > /wp-content/plugins/email-customizer-for-woocommerce/classes/inc/templates/admin_new_order.php
- > /wp-content/plugins/email-customizer-for-woocommerce/classes/inc/templates/customer_on_hold_order.php
- > /wp-content/plugins/email-customizer-for-woocommerce/classes/inc/templates/admin_failed_order.php
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/email-customizer-for-woocommerce/classes/inc/templates/customer_note.php:45
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/email-customizer-for-woocommerce/classes/inc/templates/customer_refunded_order.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/email-customizer-for-woocommerce/classes/inc/templates/customer_new_account.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/email-customizer-for-woocommerce/classes/inc/templates/customer_on_hold_order.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/email-customizer-for-woocommerce/classes/inc/templates/admin_cancelled_order.php:49
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/email-customizer-for-woocommerce/classes/inc/templates/admin_failed_order.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/email-customizer-for-woocommerce/classes/inc/templates/customer_reset_password.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/email-customizer-for-woocommerce/classes/inc/templates/customer_processing_order.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/email-customizer-for-woocommerce/classes/inc/templates/customer_completed_order.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/email-customizer-for-woocommerce/classes/inc/templates/customer_invoice.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)
Everything seems fine, but this is not an exhaustive test
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: woocommerce email customizer, woocommerce transactional emails, email customizer, email template, email designer
email-customizer-for-woocommerce/email-customizer-for-woocommerce.php 77% from 13 tests
The main PHP script in "Email Customizer for WooCommerce | Drag and Drop Email Templates Builder" version 2.6.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.9" instead of "3.0.0")
- Domain Path: The domain path folder does not exist ("/languages")
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
Good job! No executable or dangerous file extensions detected6,993 lines of code in 81 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 470 | 786 | 4,123 |
SVG | 59 | 56 | 52 | 2,866 |
JavaScript | 3 | 0 | 0 | 3 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 68.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 139.00 |
Average method complexity | 3.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 187 | |
▷ Static methods | 45 | 24.06% |
▷ Public methods | 160 | 85.56% |
▷ Protected methods | 2 | 1.07% |
▷ Private methods | 25 | 13.37% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 8 | 57.14% |
▷ Class constants | 6 | 42.86% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
68 compressed PNG files occupy 0.36MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/social-icons/youtube-color-fill-square.png | 2.76KB | 2.76KB | 0.00% |
assets/images/social-icons/messenger-color.png | 2.14KB | 2.14KB | 0.00% |
assets/images/linkedin.png | 4.32KB | 2.65KB | ▼ 38.72% |
assets/images/product.png | 44.26KB | 29.65KB | ▼ 33.00% |
assets/images/social-icons/linkedin-color-fill-square.png | 2.47KB | 2.47KB | 0.00% |