Benchmarks
Plugin footprint Passed 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.02MB] [CPU: ▼144.49ms] Passed 4 tests
An overview of server-side resources used by wp_comment_mail_notify
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.02 | 30.45 ▼9.01 |
Dashboard /wp-admin | 3.09 ▲0.03 | 55.54 ▲10.22 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 47.62 ▲1.81 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 91.60 ▼575.26 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 35.90 ▲4.52 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for wp_comment_mail_notify
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,702 ▲106 | 15.83 ▲0.20 | 9.01 ▲1.05 | 49.54 ▲1.48 |
Dashboard /wp-admin | 2,967 ▲30 | 5.88 ▼0.04 | 140.91 ▼11.52 | 118.72 ▼4.64 |
Posts /wp-admin/edit.php | 2,739 ▲3 | 2.70 ▲0.01 | 63.72 ▼3.87 | 103.67 ▲4.03 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.75 ▲0.08 | 389.23 ▼8.07 | 112.03 ▼2.76 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.01 ▼0.01 | 152.02 ▼13.58 | 130.21 ▲1.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-comment-mail-notify/comment_mail_notify.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Contributors: Plugin contributors not specified
- Contributors: No valid plugin tags found
wp-comment-mail-notify/comment_mail_notify.php 85% from 13 tests
The principal PHP file in "wp_comment_mail_notify" v. 0.0.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 203 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-comment-mail-notify.php" instead of "comment_mail_notify.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
There were no executable files found in this plugin92 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 16 | 15 | 92 |
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.41 |
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 | 8 | |
▷ Named functions | 8 | 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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 21.30KB | 8.15KB | ▼ 61.73% |