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.04MB] [CPU: ▼1.59ms] Passed 4 tests
This is a short check of server-side resources used by Mail To All
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.68 ▲1.43 |
Dashboard /wp-admin | 3.35 ▲0.04 | 49.38 ▼0.88 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 45.05 ▼1.66 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 85.83 ▼5.25 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 40.36 ▲1.72 |
群发邮件 /wp-admin/admin.php?page=Mail-To-All/mail.php | 3.21 | 33.48 |
关于 /wp-admin/admin.php?page=Mail-To-All | 3.23 | 30.65 |
初始化 /wp-admin/admin.php?page=Mail-To-All/init.php | 3.21 | 32.01 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 11 new options
New WordPress options |
---|
qw_MTA_default_sub |
widget_recent-comments |
qw_MTA_subject |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
qw_MTA_content |
qw_MTA_mail |
widget_recent-posts |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Mail To All
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 14.25 ▼0.12 | 1.76 ▲0.11 | 36.83 ▼4.00 |
Dashboard /wp-admin | 2,225 ▲48 | 5.62 ▼0.11 | 82.86 ▼6.51 | 86.43 ▲41.87 |
Posts /wp-admin/edit.php | 2,130 ▲30 | 2.00 ▲0.02 | 36.62 ▼0.05 | 40.92 ▲2.51 |
Add New Post /wp-admin/post-new.php | 1,567 ▲41 | 23.07 ▼0.05 | 711.36 ▲19.29 | 63.52 ▲3.17 |
Media Library /wp-admin/upload.php | 1,424 ▲21 | 4.23 ▲0.01 | 112.57 ▲14.67 | 79.27 ▲38.19 |
群发邮件 /wp-admin/admin.php?page=Mail-To-All/mail.php | 929 | 2.12 | 23.78 | 62.91 |
关于 /wp-admin/admin.php?page=Mail-To-All | 896 | 2.19 | 22.94 | 66.01 |
初始化 /wp-admin/admin.php?page=Mail-To-All/init.php | 886 | 1.99 | 24.84 | 63.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 25% 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)
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=Mail-To-All/mail.php
- > Notice in wp-content/plugins/mail-to-all-comment/mail-to-all.php+142
Undefined index: baocuncaogao
- > GET request to /wp-admin/admin.php?page=Mail-To-All/mail.php
- > Notice in wp-content/plugins/mail-to-all-comment/mail-to-all.php+145
Undefined index: chongxinhuoquyouxiangliebiao
- > GET request to /wp-admin/admin.php?page=Mail-To-All/mail.php
- > Notice in wp-content/plugins/mail-to-all-comment/mail-to-all.php+149
Undefined index: fasong
- > GET request to /wp-admin/admin.php?page=Mail-To-All/init.php
- > Notice in wp-content/plugins/mail-to-all-comment/mail-to-all.php+53
Undefined index: MTA_init_btn
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mail-to-all-comment/inc/leniy_admin_menu.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/mail-to-all-comment/mail-to-all.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=Mail-To-All
- > Network (severe)
https://blog.leniy.org/mail-to-all.html - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-2.png)
mail-to-all-comment/mail-to-all.php 92% from 13 tests
Analyzing the main PHP file in "Mail To All" version 1.5.3
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mail-to-all-comment.php" instead of "mail-to-all.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin325 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 35 | 88 | 325 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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 | 13 | |
▷ Named functions | 13 | 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
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/leniy.png | 1.36KB | 1.79KB | 0.00% |
inc/leniy-ico.png | 0.45KB | 0.61KB | 0.00% |
icon.png | 0.68KB | 0.65KB | ▼ 3.74% |
screenshot-2.png | 34.59KB | 11.43KB | ▼ 66.95% |
screenshot-1.png | 33.86KB | 12.21KB | ▼ 63.93% |