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
Install script ran successfully
Server metrics [RAM: ▲0.35MB] [CPU: ▼0.75ms] Passed 4 tests
Server-side resources used by Email Customizer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.38 | 38.30 ▼2.92 |
Dashboard /wp-admin | 3.69 ▲0.38 | 51.86 ▲5.08 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 46.49 ▼3.79 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.32 | 92.54 ▲3.47 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 33.94 ▲0.23 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 131 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
email-customizer-redirected |
widget_theysaidso_widget |
email_customizer |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Email Customizer: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.56 ▲0.00 | 1.70 ▲0.04 | 45.80 ▲2.55 |
Dashboard /wp-admin | 2,196 ▲19 | 5.60 ▲0.02 | 81.99 ▼18.05 | 36.41 ▼6.11 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.99 ▲0.04 | 33.04 ▼7.59 | 35.99 ▼1.88 |
Add New Post /wp-admin/post-new.php | 1,536 ▲1 | 23.20 ▲5.12 | 655.25 ▲44.01 | 56.36 ▼5.03 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.25 ▲0.04 | 96.86 ▼0.16 | 42.76 ▲1.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-comments
- widget_recent-posts
- email-customizer-redirected
- can_compress_scripts
- email_customizer
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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 take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/email-customizer/includes/template/content-bottom.php
- 65× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/email-customizer/vendor/symfony/css-selector/Tests/Parser/Shortcut/EmptyStringParserTest.php:21
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/email-customizer/vendor/symfony/css-selector/Tests/Parser/Handler/AbstractHandlerTest.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Parser\\Handler\\HandlerInterface' not found in wp-content/plugins/email-customizer/vendor/symfony/css-selector/Parser/Handler/WhitespaceHandler.php:28
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\\Tests\\Parser\\Handler\\AbstractHandlerTest' not found in wp-content/plugins/email-customizer/vendor/symfony/css-selector/Tests/Parser/Handler/NumberHandlerTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/email-customizer/vendor/symfony/css-selector/Tests/Node/SpecificityTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\ode\\AbstractNode' not found in wp-content/plugins/email-customizer/vendor/symfony/css-selector/Node/SelectorNode.php:24
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\\Exception\\ParseException' not found in wp-content/plugins/email-customizer/vendor/symfony/css-selector/Exception/ExpressionErrorException.php:22
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/email-customizer/vendor/symfony/css-selector/Tests/Parser/TokenStreamTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\\XPath\\Extension\\AbstractExtension' not found in wp-content/plugins/email-customizer/vendor/symfony/css-selector/XPath/Extension/CombinationExtension.php:26
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\\Tests\ode\\AbstractNodeTest' not found in wp-content/plugins/email-customizer/vendor/symfony/css-selector/Tests/Node/AttributeNodeTest.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% 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: html emails, email template, email customizer, email, email designer
email-customizer/email-customizer.php 92% from 13 tests
The main file in "Email Customizer" v. 1.0.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 146 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin6,973 lines of code in 115 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 106 | 1,528 | 3,471 | 6,293 |
HTML | 2 | 0 | 0 | 356 |
JSON | 1 | 0 | 0 | 130 |
JavaScript | 2 | 35 | 33 | 114 |
CSS | 1 | 7 | 0 | 39 |
Markdown | 2 | 6 | 0 | 30 |
XML | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 5.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 1.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 21 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 85 | |
▷ Abstract classes | 4 | 4.71% |
▷ Concrete classes | 81 | 95.29% |
▷ Final classes | 2 | 2.47% |
Methods | 515 | |
▷ Static methods | 56 | 10.87% |
▷ Public methods | 485 | 94.17% |
▷ Protected methods | 15 | 2.91% |
▷ Private methods | 15 | 2.91% |
Functions | 15 | |
▷ Named functions | 7 | 46.67% |
▷ Anonymous functions | 8 | 53.33% |
Constants | 13 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 13 | 100.00% |
▷ Public constants | 13 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/assets/twitter-white.png | 0.58KB | 0.58KB | ▼ 0.67% |
includes/assets/facebook-white.png | 0.36KB | 0.17KB | ▼ 51.62% |
includes/assets/twitter-black.png | 0.54KB | 0.58KB | 0.00% |
includes/assets/instagram-black.png | 0.61KB | 0.63KB | 0.00% |
includes/assets/facebook-black.png | 0.35KB | 0.17KB | ▼ 49.86% |