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.12MB] [CPU: ▼7.81ms] Passed 4 tests
A check of server-side resources used by Kadence WooCommerce Email Designer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 36.82 ▼7.05 |
Dashboard /wp-admin | 3.44 ▲0.09 | 44.43 ▼19.90 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 49.11 ▲4.34 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 95.26 ▼0.70 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 34.56 ▼3.60 |
Server storage [IO: ▲5.75MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 155 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Kadence WooCommerce Email Designer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.35 ▼0.31 | 1.53 ▼0.21 | 37.18 ▼9.78 |
Dashboard /wp-admin | 2,206 ▲28 | 5.62 ▼0.09 | 89.69 ▼11.08 | 41.26 ▼1.75 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 1.99 ▲0.01 | 40.60 ▲1.67 | 37.50 ▲3.59 |
Add New Post /wp-admin/post-new.php | 1,532 ▲4 | 23.05 ▼0.02 | 605.36 ▼87.48 | 52.19 ▲2.18 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.20 ▼0.07 | 98.22 ▼15.18 | 44.98 ▼5.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kadence-woocommerce-email-designer/kadence-woocommerce-email-designer.php:53
- > PHP Fatal error
Uncaught Error: Class 'Kadence_Woomail_Customizer' not found in wp-content/plugins/kadence-woocommerce-email-designer/templates/woo/emails/email-mobile-messaging.php:20
- > 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 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: woocommerce, customizer, customize, mail, email design...
kadence-woocommerce-email-designer/kadence-woocommerce-email-designer.php 85% from 13 tests
The principal PHP file in "Kadence WooCommerce Email Designer" v. 1.5.12 is loaded by WordPress automatically on each request
It is important to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("5.3" instead of "5.6.0")
- Description: The description should be shorter than 140 characters (currently 143 characters long)
Code Analysis 97% from 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
No dangerous file extensions were detected23,967 lines of code in 74 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 15 | 42,650 | 101,708 | 15,186 |
PHP | 47 | 784 | 2,333 | 7,362 |
CSS | 5 | 65 | 69 | 847 |
JavaScript | 4 | 111 | 111 | 478 |
XML | 1 | 0 | 0 | 49 |
SVG | 2 | 0 | 0 | 45 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 117)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 38.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 171.00 |
Average method complexity | 5.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 117.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 125 | |
▷ Static methods | 58 | 46.40% |
▷ Public methods | 113 | 90.40% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 9.60% |
Functions | 6 | |
▷ Named functions | 1 | 16.67% |
▷ Anonymous functions | 5 | 83.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
PNG files should be compressed to save space and minimize bandwidth usage
48 compressed PNG files occupy 0.05MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/white/stumbleupon.png | 0.97KB | 0.84KB | ▼ 12.64% |
assets/images/gray/stumbleupon.png | 1.16KB | 0.84KB | ▼ 27.48% |
assets/images/black/tumblr.png | 0.71KB | 0.73KB | 0.00% |
assets/images/black/whatsapp.png | 1.43KB | 1.49KB | 0.00% |
assets/images/black/youtube.png | 1.28KB | 1.37KB | 0.00% |