Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.73ms] Passed 4 tests
Server-side resources used by WooCommerce Send Emails
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 41.67 ▲3.97 |
Dashboard /wp-admin | 3.39 ▲0.08 | 42.97 ▼4.26 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 43.61 ▼1.81 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 92.15 ▼9.49 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 33.88 ▼3.34 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
WooCommerce Send Emails: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲67 | 14.74 ▲0.10 | 1.71 ▼0.14 | 45.68 ▲7.30 |
Dashboard /wp-admin | 2,219 ▲33 | 5.85 ▲0.96 | 109.05 ▲0.12 | 44.21 ▲3.98 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 1.97 ▼0.09 | 41.81 ▼0.39 | 34.99 ▼1.01 |
Add New Post /wp-admin/post-new.php | 1,558 ▲25 | 18.44 ▼4.54 | 603.84 ▼75.15 | 48.01 ▼11.78 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.19 ▼0.05 | 100.29 ▼12.12 | 44.45 ▼2.73 |
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 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% 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 trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/send-emails-for-woocommerce/pages/template-page.php:2
- > 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 79% from 29 tests
readme.txt 81% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
- Requires at least: Invalid plugin version format
- Screenshots: Add an image for screenshot #1 (Specify an email address and click "Send Email" (this will be pre-populated with the billing address of the order).)
send-emails-for-woocommerce/index.php 77% from 13 tests
The main PHP file in "WooCommerce Send Emails" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("send-emails-for-woocommerce.php" instead of "index.php")
- Domain Path: The domain path folder was not found ("/localization/")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin3,852 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 631 | 376 | 2,396 |
CSS | 9 | 108 | 82 | 570 |
PHP | 3 | 195 | 236 | 560 |
HTML | 1 | 11 | 0 | 298 |
JSON | 1 | 0 | 0 | 16 |
SVG | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 66.00 |
▷ Minimum class complexity | 66.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 3.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 5 | 21.74% |
▷ Public methods | 22 | 95.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.35% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.27MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 114.35KB | 46.63KB | ▼ 59.22% |
screenshot-2.png | 135.31KB | 49.71KB | ▼ 63.26% |
assets/images/help-icon.png | 1.16KB | 0.22KB | ▼ 80.73% |
assets/images/pe-icon.png | 1.18KB | 0.43KB | ▼ 63.61% |
screenshot-1.png | 19.53KB | 3.05KB | ▼ 84.39% |