Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.49MB] [CPU: ▲1.73ms] Passed 4 tests
An overview of server-side resources used by Mail Mage
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.97 ▲0.50 | 44.34 ▲7.65 |
Dashboard /wp-admin | 3.81 ▲0.46 | 50.71 ▼11.24 |
Posts /wp-admin/edit.php | 3.86 ▲0.50 | 52.19 ▲4.76 |
Add New Post /wp-admin/post-new.php | 6.42 ▲0.53 | 95.24 ▲5.75 |
Media Library /wp-admin/upload.php | 3.74 ▲0.50 | 44.47 ▲12.25 |
Mail Mage /wp-admin/tools.php?page=mail-mage | 3.70 | 36.27 |
Server storage [IO: ▲1.50MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 189 new files
Database: 4 new tables, 7 new options
New tables |
---|
wp_ewp_automation_queue_activity |
wp_ewp_subscribers |
wp_ewp_automation_woocommerce_carts |
wp_ewp_automation_queue |
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
ewp_last_ran |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Mail Mage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.45 ▲0.07 | 1.79 ▲0.08 | 38.09 ▼1.91 |
Dashboard /wp-admin | 2,210 ▲25 | 5.88 ▼0.00 | 107.51 ▲4.41 | 39.35 ▼6.07 |
Posts /wp-admin/edit.php | 2,090 ▼2 | 1.99 ▲0.02 | 36.47 ▼0.04 | 31.78 ▼2.45 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 23.33 ▲0.25 | 682.76 ▼7.99 | 53.91 ▲0.57 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.22 ▼0.06 | 110.59 ▲11.28 | 49.02 ▲4.36 |
Mail Mage /wp-admin/tools.php?page=mail-mage | 804 | 4.57 | 111.36 | 31.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The plugin did not uninstall successfully, leaving 4 tables in the database
- wp_ewp_subscribers
- wp_ewp_automation_queue_activity
- wp_ewp_automation_queue
- wp_ewp_automation_woocommerce_carts
- This plugin does not fully uninstall, leaving 7 options in the database
- ewp_last_ran
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- 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
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/mail-mage/frontend/views/emails/elements/button.php
- > /wp-content/plugins/mail-mage/frontend/views/admin.php
- > /wp-content/plugins/mail-mage/frontend/views/unsubscribe/layout/footer.php
- 98× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function view() on null in wp-content/plugins/mail-mage/frontend/views/unsubscribe/success.php:1
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\ode\\AbstractNode' not found in wp-content/plugins/mail-mage/vendor/symfony/css-selector/Node/SelectorNode.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\XPath\\Extension\\ExtensionInterface' not found in wp-content/plugins/mail-mage/vendor/symfony/css-selector/XPath/Extension/AbstractExtension.php:24
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\\Tests\ode\\AbstractNodeTest' not found in wp-content/plugins/mail-mage/vendor/symfony/css-selector/Tests/Node/FunctionNodeTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'EmailWP\\Common\\Automation\\AutomationManager' not found in wp-content/plugins/mail-mage/class/Free/Automation/AutomationManager.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/mail-mage/vendor/symfony/css-selector/Tests/Parser/Handler/AbstractHandlerTest.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/mail-mage/frontend/views/unsubscribe/layout/header.php:7
- > PHP Fatal error
Uncaught Error: Class 'EmailWP\\Common\\Event\\AbstractEvent' not found in wp-content/plugins/mail-mage/class/Common/Event/PostStatusChangeEvent.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/mail-mage/vendor/symfony/css-selector/Tests/Node/AbstractNodeTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'Pelago\\Emogrifier\\HtmlProcessor\\AbstractHtmlProcessor' not found in wp-content/plugins/mail-mage/vendor/pelago/emogrifier/src/Emogrifier/CssInliner.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: review reminder, cart recovery, product reviews, cart abandonment, customer reviews...
mail-mage/emailwp.php 85% from 13 tests
The primary PHP file in "Mail Mage" version 0.0.24 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("mail-mage.php" instead of "emailwp.php")
- Description: The description should be shorter than 140 characters (currently 169 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin13,493 lines of code in 183 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 166 | 2,837 | 5,913 | 11,799 |
Markdown | 5 | 226 | 0 | 966 |
HTML | 2 | 0 | 0 | 356 |
JSON | 3 | 0 | 0 | 284 |
XML | 3 | 3 | 0 | 51 |
JavaScript | 2 | 0 | 40 | 26 |
CSS | 2 | 4 | 0 | 11 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 8.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 100.00 |
Average method complexity | 2.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 42 | |
Interfaces | 9 | |
Traits | 2 | |
Classes | 138 | |
▷ Abstract classes | 10 | 7.25% |
▷ Concrete classes | 128 | 92.75% |
▷ Final classes | 0 | 0.00% |
Methods | 997 | |
▷ Static methods | 36 | 3.61% |
▷ Public methods | 765 | 76.73% |
▷ Protected methods | 31 | 3.11% |
▷ Private methods | 201 | 20.16% |
Functions | 33 | |
▷ Named functions | 3 | 9.09% |
▷ Anonymous functions | 30 | 90.91% |
Constants | 50 | |
▷ Global constants | 3 | 6.00% |
▷ Class constants | 47 | 94.00% |
▷ Public constants | 35 | 74.47% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
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 |
dist/img/avatar-72x72.png | 3.55KB | 2.23KB | ▼ 37.11% |