Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.84ms] Passed 4 tests
Server-side resources used by Email Template Customizer for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.31 ▼5.56 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.66 ▼18.24 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.43 ▼1.71 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.93 ▼5.84 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.51 ▲0.07 |
Server storage [IO: ▲3.27MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 200 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Email Template Customizer for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.67 ▲0.33 | 1.67 ▼0.10 | 39.16 ▼6.17 |
Dashboard /wp-admin | 2,198 ▲18 | 5.64 ▼0.02 | 92.15 ▼6.95 | 44.19 ▼3.50 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.02 | 40.64 ▲3.79 | 36.01 ▼1.02 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.32 ▲0.03 | 615.75 ▼24.37 | 45.69 ▲1.91 |
Media Library /wp-admin/upload.php | 1,400 ▲9 | 4.21 ▲0.04 | 94.19 ▼8.68 | 40.06 ▼3.50 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
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)
Everything seems fine, however this is by no means an exhaustive test
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
Please take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/email-template-customizer-for-woo/includes/templates/email-template.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/email-template-customizer-for-woo/includes/support/survey.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2, #3 in email-template-customizer-for-woo/assets to your readme.txt
email-template-customizer-for-woo/email-template-customizer-for-woo.php 92% from 13 tests
The main PHP script in "Email Template Customizer for WooCommerce" version 1.2.1 is automatically included on every request by WordPress
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
There were no executable files found in this plugin17,982 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 966 | 134 | 6,033 |
JavaScript | 12 | 474 | 112 | 4,258 |
SVG | 4 | 0 | 12 | 3,847 |
CSS | 15 | 116 | 84 | 1,741 |
Sass | 2 | 373 | 18 | 1,641 |
PO File | 1 | 216 | 341 | 462 |
PHP code Passed 2 tests
An short overview of 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.48 |
Average class complexity | 56.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 244.00 |
Average method complexity | 4.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 193 | |
▷ Static methods | 35 | 18.13% |
▷ Public methods | 182 | 94.30% |
▷ Protected methods | 2 | 1.04% |
▷ Private methods | 9 | 4.66% |
Functions | 9 | |
▷ Named functions | 6 | 66.67% |
▷ Anonymous functions | 3 | 33.33% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
113 PNG files occupy 0.11MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/yt-black-border.png | 0.86KB | 0.46KB | ▼ 47.06% |
assets/img/home-white-black.png | 0.47KB | 0.29KB | ▼ 38.43% |
assets/img/yt-color-white.png | 0.61KB | 0.40KB | ▼ 34.99% |
assets/img/home-black-border.png | 0.46KB | 0.31KB | ▼ 31.55% |
assets/img/twi-cyan.png | 0.73KB | 0.42KB | ▼ 42.80% |