Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼145.42ms] Passed 4 tests
This is a short check of server-side resources used by Mailgun Email Validator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.01 | 41.14 ▲7.16 |
Dashboard /wp-admin | 3.13 ▲0.08 | 47.86 ▲0.51 |
Posts /wp-admin/edit.php | 3.19 ▲0.08 | 44.63 ▼2.93 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 87.21 ▼580.01 |
Media Library /wp-admin/upload.php | 3.08 ▲0.08 | 35.35 ▲0.75 |
Email Validation /wp-admin/options-general.php?page=mailgun-email-validator | 3.02 | 27.92 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Mailgun Email Validator: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,716 ▲120 | 16.04 ▲0.35 | 10.80 ▼2.45 | 49.35 ▲0.58 |
Dashboard /wp-admin | 2,983 ▲46 | 5.92 ▼0.02 | 151.87 ▼5.53 | 118.69 ▲3.75 |
Posts /wp-admin/edit.php | 2,753 ▲14 | 2.71 ▼0.01 | 68.05 ▼27.92 | 87.26 ▼0.91 |
Add New Post /wp-admin/post-new.php | 1,509 ▲11 | 18.58 ▼0.32 | 389.48 ▼94.39 | 107.37 ▲4.98 |
Media Library /wp-admin/upload.php | 1,762 ▼45 | 4.99 ▲0.00 | 159.10 ▼3.98 | 114.76 ▲4.59 |
Email Validation /wp-admin/options-general.php?page=mailgun-email-validator | 1,076 | 2.10 | 52.94 | 77.12 |
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
Uninstaller ran successfully
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
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=mailgun-email-validator
- > User deprecated in wp-includes/functions.php+5221
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=mailgun-email-validator
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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 fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/mailgun-email-validator/plugin.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/mailgun-email-validator/admin_options.php:10
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: email validation, contact form 7, anti-spam, comments, validation...
mailgun-email-validator/plugin.php 85% from 13 tests
The main file in "Mailgun Email Validator" v. 1.2.4.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("mailgun-email-validator.php" instead of "plugin.php")
- Description: Keep the plugin description shorter than 140 characters (currently 252 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected908 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 53 | 43 | 738 |
PO File | 2 | 48 | 48 | 170 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 32.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 127.00 |
Average method complexity | 6.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 30 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screen-icon.png | 1.15KB | 1.29KB | 0.00% |