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
Installer ran successfully
Server metrics [RAM: ▲1.67MB] [CPU: ▲8.26ms] Passed 4 tests
An overview of server-side resources used by YayMail - WooCommerce Email Customizer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.11 ▲1.64 | 54.09 ▲12.04 |
Dashboard /wp-admin | 4.97 ▲1.67 | 59.78 ▲10.00 |
Posts /wp-admin/edit.php | 5.03 ▲1.66 | 59.08 ▲8.65 |
Add New Post /wp-admin/post-new.php | 7.58 ▲1.69 | 92.64 ▲3.02 |
Media Library /wp-admin/upload.php | 4.94 ▲1.71 | 48.16 ▲11.36 |
Other plugins /wp-admin/admin.php?page=yaycommerce-other-plugins | 4.91 | 44.10 |
Help /wp-admin/admin.php?page=yaycommerce-help | 4.70 | 35.06 |
Server storage [IO: ▲5.27MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 227 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
yaymail_settings |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
YayMail - WooCommerce 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,849 ▲87 | 14.40 ▲0.06 | 1.67 ▼0.06 | 43.34 ▼2.42 |
Dashboard /wp-admin | 2,254 ▲80 | 5.66 ▲0.01 | 91.59 ▼3.60 | 42.57 ▼1.36 |
Posts /wp-admin/edit.php | 2,166 ▲60 | 2.03 ▲0.09 | 39.40 ▼0.60 | 32.21 ▼4.27 |
Add New Post /wp-admin/post-new.php | 1,571 ▲45 | 25.21 ▲1.91 | 609.71 ▼93.20 | 65.45 ▲9.36 |
Media Library /wp-admin/upload.php | 1,459 ▲62 | 4.31 ▲0.16 | 98.38 ▼2.15 | 42.55 ▼1.79 |
Other plugins /wp-admin/admin.php?page=yaycommerce-other-plugins | 1,137 | 1.84 | 33.78 | 31.23 |
Help /wp-admin/admin.php?page=yaycommerce-help | 28 | 0.41 | 0.06 | 3.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- yaymail_settings
Smoke tests 25% 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 no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/yaymail/views/templates/emails/additional-order-details.php
- 64× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/yaymail/includes/Templates/Elements/YayMail/OrderItemDownload.php:2
- > PHP Notice
Undefined variable: attrs in wp-content/plugins/yaymail/includes/Templates/Elements/YayMail/Images.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/yaymail/includes/Templates/Elements/YayMail/TextList.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/yaymail/includes/Templates/Elements/YayMail/ElementText.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/yaymail/includes/Templates/Elements/YayMail/AdditionalOrderInformation.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/yaymail/includes/Templates/Elements/YayMail/Hook.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/yaymail/includes/Templates/Elements/YayMail/ImageList.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function self_admin_url() in wp-content/plugins/yaymail/includes/License/views/update-plugin-notification.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/yaymail/includes/Templates/Elements/YayMail/ShippingAddress.php:2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/yaymail/includes/Templates/Elements/YayMail/Images.php on line 3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=yaycommerce-help
- > Network (severe)
wp-admin/admin.php?page=yaycommerce-help - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: email customizer, woocommerce emails, email designer, email templates, woocommerce email customizer
yaymail/yaymail.php 92% from 13 tests
The main PHP script in "YayMail - WooCommerce Email Customizer" version 3.4.1 is automatically included on every request by WordPress
The following require your attention:
- Requires at least: The required version number must match the one declared in readme.txt ("3.0" instead of "3.0.0")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin35,129 lines of code in 150 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 115 | 1,360 | 817 | 17,070 |
JavaScript | 24 | 1,385 | 1,696 | 10,807 |
PO File | 5 | 2,830 | 4,140 | 6,326 |
CSS | 5 | 96 | 8 | 923 |
SVG | 1 | 0 | 0 | 3 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
These items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 102)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 37.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 353.00 |
Average method complexity | 5.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 102.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 39 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 39 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 313 | |
▷ Static methods | 112 | 35.78% |
▷ Public methods | 296 | 94.57% |
▷ Protected methods | 3 | 0.96% |
▷ Private methods | 14 | 4.47% |
Functions | 25 | |
▷ Named functions | 5 | 20.00% |
▷ Anonymous functions | 20 | 80.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
70 compressed PNG files occupy 0.16MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/dist/images/SocialIcons/SolidDark/Telegram.png | 0.57KB | 0.59KB | 0.00% |
assets/dist/images/SocialIcons/Colorful/Vimeo.png | 1.70KB | 1.45KB | ▼ 14.49% |
assets/dist/images/SocialIcons/LineDark/Instagram.png | 18.58KB | 10.23KB | ▼ 44.90% |
assets/dist/images/SocialIcons/LineDark/Pinterest.png | 1.91KB | 2.13KB | 0.00% |
assets/dist/images/SocialIcons/LineDark/Messenger.png | 1.98KB | 2.14KB | 0.00% |