Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.21ms] Passed 4 tests
Server-side resources used by Add-on WooCommerce - MailPoet 3
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 33.40 ▼5.21 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.06 ▼3.80 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.45 ▲3.06 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 80.38 ▼17.90 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.04 ▲2.08 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Add-on WooCommerce - MailPoet 3
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 13.21 ▼1.26 | 1.61 ▼0.23 | 39.61 ▼4.90 |
Dashboard /wp-admin | 2,215 ▲30 | 5.79 ▲0.93 | 96.77 ▼8.67 | 39.39 ▼5.82 |
Posts /wp-admin/edit.php | 2,101 ▲9 | 2.05 ▲0.05 | 39.65 ▲1.29 | 36.94 ▲1.42 |
Add New Post /wp-admin/post-new.php | 1,550 ▲36 | 23.31 ▲5.92 | 603.36 ▼30.93 | 49.28 ▼7.45 |
Media Library /wp-admin/upload.php | 1,400 ▲15 | 4.22 ▲0.09 | 96.86 ▼10.65 | 44.01 ▲0.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Trait 'MPWA_Helper_Function' not found in wp-content/plugins/add-on-woocommerce-mailpoet/includes/class-mpwa-place-order.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'WC_Settings_Page' not found in wp-content/plugins/add-on-woocommerce-mailpoet/includes/class-mpwa-admin-settings.php:14
- > PHP Fatal error
Trait 'MPWA_Helper_Function' not found in wp-content/plugins/add-on-woocommerce-mailpoet/includes/class-mpwa-frontend-fields.php on line 15
- > PHP Fatal error
Trait 'MPWA_Helper_Function' not found in wp-content/plugins/add-on-woocommerce-mailpoet/includes/class-mpwa-place-order-deprecated.php on line 14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add an image for screenshot #3 (General plugin settings.)
- Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
add-on-woocommerce-mailpoet/add-on-woocommerce-mailpoet.php Passed 13 tests
"Add-on WooCommerce - MailPoet 3" version 1.1.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
85 characters long description:
Let your customers subscribe to your newsletter as they checkout with their purchase.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,325 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 190 | 261 | 740 |
PO File | 5 | 259 | 287 | 571 |
JavaScript | 1 | 3 | 2 | 14 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 12.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 3.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 11 | 50.00% |
▷ Public methods | 21 | 95.45% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.55% |
Functions | 7 | |
▷ Named functions | 5 | 71.43% |
▷ Anonymous functions | 2 | 28.57% |
Constants | 2 | |
▷ Global constants | 2 | 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
2 PNG files occupy 0.36MB with 0.27MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 112.05KB | 29.42KB | ▼ 73.75% |
assets/screenshot-1.png | 260.11KB | 71.84KB | ▼ 72.38% |