Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼298.42ms] Passed 4 tests
Server-side resources used by Add-on Contact Form 7 - MailPoet 3
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 56.27 ▲6.47 |
Dashboard /wp-admin | 3.42 ▲0.01 | 33.91 ▼1.97 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 37.41 ▼4.92 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 95.72 ▼1,186.54 |
Media Library /wp-admin/upload.php | 3.30 ▲0.01 | 24.90 ▼0.24 |
Server storage [IO: ▲0.39MB] [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: 23 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Add-on Contact Form 7 - MailPoet 3
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,783 ▲39 | 15.60 ▼0.18 | 6.18 ▼0.62 | 2.99 ▲0.44 |
Dashboard /wp-admin | 2,908 ▲53 | 6.13 ▼0.01 | 137.07 ▼15.67 | 198.78 ▼15.59 |
Posts /wp-admin/edit.php | 2,711 ▲17 | 3.24 ▼0.11 | 64.07 ▼1.19 | 144.16 ▼2.55 |
Add New Post /wp-admin/post-new.php | 1,672 ▼65 | 15.75 ▼1.66 | 410.96 ▼20.77 | 172.59 ▲17.75 |
Media Library /wp-admin/upload.php | 1,715 ▲23 | 5.53 ▲0.04 | 146.08 ▼3.90 | 193.87 ▼55.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 19 tag instead of maximum 10
- Screenshots: Please a description for screenshot #4 in add-on-contact-form-7-mailpoet/assets to your readme.txt
add-on-contact-form-7-mailpoet/add-on-contact-form-7-mailpoet.php Passed 13 tests
The primary PHP file in "Add-on Contact Form 7 - MailPoet 3" version 1.3.19 is used by WordPress to initiate all plugin functionality
59 characters long description:
Add a MailPoet 3 signup field to your Contact Form 7 forms.
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
Good job! No executable or dangerous file extensions detected998 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 279 | 276 | 998 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 21.40 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 3.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 5 | 13.89% |
▷ Public methods | 36 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.31MB with 0.22MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-4.png | 46.24KB | 13.66KB | ▼ 70.47% |
assets/screenshot-2.png | 77.53KB | 23.15KB | ▼ 70.14% |
assets/screenshot-1.png | 107.88KB | 30.97KB | ▼ 71.29% |
assets/screenshot-3.png | 84.53KB | 26.18KB | ▼ 69.03% |