Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.68ms] Passed 4 tests
Analyzing server-side resources used by Email Templates Customizer and Designer for WordPress and WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.54 ▼2.92 |
Dashboard /wp-admin | 3.35 ▲0.01 | 48.25 ▼11.09 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 48.72 ▲0.93 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 84.43 ▼14.76 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 31.62 ▼1.94 |
Server storage [IO: ▲1.15MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 161 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Email Templates Customizer and Designer for WordPress and WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲103 | 14.32 ▼0.04 | 1.60 ▼0.19 | 43.59 ▼0.29 |
Dashboard /wp-admin | 2,249 ▲69 | 5.72 ▲0.07 | 105.15 ▲6.12 | 42.34 ▼1.51 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.02 ▲0.00 | 43.32 ▲8.04 | 36.23 ▲0.61 |
Add New Post /wp-admin/post-new.php | 1,539 ▲10 | 23.17 ▼0.02 | 627.55 ▼42.77 | 51.21 ▼1.56 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.21 ▲0.00 | 102.08 ▲5.70 | 43.05 ▲0.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/email-templates/includes/customize-controls/class-font-size-customize-control.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/email-templates/admin/test.php:134
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/email-templates/includes/customize-controls/class-send-mail-customize-control.php:2
- > PHP Fatal error
Uncaught Error: Class 'Mailtpl' not found in wp-content/plugins/email-templates/admin/templates/default.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_customize_preview() in wp-content/plugins/email-templates/admin/templates/partials/email-content.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/email-templates/admin/templates/partials/default-message.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Screenshots: No descriptions were found for these screenshots #10, #11, #12, #13, #14, #8, #9 in email-templates/assets to your readme.txt
email-templates/email-templates.php Passed 13 tests
The entry point to "Email Templates Customizer and Designer for WordPress and WooCommerce" version 1.4.3 is a PHP file that has certain tags in its header comment area
33 characters long description:
Beautify WordPress default emails
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
Everything looks great! No dangerous files found in this plugin10,343 lines of code in 81 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 64 | 1,014 | 2,998 | 8,678 |
CSS | 6 | 65 | 118 | 811 |
JavaScript | 7 | 126 | 111 | 646 |
PO File | 1 | 46 | 60 | 120 |
SVG | 2 | 0 | 0 | 45 |
XML | 1 | 0 | 0 | 43 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 117)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 24.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 169.00 |
Average method complexity | 4.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 117.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 193 | |
▷ Static methods | 67 | 34.72% |
▷ Public methods | 168 | 87.05% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 25 | 12.95% |
Functions | 6 | |
▷ Named functions | 2 | 33.33% |
▷ Anonymous functions | 4 | 66.67% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
53 compressed PNG files occupy 0.20MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/white/facebook.png | 0.65KB | 0.62KB | ▼ 4.81% |
assets/images/white/linkedin.png | 0.77KB | 0.78KB | 0.00% |
assets/images/black/digg.png | 0.46KB | 0.38KB | ▼ 18.74% |
assets/images/white/pinterest.png | 1.31KB | 1.24KB | ▼ 5.51% |
assets/images/black/twitter.png | 0.86KB | 0.90KB | 0.00% |