Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.45MB] [CPU: ▲318.26ms] 75% from 4 tests
Server-side resources used by Emailchef for WooCommerce
It is recommended to improve the following
- Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 318.26ms on /wp-admin/admin.php?page=emailchef-debug)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.94 ▲0.47 | 348.47 ▲306.50 |
Dashboard /wp-admin | 3.76 ▲0.41 | 406.21 ▲347.62 |
Posts /wp-admin/edit.php | 3.81 ▲0.45 | 357.75 ▲313.74 |
Add New Post /wp-admin/post-new.php | 6.37 ▲0.48 | 421.91 ▲328.81 |
Media Library /wp-admin/upload.php | 3.68 ▲0.45 | 358.95 ▲323.97 |
Emailchef DEBUG /wp-admin/admin.php?page=emailchef-debug | 3.66 | 266.24 |
Server storage [IO: ▲0.69MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 23 new files
Database: 1 new table, 13 new options
New tables |
---|
wp_emailchef_abcart |
New WordPress options |
---|
wc_emailchef_api_user |
can_compress_scripts |
widget_theysaidso_widget |
wc_emailchef_api_pass |
wc_emailchef_enabled |
db_upgraded |
widget_recent-posts |
wc_emailchef_policy_type |
widget_recent-comments |
wc_emailchef_list |
... |
Browser metrics Passed 4 tests
Emailchef for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲72 | 14.06 ▼0.17 | 2.25 ▲0.52 | 41.47 ▼2.30 |
Dashboard /wp-admin | 2,205 ▲28 | 5.70 ▲0.15 | 83.80 ▼17.32 | 38.63 ▼4.73 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 1.94 ▼0.06 | 38.68 ▲2.46 | 35.16 ▼4.42 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 20.70 ▼2.83 | 643.98 ▲23.46 | 53.44 ▼5.36 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.17 ▼0.01 | 107.48 ▲11.88 | 44.79 ▲4.70 |
Emailchef DEBUG /wp-admin/admin.php?page=emailchef-debug | 811 | 1.69 | 25.38 | 25.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Please fix the following items
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/emailchef-for-woocommerce/cli/import.php
- > /wp-content/plugins/emailchef-for-woocommerce/emails/opt_in.php
- > /wp-content/plugins/emailchef-for-woocommerce/emails/opt_in_it.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/emailchef-for-woocommerce/conf/custom_fields.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function WCEC() in wp-content/plugins/emailchef-for-woocommerce/pages/admin-debug.php:7
- > 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 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: email, email campaigns, e-commerce, mail, emailchef...
emailchef-for-woocommerce/woocommerce-emailchef.php 85% from 13 tests
"Emailchef for WooCommerce" version 4.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("emailchef-for-woocommerce.php" instead of "woocommerce-emailchef.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 141 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected17,297 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 13,800 |
PHP | 13 | 919 | 323 | 2,961 |
PO File | 1 | 128 | 133 | 356 |
Markdown | 1 | 86 | 0 | 131 |
JavaScript | 2 | 12 | 5 | 48 |
CSS | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 36.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 91.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 2 | 33.33% |
Methods | 130 | |
▷ Static methods | 8 | 6.15% |
▷ Public methods | 109 | 83.85% |
▷ Protected methods | 2 | 1.54% |
▷ Private methods | 19 | 14.62% |
Functions | 18 | |
▷ Named functions | 12 | 66.67% |
▷ Anonymous functions | 6 | 33.33% |
Constants | 10 | |
▷ Global constants | 10 | 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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/img/placeholder.png | 3.94KB | 2.34KB | ▼ 40.66% |
dist/img/emailchef.png | 8.15KB | 4.02KB | ▼ 50.61% |