Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▼8.00ms] Passed 4 tests
Server-side resources used by WooCommerce Email Template Customizer - Email Creator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 41.91 ▼3.63 |
Dashboard /wp-admin | 3.47 ▲0.12 | 55.81 ▼13.61 |
Posts /wp-admin/edit.php | 3.53 ▲0.16 | 54.04 ▲4.54 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 96.23 ▼14.85 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 37.62 ▲0.10 |
Server storage [IO: ▲1.92MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 599 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Email Template Customizer - Email Creator
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.26 ▼0.10 | 1.75 ▲0.06 | 39.43 ▼2.07 |
Dashboard /wp-admin | 2,203 ▲29 | 5.56 ▼0.02 | 82.83 ▼10.19 | 43.66 ▲3.54 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.03 ▼0.00 | 40.05 ▲1.00 | 37.57 ▲2.79 |
Add New Post /wp-admin/post-new.php | 1,532 ▲4 | 23.61 ▲0.53 | 694.12 ▼3.15 | 59.22 ▲3.72 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.28 ▲0.10 | 98.63 ▼14.46 | 46.90 ▼2.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 50% 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)
Even though everything seems fine, this is not an exhaustive test
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 fix the following
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/email-creatior/vendor/wilokecom/phpcli/hello.php
- > /wp-content/plugins/email-creatior/vendor/wilokecom/phpcli/wiloke.php
- > /wp-content/plugins/email-creatior/vendor/wilokecom/phpcli/index.php
- 336× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/email-creatior/vendor/twig/twig/src/Node/Expression/Binary/NotEqualBinary.php:16
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Console\\Helper\\Helper' not found in wp-content/plugins/email-creatior/vendor/wilokecom/phpcli/vendor/symfony/console/Symfony/Component/Console/Helper/QuestionHelper.php:25
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/email-creatior/vendor/wilokecom/phpcli/vendor/symfony/console/Symfony/Component/Console/Tests/Input/InputDefinitionTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/email-creatior/vendor/wilokecom/phpcli/vendor/symfony/console/Symfony/Component/Console/Tests/Formatter/OutputFormatterStyleTest.php:16
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/email-creatior/vendor/wilokecom/phpcli/vendor/symfony/console/Symfony/Component/Console/Input/ArgvInput.php on line 264
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/email-creatior/vendor/wilokecom/phpcli/vendor/symfony/console/Symfony/Component/Console/Tests/Input/StringInputTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/email-creatior/vendor/wilokecom/phpcli/components/Elementor/SampleElementor.php:6
- > PHP Fatal error
Uncaught Error: Class 'Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/email-creatior/vendor/twig/twig/src/TokenParser/SetTokenParser.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/email-creatior/src/Email/Templates/customer-reset-password.php:2
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/email-creatior/vendor/wilokecom/phpcli/vendor/symfony/console/Symfony/Component/Console/Tests/Formatter/OutputFormatterStyleStackTest.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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
These attributes need your attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in email-creatior/assets to your readme.txt
email-creatior/emailcreator.php 85% from 13 tests
The entry point to "WooCommerce Email Template Customizer - Email Creator" version 1.1.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 164 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("email-creatior.php" instead of "emailcreator.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
These items require your attention
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .exe - Executable in Windows
- ☣ wp-content/plugins/email-creatior/vendor/wilokecom/phpcli/vendor/symfony/console/Symfony/Component/Console/Resources/bin/hiddeninput.exe
- .exe - Executable in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 461 | 7,594 | 14,978 | 37,439 |
Markdown | 26 | 512 | 0 | 1,334 |
JSON | 27 | 0 | 0 | 922 |
JavaScript | 1 | 19 | 0 | 907 |
XML | 17 | 24 | 0 | 434 |
YAML | 3 | 41 | 34 | 169 |
CSS | 1 | 4 | 0 | 27 |
reStructuredText | 1 | 8 | 5 | 10 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 10.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 367.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 74 | |
Interfaces | 29 | |
Traits | 26 | |
Classes | 363 | |
▷ Abstract classes | 21 | 5.79% |
▷ Concrete classes | 342 | 94.21% |
▷ Final classes | 59 | 17.25% |
Methods | 2,812 | |
▷ Static methods | 530 | 18.85% |
▷ Public methods | 2,380 | 84.64% |
▷ Protected methods | 238 | 8.46% |
▷ Private methods | 194 | 6.90% |
Functions | 255 | |
▷ Named functions | 179 | 70.20% |
▷ Anonymous functions | 76 | 29.80% |
Constants | 108 | |
▷ Global constants | 15 | 13.89% |
▷ Class constants | 93 | 86.11% |
▷ Public constants | 92 | 98.92% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/Dashboard/Assets/logo.png | 0.39KB | 0.32KB | ▼ 19.25% |