Benchmarks
Plugin footprint 82% 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.05MB] [CPU: ▲1.00ms] 75% from 4 tests
Server-side resources used by Email Template Designer - WP HTML Mail
The following require your attention
- CPU: Total CPU usage should be kept under 500.00ms (currently 2,031.24ms on /wp-admin/options-general.php?page=wp-html-mail)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 35.99 ▼1.93 |
Dashboard /wp-admin | 3.36 ▲0.05 | 48.29 ▲1.29 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 49.09 ▲5.11 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 93.13 ▲1.32 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.64 ▲3.31 |
Email template /wp-admin/options-general.php?page=wp-html-mail | 3.81 | 2,031.24 |
Server storage [IO: ▲1.84MB] [DB: ▲0.08MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 404 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
haet_mail_options |
haet_mail_plugin_options |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
haet_mail_theme_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Email Template Designer - WP HTML Mail: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.34 ▼1.03 | 1.99 ▲0.30 | 39.30 ▲1.03 |
Dashboard /wp-admin | 2,210 ▲22 | 5.81 ▲0.94 | 94.20 ▼11.22 | 37.55 ▼6.35 |
Posts /wp-admin/edit.php | 2,093 ▲25 | 2.05 ▲0.03 | 40.99 ▲6.48 | 34.65 ▲1.19 |
Add New Post /wp-admin/post-new.php | 1,550 ▲36 | 18.64 ▲0.98 | 625.42 ▼26.07 | 62.47 ▲1.95 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.18 ▼0.06 | 92.95 ▼5.41 | 42.87 ▼3.57 |
Email template /wp-admin/options-general.php?page=wp-html-mail | 1,924 | 13.84 | 267.44 | 173.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 9 options
- widget_recent-posts
- haet_mail_plugin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- haet_mail_theme_options
- widget_recent-comments
- haet_mail_options
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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 fix the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-html-mail/vendor/sabberworm/php-css-parser/tests/quickdump.php
- > /wp-content/plugins/wp-html-mail/views/admin/settings-template.php
- 83× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Sabberworm\\CSS\\Property\\AtRule' not found in wp-content/plugins/wp-html-mail/vendor/sabberworm/php-css-parser/lib/Sabberworm/CSS/Property/CSSNamespace.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Parser\\Handler\\HandlerInterface' not found in wp-content/plugins/wp-html-mail/vendor/symfony/css-selector/Parser/Handler/HashHandler.php:30
- > PHP Fatal error
Uncaught Error: Interface 'Sabberworm\\CSS\\Renderable' not found in wp-content/plugins/wp-html-mail/vendor/sabberworm/php-css-parser/lib/Sabberworm/CSS/Property/AtRule.php:8
- > PHP Warning
require(wp-content/plugins/wp-html-mail/vendor/voku/simple_html_dom/build/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/wp-html-mail/vendor/voku/simple_html_dom/build/generate_docs.php on line 3
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\XPath\\Extension\\ExtensionInterface' not found in wp-content/plugins/wp-html-mail/vendor/symfony/css-selector/XPath/Extension/AbstractExtension.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Parser\\ParserInterface' not found in wp-content/plugins/wp-html-mail/vendor/symfony/css-selector/Parser/Shortcut/EmptyStringParser.php:32
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\\XPath\\Extension\\AbstractExtension' not found in wp-content/plugins/wp-html-mail/vendor/symfony/css-selector/XPath/Extension/CombinationExtension.php:26
- > PHP Fatal error
Uncaught Error: Class 'voku\\helper\\AbstractSimpleXmlDomNode' not found in wp-content/plugins/wp-html-mail/vendor/voku/simple_html_dom/src/voku/helper/SimpleXmlDomNodeBlank.php:10
- > PHP Fatal error
Uncaught Error: Class 'voku\\helper\\AbstractSimpleHtmlDom' not found in wp-content/plugins/wp-html-mail/vendor/voku/simple_html_dom/src/voku/helper/SimpleHtmlDomBlank.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\ode\odeInterface' not found in wp-content/plugins/wp-html-mail/vendor/symfony/css-selector/Node/AbstractNode.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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: Please add images for these screenshots: #1 (Our template library), #2 (Use text or image header), #3 (set global font settings), #4 (append you contact details to the mail footer), #5 (turn template on and off for supported plugins)
- Tags: You are using too many tags: 11 tag instead of maximum 10
wp-html-mail/wp-html-mail.php Passed 13 tests
This is the main PHP file of "Email Template Designer - WP HTML Mail" version 3.4.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
80 characters long description:
Create your own professional email design for all your outgoing WordPress emails
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin18,426 lines of code in 238 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 161 | 3,215 | 6,269 | 14,002 |
Markdown | 8 | 558 | 1 | 1,519 |
PO File | 4 | 420 | 526 | 1,048 |
JavaScript | 8 | 110 | 73 | 788 |
JSON | 7 | 0 | 0 | 450 |
CSS | 45 | 46 | 19 | 311 |
HTML | 1 | 49 | 8 | 289 |
XML | 2 | 0 | 0 | 11 |
SVG | 2 | 0 | 0 | 8 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 12.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 167.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 21 | |
Interfaces | 15 | |
Traits | 0 | |
Classes | 135 | |
▷ Abstract classes | 14 | 10.37% |
▷ Concrete classes | 121 | 89.63% |
▷ Final classes | 4 | 3.31% |
Methods | 1,341 | |
▷ Static methods | 70 | 5.22% |
▷ Public methods | 1,240 | 92.47% |
▷ Protected methods | 39 | 2.91% |
▷ Private methods | 62 | 4.62% |
Functions | 44 | |
▷ Named functions | 6 | 13.64% |
▷ Anonymous functions | 38 | 86.36% |
Constants | 25 | |
▷ Global constants | 2 | 8.00% |
▷ Class constants | 23 | 92.00% |
▷ Public constants | 23 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
146 PNG files occupy 0.61MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/socialicons/flaticon-square-color/flickr-32.png | 0.40KB | 0.35KB | ▼ 13.17% |
images/socialicons/kulesza-circle-black/facebook-24.png | 0.46KB | 0.32KB | ▼ 30.85% |
images/wpforo-logo.png | 4.54KB | 4.73KB | 0.00% |
images/socialicons/kulesza-black/Element 3-32.png | 0.51KB | 0.33KB | ▼ 35.58% |
images/socialicons/kulesza-black/Element 8-24.png | 0.57KB | 0.37KB | ▼ 35.54% |