78% gev-email-validator

Code Review | GEV Email Validator

WordPress plugin GEV Email Validator scored78%from 54 tests.

About plugin

  • Plugin page: gev-email-validator
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.6.2
  • WordPress version: 6.3.1
  • First release: Feb 25, 2021
  • Latest release: Feb 25, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: maranqz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /310 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.99MB] [CPU: ▲3.43ms] Passed 4 tests

This is a short check of server-side resources used by GEV Email Validator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.43 ▲0.9746.91 ▲6.70
Dashboard /wp-admin4.30 ▲0.9954.41 ▲0.56
Posts /wp-admin/edit.php4.35 ▲0.9953.34 ▲3.81
Add New Post /wp-admin/post-new.php6.90 ▲1.0193.49 ▲2.65
Media Library /wp-admin/upload.php4.22 ▲0.9943.71 ▲10.17
GEV Email Validator /wp-admin/options-general.php?page=gev-email-validator4.1340.45

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

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

Browser metrics Passed 4 tests

Checking browser requirements for GEV Email Validator
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲17013.92 ▼0.839.50 ▲7.8243.35 ▼2.57
Dashboard /wp-admin2,214 ▲265.85 ▼0.01107.47 ▼8.9040.13 ▼7.09
Posts /wp-admin/edit.php2,097 ▲82.05 ▲0.0638.99 ▲0.2036.17 ▲1.26
Add New Post /wp-admin/post-new.php1,521 ▼1223.33 ▲0.15696.19 ▲20.0864.03 ▲4.15
Media Library /wp-admin/upload.php1,393 ▲114.22 ▲0.02104.00 ▲6.0547.73 ▼1.00
GEV Email Validator /wp-admin/options-general.php?page=gev-email-validator1,0002.0828.0326.78

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% 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× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/gev-email-validator/public/partials/email-validator-public-display.php
  • 66× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'OpenAPI\\Client\\Model\\ModelInterface' not found in wp-content/plugins/gev-email-validator/vendor/go-email-validator/sdk/php/lib/Model/EmailResponse.php:46
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/gev-email-validator/vendor/guzzlehttp/psr7/src/PumpStream.php:17
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\TaskQueueInterface' not found in wp-content/plugins/gev-email-validator/vendor/guzzlehttp/promises/src/TaskQueue.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/gev-email-validator/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/gev-email-validator/vendor/guzzlehttp/promises/src/FulfilledPromise.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/gev-email-validator/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'OpenAPI\\Client\\Model\\ModelInterface' not found in wp-content/plugins/gev-email-validator/vendor/go-email-validator/sdk/php/lib/Model/PromptEmailVerificationApiMX.php:46
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/gev-email-validator/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/gev-email-validator/vendor/guzzlehttp/guzzle/src/Pool.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Polyfill\\Intl\ormalizer\ormalizer' not found in wp-content/plugins/gev-email-validator/vendor/symfony/polyfill-intl-normalizer/Resources/stubs/Normalizer.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: email validator, email validation, form validation, email verify, email filter

gev-email-validator/gev-email-validator.php 92% from 13 tests

"GEV Email Validator" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 284 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin37,340 lines of code in 240 files:
LanguageFilesBlank linesComment linesLines of code
PHP1853,55110,77631,940
Markdown301,23403,731
JSON14001,252
YAML107297
make319156
XML20038
JavaScript245416
Dockerfile18010
CSS2080

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
The following items need your attention
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 179)
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity14.73
▷ Minimum class complexity1.00
▷ Maximum class complexity179.00
Average method complexity2.63
▷ Minimum method complexity1.00
▷ Maximum method complexity179.00
Code structure
Namespaces18
Interfaces17
Traits2
Classes123
▷ Abstract classes00.00%
▷ Concrete classes123100.00%
▷ Final classes2419.51%
Methods1,216
▷ Static methods24019.74%
▷ Public methods1,05486.68%
▷ Protected methods120.99%
▷ Private methods15012.34%
Functions195
▷ Named functions8845.13%
▷ Anonymous functions10754.87%
Constants210
▷ Global constants4722.38%
▷ Class constants16377.62%
▷ Public constants163100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin