Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Parse error in wp-content/plugins/wpmailmon/wpmailmon.php+1872
syntax error, unexpected 'else' (T_ELSE), expecting end of file
Server metrics [RAM: ▼0.02MB] [CPU: ▼298.54ms] Passed 4 tests
Analyzing server-side resources used by WPMailMon
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 59.67 ▲7.26 |
Dashboard /wp-admin | 3.41 ▲0.00 | 30.63 ▼3.46 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 37.70 ▼3.90 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 92.73 ▼1,182.44 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 25.48 ▼4.37 |
Server storage [IO: ▲0.37MB] [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: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for WPMailMon
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲9 | 15.78 ▲0.61 | 5.60 ▼0.07 | 2.18 ▼0.57 |
Dashboard /wp-admin | 2,892 ▲31 | 6.03 ▼0.22 | 118.82 ▼13.53 | 159.69 ▲0.63 |
Posts /wp-admin/edit.php | 2,688 ▼3 | 3.23 ▼0.01 | 94.85 ▲32.29 | 151.40 ▲4.67 |
Add New Post /wp-admin/post-new.php | 1,661 ▼118 | 16.51 ▼5.06 | 405.80 ▼189.41 | 177.11 ▲7.72 |
Media Library /wp-admin/upload.php | 1,698 ▼3 | 5.53 ▲0.07 | 147.99 ▲5.69 | 195.25 ▲8.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Parse error
syntax error, unexpected 'else' (T_ELSE), expecting end of file in wp-content/plugins/wpmailmon/wpmailmon.php on line 1872
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: mail, smtp, authentication, security, protection
wpmailmon/wpmailmon.php Passed 13 tests
The main file in "WPMailMon" v. 1.3.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
63 characters long description:
Protect & Monitor your Outgoing Mail & add SMTP authentication.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected2,647 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 433 | 298 | 1,923 |
CSS | 5 | 68 | 76 | 576 |
JavaScript | 3 | 42 | 24 | 148 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 55.50 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 90.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 7 | 20.00% |
▷ Public methods | 35 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.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.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/disabled.png | 0.38KB | 0.42KB | 0.00% |
images/email.png | 0.55KB | 0.63KB | 0.00% |
images/shield.png | 0.64KB | 0.52KB | ▼ 18.84% |
images/time.png | 0.75KB | 0.92KB | 0.00% |