Benchmarks
Plugin footprint 83% from 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.08MB] [CPU: ▼2.60ms] Passed 4 tests
This is a short check of server-side resources used by Mail to Users
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 35.53 ▼9.17 |
Dashboard /wp-admin | 3.39 ▲0.08 | 46.41 ▼0.12 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 48.42 ▲4.99 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.09 | 91.47 ▼2.91 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.25 ▲1.81 |
Thanks /wp-admin/admin.php?page=thanks_handle | 3.26 | 28.29 |
Settings /wp-admin/admin.php?page=Settings_handle | 3.29 | 36.53 |
Unsubscribed Users /wp-admin/admin.php?page=Unsubscribed_handle | 3.28 | 30.10 |
Mail to users /wp-admin/admin.php?page=mail2users_handler | 3.36 | 39.47 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Mail to Users: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲99 | 13.60 ▼0.60 | 1.78 ▼1.07 | 39.53 ▼4.58 |
Dashboard /wp-admin | 2,240 ▲58 | 4.94 ▼0.88 | 99.12 ▼8.76 | 70.96 ▲31.57 |
Posts /wp-admin/edit.php | 2,126 ▲34 | 2.04 ▼0.01 | 37.17 ▼1.55 | 35.20 ▼0.09 |
Add New Post /wp-admin/post-new.php | 6,647 ▲5,127 | 29.24 ▲6.04 | 911.87 ▲226.67 | 68.17 ▲8.88 |
Media Library /wp-admin/upload.php | 1,425 ▲37 | 4.22 ▼0.03 | 103.52 ▼11.32 | 46.14 ▼1.31 |
Thanks /wp-admin/admin.php?page=thanks_handle | 795 | 1.74 | 25.13 | 21.21 |
Settings /wp-admin/admin.php?page=Settings_handle | 1,063 | 1.74 | 28.41 | 26.55 |
Unsubscribed Users /wp-admin/admin.php?page=Unsubscribed_handle | 823 | 1.71 | 23.93 | 25.89 |
Mail to users /wp-admin/admin.php?page=mail2users_handler | 1,613 | 6.48 | 128.62 | 101.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=thanks_handle
- > Notice in wp-content/plugins/mail2users/mail2users.php+71
Undefined index: mail2users-editor-id
- > GET request to /wp-admin/admin.php?page=thanks_handle
- > Notice in wp-content/plugins/mail2users/mail2users.php+72
Undefined index: mail2users-subject
- > GET request to /wp-admin/admin.php?page=thanks_handle
- > Notice in wp-content/plugins/mail2users/mail2users.php+73
Undefined index: mail2users-attachment
- > GET request to /wp-admin/admin.php?page=thanks_handle
- > Notice in wp-content/plugins/mail2users/mail2users.php+74
Undefined index: mail2users-cc
- > GET request to /wp-admin/admin.php?page=thanks_handle
- > Notice in wp-content/plugins/mail2users/mail2users.php+75
Undefined index: mail2users-from
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
Looking good! No server-side errors or output 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 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
mail2users/mail2users.php 92% from 13 tests
The main PHP file in "Mail to Users" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 152 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin270 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 69 | 24 | 268 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 16.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
5 PNG files occupy 0.19MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/image/icon.png | 3.52KB | 0.98KB | ▼ 72.10% |
assets/image/simple-mail.png | 47.55KB | 15.79KB | ▼ 66.79% |
assets/image/single.png | 2.26KB | 1.60KB | ▼ 29.35% |
assets/image/up.png | 0.46KB | 0.21KB | ▼ 54.68% |
assets/image/formatted-mail.png | 137.74KB | 46.35KB | ▼ 66.35% |