83% email-validator-by-byteplant

Code Review | Byteplant Email Validator

WordPress plugin Byteplant Email Validator scored83%from 54 tests.

About plugin

  • Plugin page: email-validator-b...
  • Plugin version: 6.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2
  • WordPress version: 6.3.1
  • First release: Jan 28, 2016
  • Latest release: May 4, 2023
  • Number of updates: 48
  • Update frequency: every 55.6 days
  • Top authors: byteplant (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

100+ active /8,755 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.13MB] [CPU: ▼8.12ms] Passed 4 tests

This is a short check of server-side resources used by Byteplant Email Validator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1040.33 ▼0.24
Dashboard /wp-admin3.46 ▲0.1148.84 ▼11.51
Posts /wp-admin/edit.php3.57 ▲0.2251.19 ▼0.73
Add New Post /wp-admin/post-new.php6.04 ▲0.1581.36 ▼20.01
Media Library /wp-admin/upload.php3.38 ▲0.1539.33 ▲2.71
Byteplant Email Validator /wp-admin/options-general.php?page=byteplant_email_validator3.3539.19

Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Byteplant Email Validator
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.70 ▼0.661.91 ▲0.0543.38 ▲1.86
Dashboard /wp-admin2,207 ▲255.88 ▼0.05115.56 ▲11.2142.87 ▼3.18
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0139.61 ▼0.6834.31 ▼1.38
Add New Post /wp-admin/post-new.php1,522 ▲823.11 ▲5.60600.43 ▼75.0857.16 ▼2.25
Media Library /wp-admin/upload.php1,395 ▲74.28 ▲0.0695.80 ▼17.2440.85 ▼7.33
Byteplant Email Validator /wp-admin/options-general.php?page=byteplant_email_validator9601.9023.5628.73

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/email-validator-by-byteplant/plugin.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Screenshot #1 (Plugin page.) image required
The official readme.txt might help

email-validator-by-byteplant/plugin.php 85% from 13 tests

The primary PHP file in "Byteplant Email Validator" version 6.4 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("email-validator-by-byteplant.php" instead of "plugin.php")
  • Description: The description should be shorter than 140 characters (currently 149 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,792 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP17341878971
PO File4199220626
JavaScript4240177
CSS23018

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity5.79
▷ Minimum class complexity2.00
▷ Maximum class complexity18.00
Average method complexity1.63
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods106
▷ Static methods21.89%
▷ Public methods10195.28%
▷ Protected methods32.83%
▷ Private methods21.89%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png89.65KB37.99KB▼ 57.62%