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.05MB] [CPU: ▼5.30ms] Passed 4 tests
Analyzing server-side resources used by eMailPlatform for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 41.06 ▲1.29 |
Dashboard /wp-admin | 3.35 ▲0.01 | 46.91 ▼11.25 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 46.83 ▼0.10 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 81.61 ▼11.14 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 35.81 ▲3.59 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 19 new options
New WordPress options |
---|
wc_emailplatform_api_token |
widget_recent-posts |
wc_emailplatform_list |
wc_emailplatform_api_username |
wc_emailplatform_debug |
wc_emailplatform_enabled |
widget_recent-comments |
wc_emailplatform_firstname |
wc_emailplatform_opt_in_checkbox_default_status |
wc_emailplatform_double_opt_in |
... |
Browser metrics Passed 4 tests
A check of browser resources used by eMailPlatform for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲61 | 14.72 ▲0.34 | 1.81 ▲0.09 | 39.91 ▼4.39 |
Dashboard /wp-admin | 2,210 ▲33 | 5.55 ▼0.12 | 80.61 ▼11.68 | 41.00 ▼1.55 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 1.98 ▼0.05 | 37.99 ▲4.44 | 32.33 ▼4.06 |
Add New Post /wp-admin/post-new.php | 1,544 ▲17 | 22.86 ▼0.19 | 677.33 ▼8.38 | 56.96 ▲0.55 |
Media Library /wp-admin/upload.php | 1,421 ▲21 | 4.20 ▼0.08 | 99.01 ▲0.75 | 46.41 ▲3.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 19 options in the database
- wc_emailplatform_opt_in_label
- wc_emailplatform_display_opt_in
- wc_emailplatform_enabled
- theysaidso_admin_options
- wc_emailplatform_api_username
- wc_emailplatform_api_token
- wc_emailplatform_opt_in_checkbox_display_location
- wc_emailplatform_opt_in_checkbox_default_status
- can_compress_scripts
- wc_emailplatform_list
- ...
Smoke tests 50% from 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 0% 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 fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/emailplatform-woocommerce/emailplatform-woocommerce.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/emailplatform-woocommerce/config/default-settings.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Requires php: The plugin version is formatted incorrectly
emailplatform-woocommerce/emailplatform-woocommerce.php Passed 13 tests
"eMailPlatform for WooCommerce" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
59 characters long description:
Add subscribe to eMailPlatform on WooCommerce checkout page
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
Success! There were no dangerous files found in this plugin1,806 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 693 | 1,032 | 1,574 |
JavaScript | 1 | 56 | 34 | 186 |
CSS | 1 | 7 | 0 | 41 |
XML | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 23.90 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 1 | 10.00% |
▷ Concrete classes | 9 | 90.00% |
▷ Final classes | 5 | 55.56% |
Methods | 136 | |
▷ Static methods | 24 | 17.65% |
▷ Public methods | 114 | 83.82% |
▷ Protected methods | 1 | 0.74% |
▷ Private methods | 21 | 15.44% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 10 | 83.33% |
▷ Class constants | 2 | 16.67% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.25MB with 0.17MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 67.04KB | 22.47KB | ▼ 66.48% |
assets/screenshot-1.png | 188.52KB | 56.93KB | ▼ 69.80% |