Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.92MB] [CPU: ▲0.93ms] Passed 4 tests
An overview of server-side resources used by LEAV Last Email Address Validator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.42 ▲0.96 | 43.46 ▲1.86 |
Dashboard /wp-admin | 4.25 ▲0.95 | 52.61 ▲0.61 |
Posts /wp-admin/edit.php | 4.30 ▲0.95 | 52.32 ▲4.14 |
Add New Post /wp-admin/post-new.php | 6.77 ▲0.88 | 100.38 ▼2.88 |
Media Library /wp-admin/upload.php | 4.11 ▲0.88 | 44.86 ▲7.21 |
Server storage [IO: ▲0.77MB] [DB: ▲0.04MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
leav_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
LEAV Last Email Address Validator: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲95 | 14.38 ▲0.35 | 1.72 ▼0.30 | 37.22 ▼0.86 |
Dashboard /wp-admin | 2,262 ▲85 | 5.54 ▼0.11 | 86.56 ▼6.38 | 43.95 ▲1.13 |
Posts /wp-admin/edit.php | 2,168 ▲71 | 2.14 ▲0.13 | 38.43 ▲0.31 | 34.09 ▼2.60 |
Add New Post /wp-admin/post-new.php | 1,574 ▲43 | 23.33 ▲0.29 | 606.74 ▼75.79 | 60.00 ▲6.00 |
Media Library /wp-admin/upload.php | 1,468 ▲68 | 4.26 ▲0.03 | 101.06 ▼13.61 | 46.56 ▲0.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 5× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/last-email-address-validator/last-email-address-validator.php
- > /wp-content/plugins/last-email-address-validator/uninstall.php
- > /wp-content/plugins/last-email-address-validator/includes/leav-class.inc.php
- > /wp-content/plugins/last-email-address-validator/includes/leav-settings-page.inc.php
- > /wp-content/plugins/last-email-address-validator/includes/leav-helper-functions.inc.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
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
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
last-email-address-validator/last-email-address-validator.php 92% from 13 tests
This is the main PHP file of "LEAV Last Email Address Validator" version 1.7.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 143 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected5,168 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 557 | 229 | 3,729 |
PO File | 1 | 346 | 860 | 1,438 |
SVG | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 132.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 244.00 |
Average method complexity | 7.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 104.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 83 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 55 | 66.27% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 28 | 33.73% |
Functions | 3 | |
▷ Named functions | 3 | 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
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/img/banner-772x250.png | 26.44KB | 9.29KB | ▼ 64.85% |
includes/img/icon-256x256.png | 7.82KB | 3.20KB | ▼ 59.07% |
includes/img/icon-128x128.png | 4.53KB | 1.66KB | ▼ 63.36% |