Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼10.44ms] Passed 4 tests
An overview of server-side resources used by Decorator - WooCommerce Email Customizer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 44.88 ▲3.20 |
Dashboard /wp-admin | 3.37 ▲0.02 | 46.75 ▼15.54 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 44.92 ▼3.70 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 84.52 ▼20.44 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.09 ▼2.06 |
Server storage [IO: ▲3.54MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 137 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Decorator - WooCommerce Email Customizer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲51 | 14.38 ▼0.23 | 1.70 ▼0.02 | 46.16 ▲2.89 |
Dashboard /wp-admin | 2,203 ▲25 | 5.55 ▼0.10 | 82.49 ▼31.80 | 38.95 ▼5.60 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 1.95 ▼0.03 | 33.89 ▼2.78 | 33.77 ▼0.23 |
Add New Post /wp-admin/post-new.php | 1,534 ▼2 | 23.52 ▲0.34 | 637.65 ▼40.42 | 52.02 ▼5.73 |
Media Library /wp-admin/upload.php | 1,405 ▲2 | 4.20 ▼0.00 | 95.46 ▼4.16 | 43.76 ▼0.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, 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 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/decorator-woocommerce-email-customizer/includes/rp-decorator-uninstall-feedback.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/decorator-woocommerce-email-customizer/includes/views/wt_custom_header.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: email designer, email templates, email customizer, woocommerce email customizer, woocommerce emails
decorator-woocommerce-email-customizer/decorator.php 92% from 13 tests
"Decorator - WooCommerce Email Customizer" version 1.2.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("decorator-woocommerce-email-customizer.php" instead of "decorator.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin21,200 lines of code in 87 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 64 | 1,207 | 2,082 | 9,507 |
PO File | 5 | 2,605 | 3,525 | 7,158 |
CSS | 8 | 94 | 74 | 2,738 |
JavaScript | 5 | 179 | 81 | 1,077 |
SVG | 5 | 0 | 0 | 720 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please tend to the following items
- Please reduce cyclomatic complexity of methods to less than 100 (currently 134)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 64.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 323.00 |
Average method complexity | 6.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 134.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 162 | |
▷ Static methods | 61 | 37.65% |
▷ Public methods | 152 | 93.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 6.17% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
31 PNG files occupy 0.29MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/white/instagram.png | 1.55KB | 1.44KB | ▼ 6.87% |
assets/images/Banner.png | 253.97KB | 89.51KB | ▼ 64.76% |
assets/images/gray/facebook.png | 0.77KB | 0.61KB | ▼ 19.97% |
assets/images/black/vimeo.png | 0.95KB | 1.00KB | 0.00% |
assets/images/white/facebook.png | 0.65KB | 0.62KB | ▼ 4.81% |