Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.96MB] [CPU: ▲15.73ms] Passed 4 tests
This is a short check of server-side resources used by EmailKit -WooCommerce Email Customizer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.43 ▲0.96 | 56.87 ▲20.05 |
Dashboard /wp-admin | 4.29 ▲0.94 | 75.94 ▲12.95 |
Posts /wp-admin/edit.php | 4.32 ▲0.96 | 74.25 ▲23.94 |
Add New Post /wp-admin/post-new.php | 6.89 ▲1.00 | 110.23 ▲5.98 |
Media Library /wp-admin/upload.php | 4.22 ▲0.99 | 61.95 ▲28.76 |
Server storage [IO: ▲10.45MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 134 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
emailkit_installed |
emailkit_version |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
EmailKit -WooCommerce Email Customizer: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲62 | 14.71 ▲0.00 | 1.59 ▼0.26 | 39.25 ▲1.25 |
Dashboard /wp-admin | 2,236 ▲59 | 5.62 ▲0.03 | 95.17 ▼8.52 | 43.39 ▼3.05 |
Posts /wp-admin/edit.php | 2,138 ▲38 | 2.02 ▲0.01 | 41.52 ▼0.03 | 36.87 ▼1.70 |
Add New Post /wp-admin/post-new.php | 1,569 ▲34 | 24.79 ▲6.32 | 605.78 ▼48.82 | 63.25 ▼1.51 |
Media Library /wp-admin/upload.php | 1,444 ▲50 | 4.19 ▲0.00 | 99.30 ▲1.94 | 43.52 ▲4.08 |
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
- This plugin did not uninstall successfully, leaving 8 options in the database
- can_compress_scripts
- db_upgraded
- emailkit_version
- theysaidso_admin_options
- emailkit_installed
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Almost there! Just fix the following items
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/emailkit/includes/Admin/EmailKitEditor/EmailKitEditorInit.php
- > /wp-content/plugins/emailkit/build/server/pages/editor.php
- > /wp-content/plugins/emailkit/includes/Admin/Emails/Helpers/Notice/Notice.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/emailkit/includes/views/modal-form-template-item.php:1
- > 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 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: email template, customize woocommerce emails, woocommerce email customizer, email builder
emailkit/EmailKit.php 92% from 13 tests
This is the main PHP file of "EmailKit -WooCommerce Email Customizer" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("emailkit.php" instead of "EmailKit.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin50,914 lines of code in 118 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 25 | 580 | 329 | 44,769 |
PHP | 49 | 939 | 613 | 3,896 |
CSS | 6 | 320 | 34 | 2,145 |
XML | 1 | 15 | 42 | 33 |
JSON | 21 | 0 | 0 | 31 |
SVG | 2 | 0 | 1 | 24 |
HTML | 14 | 0 | 0 | 16 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 8.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 41 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 41 | 100.00% |
▷ Final classes | 1 | 2.44% |
Methods | 151 | |
▷ Static methods | 31 | 20.53% |
▷ Public methods | 146 | 96.69% |
▷ Protected methods | 2 | 1.32% |
▷ Private methods | 3 | 1.99% |
Functions | 14 | |
▷ Named functions | 1 | 7.14% |
▷ Anonymous functions | 13 | 92.86% |
Constants | 35 | |
▷ Global constants | 9 | 25.71% |
▷ Class constants | 26 | 74.29% |
▷ Public constants | 26 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/dist/admin/images/email-builder.png | 1.53KB | 1.50KB | ▼ 1.92% |