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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▲0.19ms] Passed 4 tests
Analyzing server-side resources used by Make Email Customizer for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 46.24 ▲4.45 |
Dashboard /wp-admin | 3.31 ▲0.00 | 42.42 ▼2.59 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.89 ▲4.20 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.82 ▼5.31 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.27 ▲5.79 |
Server storage [IO: ▲2.53MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 128 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Make Email Customizer 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,813 ▲42 | 13.24 ▼1.34 | 2.13 ▼0.19 | 42.11 ▼11.76 |
Dashboard /wp-admin | 2,216 ▲25 | 5.85 ▼0.06 | 110.92 ▲6.57 | 46.54 ▲4.07 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.02 ▲0.04 | 39.77 ▲4.30 | 34.88 ▲2.54 |
Add New Post /wp-admin/post-new.php | 1,546 ▲27 | 23.34 ▲0.15 | 595.52 ▼76.56 | 52.04 ▼11.31 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.20 ▼0.03 | 95.71 ▼7.91 | 43.70 ▼0.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% 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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to a member function mailer() on null in wp-content/plugins/make-email-customizer-for-woocommerce/pages/ec-admin-page.php:20
- > PHP Fatal error
Uncaught Error: Class 'Pelago\\Emogrifier\\HtmlProcessor\\AbstractHtmlProcessor' not found in wp-content/plugins/make-email-customizer-for-woocommerce/includes/Emogrifier/Emogrifier/HtmlProcessor/CssToAttributeConverter.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/make-email-customizer-for-woocommerce/includes/ec-shortcodes.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/make-email-customizer-for-woocommerce/pages/ec-preview-page.php:2
- > PHP Fatal error
Uncaught Error: Class 'Pelago\\Emogrifier\\HtmlProcessor\\AbstractHtmlProcessor' not found in wp-content/plugins/make-email-customizer-for-woocommerce/includes/Emogrifier/Emogrifier/HtmlProcessor/HtmlNormalizer.php:16
- > PHP Fatal error
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 83% from 29 tests
readme.txt 88% from 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
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
- Screenshots: Please add images for these screenshots: #3 (Screenshot of option page of Email Customizer Yellow Theme), #4 (Screenshot of option page of Email Customizer Pink Theme)
make-email-customizer-for-woocommerce/make.php 77% from 13 tests
This is the main PHP file of "Make Email Customizer for WooCommerce" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("make-email-customizer-for-woocommerce.php" instead of "make.php")
- Description: Keep the plugin description shorter than 140 characters (currently 148 characters long)
- 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
Good job! No executable or dangerous file extensions detected9,422 lines of code in 67 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 55 | 2,017 | 3,609 | 7,616 |
PO File | 1 | 196 | 263 | 525 |
JavaScript | 1 | 220 | 105 | 505 |
CSS | 7 | 73 | 68 | 374 |
HTML | 1 | 11 | 0 | 311 |
JSON | 1 | 0 | 0 | 70 |
SVG | 1 | 9 | 0 | 21 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 59.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 126.00 |
Average method complexity | 3.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 1 | 9.09% |
▷ Concrete classes | 10 | 90.91% |
▷ Final classes | 0 | 0.00% |
Methods | 249 | |
▷ Static methods | 37 | 14.86% |
▷ Public methods | 119 | 47.79% |
▷ Protected methods | 6 | 2.41% |
▷ Private methods | 124 | 49.80% |
Functions | 31 | |
▷ Named functions | 25 | 80.65% |
▷ Anonymous functions | 6 | 19.35% |
Constants | 29 | |
▷ Global constants | 5 | 17.24% |
▷ Class constants | 24 | 82.76% |
▷ Public constants | 24 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 1.59MB with 1.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 386.24KB | 161.12KB | ▼ 58.28% |
screenshot-3.png | 377.20KB | 154.91KB | ▼ 58.93% |
screenshot-4.png | 428.26KB | 171.52KB | ▼ 59.95% |
assets/images/help-icon.png | 14.73KB | 0.22KB | ▼ 98.48% |
assets/images/pe-icon.png | 1.18KB | 0.43KB | ▼ 63.61% |