Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.93MB] [CPU: ▼36.24ms] Passed 4 tests
An overview of server-side resources used by Mailer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 46.06 ▲1.41 |
Dashboard /wp-admin | 3.03 ▼0.32 | 26.72 ▼41.17 |
Posts /wp-admin/edit.php | 3.03 ▼0.33 | 29.78 ▼17.33 |
Add New Post /wp-admin/post-new.php | 3.03 ▼2.86 | 24.64 ▼79.03 |
Media Library /wp-admin/upload.php | 3.03 ▼0.20 | 29.72 ▼7.42 |
Options /wp-admin/admin.php?page=mmailer-options | 3.03 | 28.95 |
Start mail /wp-admin/admin.php?page=mmailer-start-mail | 3.03 | 25.87 |
MMailer /wp-admin/admin.php?page=MMailer-options | 3.03 | 28.29 |
Reset sending /wp-admin/admin.php?page=mmailer-reset-sending | 3.03 | 24.74 |
Stop sending /wp-admin/admin.php?page=mmailer-stop-sending | 3.03 | 29.71 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Mailer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲93 | 13.30 ▼1.48 | 4.54 ▲2.59 | 45.07 ▲1.97 |
Dashboard /wp-admin | 2,242 ▲54 | 4.83 ▼1.05 | 113.74 ▼2.04 | 39.16 ▼5.07 |
Posts /wp-admin/edit.php | 2,128 ▲36 | 2.06 ▲0.04 | 42.15 ▼4.67 | 36.29 ▼0.41 |
Add New Post /wp-admin/post-new.php | 1,545 ▲26 | 17.69 ▼5.46 | 690.07 ▲33.63 | 57.18 ▲6.74 |
Media Library /wp-admin/upload.php | 1,430 ▲39 | 4.14 ▼0.09 | 105.58 ▲1.52 | 46.40 ▲0.22 |
Options /wp-admin/admin.php?page=mmailer-options | 1,581 | 6.61 | 128.82 | 57.77 |
Start mail /wp-admin/admin.php?page=mmailer-start-mail | 780 | 2.03 | 25.13 | 24.82 |
MMailer /wp-admin/admin.php?page=MMailer-options | 837 | 2.09 | 30.31 | 35.34 |
Reset sending /wp-admin/admin.php?page=mmailer-reset-sending | 783 | 2.05 | 24.74 | 23.59 |
Stop sending /wp-admin/admin.php?page=mmailer-stop-sending | 798 | 2.02 | 23.64 | 26.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function add_menu_page was called incorrectly. The seventh parameter passed to add_menu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 6.0.0.)
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mmailer-stop-sending
- > User notice in wp-includes/functions.php+5905
Function add_menu_page was called incorrectly. The seventh parameter passed to add_menu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 6.0.0.)
- > GET request to /wp-admin/admin.php?page=mmailer-options
- > Notice in wp-content/plugins/mmailer/plugin.php+120
Undefined index: Save
- > GET request to /wp-admin/admin.php?page=mmailer-options
- > Notice in wp-content/plugins/mmailer/plugin.php+218
Undefined variable: to
- > GET request to /wp-admin/admin.php?page=mmailer-options
- > Notice in wp-content/plugins/mmailer/plugin.php+157
Undefined variable: txt2
SRP 50% from 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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mmailer/plugin.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (First screen), #2 (Options screen)
- Contributors: Plugin contributors field is missing
mmailer/plugin.php 92% from 13 tests
The main file in "Mailer" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("mmailer.php" instead of "plugin.php")
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
No dangerous file extensions were detected236 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 38 | 21 | 236 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.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
2 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 36.35KB | 18.68KB | ▼ 48.62% |
screenshot-2.png | 51.70KB | 27.81KB | ▼ 46.21% |