Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.84ms] Passed 4 tests
Analyzing server-side resources used by Custom Emails for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.58 ▼7.72 |
Dashboard /wp-admin | 3.32 ▼0.02 | 45.00 ▼16.60 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.02 ▲2.29 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 88.82 ▼3.42 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.39 ▲0.40 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Custom Emails for WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.24 ▼0.52 | 1.68 ▼0.13 | 37.58 ▼5.55 |
Dashboard /wp-admin | 2,198 ▲20 | 5.62 ▼0.06 | 90.86 ▼27.29 | 38.49 ▼5.61 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.98 ▲0.03 | 41.00 ▲2.64 | 34.94 ▲1.85 |
Add New Post /wp-admin/post-new.php | 1,528 ▼7 | 23.30 ▼1.97 | 639.88 ▲1.00 | 64.56 ▼11.52 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.18 ▼0.02 | 93.94 ▼5.51 | 40.92 ▼2.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: woo commerce, custom email, custom emails, emails, email...
custom-emails-for-woocommerce/custom-emails-for-woocommerce.php Passed 13 tests
The entry point to "Custom Emails for WooCommerce" version 2.6.0 is a PHP file that has certain tags in its header comment area
33 characters long description:
Add custom emails to WooCommerce.
Code Analysis Passed 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 plugin2,169 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 405 | 1,391 | 2,169 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 31.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 96.00 |
Average method complexity | 3.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 1 | 9.09% |
Methods | 146 | |
▷ Static methods | 1 | 0.68% |
▷ Public methods | 146 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected