Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.67ms] Passed 4 tests
This is a short check of server-side resources used by MailPoet Gravity Forms Add-on
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 36.96 ▼2.82 |
Dashboard /wp-admin | 3.34 ▼0.00 | 44.64 ▼12.59 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 43.91 ▼5.17 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 82.23 ▼9.25 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.50 ▼3.67 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for MailPoet Gravity Forms Add-on
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲32 | 14.24 ▲0.03 | 1.63 ▼0.29 | 39.70 ▼3.32 |
Dashboard /wp-admin | 2,198 ▲30 | 5.58 ▲0.02 | 85.41 ▼2.16 | 39.27 ▼3.59 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▼0.02 | 35.72 ▼2.21 | 31.73 ▲0.19 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.17 ▼0.01 | 598.46 ▼83.09 | 56.43 ▼10.53 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.30 ▲0.12 | 100.24 ▼16.69 | 41.91 ▼6.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests Passed 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)
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
No output text or server-side errors detected on direct access of PHP files
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 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (MailPoet settings under "Gravity Forms -> Settings"), #2 (Form with MailPoet field applied), #3 (Form on post/page)
mailpoet-gravity-forms-add-on/mailpoet-gravity-forms-addon.php 85% from 13 tests
The primary PHP file in "MailPoet Gravity Forms Add-on" version 2.0.4 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("mailpoet-gravity-forms-add-on.php" instead of "mailpoet-gravity-forms-addon.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected966 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 217 | 457 | 692 |
PO File | 2 | 83 | 91 | 271 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 12.25 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 31 | |
▷ Static methods | 5 | 16.13% |
▷ Public methods | 27 | 87.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 12.90% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 12 | 80.00% |
▷ Class constants | 3 | 20.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 25.68KB | 14.58KB | ▼ 43.24% |
screenshot-2.png | 14.93KB | 8.93KB | ▼ 40.19% |
screenshot-3.png | 7.90KB | 5.60KB | ▼ 29.15% |