Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼289.54ms] Passed 4 tests
A check of server-side resources used by Add-on WooCommerce - MailPoet 3
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.02 | 58.45 ▲6.43 |
Dashboard /wp-admin | 3.42 ▲0.01 | 32.51 ▼2.72 |
Posts /wp-admin/edit.php | 3.66 ▲0.01 | 38.52 ▲0.33 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 94.19 ▼1,158.10 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 27.77 ▲2.32 |
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, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Add-on WooCommerce - MailPoet 3
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,816 ▲72 | 15.65 ▼0.03 | 6.23 ▲0.24 | 2.35 ▲0.18 |
Dashboard /wp-admin | 2,912 ▲54 | 6.15 ▼0.01 | 114.16 ▼23.93 | 154.29 ▼8.89 |
Posts /wp-admin/edit.php | 2,708 ▲17 | 3.24 ▼0.00 | 61.92 ▼1.89 | 135.72 ▼5.20 |
Add New Post /wp-admin/post-new.php | 1,764 ▼9 | 21.69 ▲0.23 | 425.95 ▼40.33 | 160.98 ▲2.53 |
Media Library /wp-admin/upload.php | 1,721 ▲23 | 5.48 ▼0.07 | 137.39 ▼4.66 | 184.02 ▼2.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
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
Everything seems fine, however 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
Almost there! Just fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > 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:13
- > 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 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 13
- > 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 14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add an image for screenshot #3 (General plugin settings.)
- Tags: You are using too many tags: 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.8'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 a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,307 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 201 | 250 | 722 |
PO File | 5 | 259 | 287 | 571 |
JavaScript | 1 | 3 | 2 | 14 |
PHP code Passed 2 tests
This is a short overview 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
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% |