Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/greenmail-email-marketing/greenmail.php+21
Undefined variable: wpdb
Server metrics [RAM: ▲0.72MB] [CPU: ▲505.44ms] 50% from 4 tests
This is a short check of server-side resources used by GreenMail Email Marketing
It is recommended to improve the following
- CPU: You should keep total CPU usage under 500.00ms (currently 548.86ms on /wp-admin/edit.php?post_type=greenmail-form)
- Extra CPU: The extra CPU usage must be under 200.00ms (currently 505.44ms on /wp-admin/edit.php?post_type=greenmail-form)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.16 ▲0.70 | 572.68 ▲522.14 |
Dashboard /wp-admin | 4.03 ▲0.72 | 577.92 ▲523.16 |
Posts /wp-admin/edit.php | 4.14 ▲0.78 | 688.51 ▲636.63 |
Add New Post /wp-admin/post-new.php | 6.61 ▲0.72 | 586.51 ▲479.75 |
Media Library /wp-admin/upload.php | 3.95 ▲0.72 | 534.12 ▲496.71 |
Add New Form /wp-admin/post-new.php?post_type=greenmail-form | 4.20 | 1,543.48 |
Setup /wp-admin/admin.php?page=greenmail | 3.92 | 544.86 |
Forms /wp-admin/edit.php?post_type=greenmail-form | 3.99 | 548.86 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 44 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_greenmail_wc_customer_carts |
New WordPress options |
---|
greenmail_version |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_greenmail_email_marketing_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for GreenMail Email Marketing
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,002 ▲241 | 13.72 ▼0.77 | 12.11 ▲10.47 | 53.07 ▲10.96 |
Dashboard /wp-admin | 2,235 ▲58 | 4.95 ▼0.56 | 95.72 ▼2.44 | 39.97 ▼1.25 |
Posts /wp-admin/edit.php | 2,152 ▲52 | 2.23 ▲0.25 | 31.15 ▼6.02 | 32.23 ▼7.72 |
Add New Post /wp-admin/post-new.php | 1,723 ▲187 | 20.39 ▼2.61 | 608.31 ▼30.46 | 38.31 ▼14.46 |
Media Library /wp-admin/upload.php | 1,450 ▲47 | 4.31 ▲0.11 | 99.02 ▼0.97 | 48.00 ▲3.80 |
Add New Form /wp-admin/post-new.php?post_type=greenmail-form | 2,593 | 3.15 | 74.06 | 60.45 |
Setup /wp-admin/admin.php?page=greenmail | 887 | 1.96 | 26.94 | 29.57 |
Forms /wp-admin/edit.php?post_type=greenmail-form | 1,172 | 2.24 | 34.08 | 30.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_greenmail_email_marketing_widget
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (The opt-in forms list interface.), #2 (The available opt-in form options.), #3 (WooCommerce Integration: The available 'Checkout Opt-In' settings.), #4 (WooCommerce Integration: The available 'Abandoned Cart Emails' settings.)
greenmail-email-marketing/greenmail.php 92% from 13 tests
The main PHP file in "GreenMail Email Marketing" ver. 1.60 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("greenmail-email-marketing.php" instead of "greenmail.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected4,631 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 719 | 434 | 4,200 |
CSS | 1 | 35 | 6 | 310 |
JavaScript | 3 | 21 | 35 | 73 |
SVG | 2 | 1 | 0 | 48 |
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.34 |
Average class complexity | 35.09 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 3.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 54.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 174 | |
▷ Static methods | 28 | 16.09% |
▷ Public methods | 167 | 95.98% |
▷ Protected methods | 2 | 1.15% |
▷ Private methods | 5 | 2.87% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 compressed PNG files occupy 0.11MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 21.85KB | 21.66KB | ▼ 0.88% |
screenshot-4.png | 20.77KB | 20.98KB | 0.00% |
screenshot-2.png | 40.82KB | 40.81KB | 0.04% |
screenshot-3.png | 25.70KB | 26.05KB | 0.00% |