83% eva-email-validator

Code Review | EVA - Email Validator

WordPress plugin EVA - Email Validator scored83%from 54 tests.

About plugin

  • Plugin page: eva-email-validator
  • Plugin version: 1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.2
  • WordPress version: 6.3.1
  • First release: Jun 4, 2019
  • Latest release: Jun 8, 2019
  • Number of updates: 8
  • Update frequency: every 0.5 days
  • Top authors: squarebit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /620 total downloads

Benchmarks

Plugin footprint 83% from 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: ▼7.56ms] Passed 4 tests

Analyzing server-side resources used by EVA - Email Validator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.0446.03 ▼0.00
Dashboard /wp-admin3.70 ▲0.0752.39 ▼19.88
Posts /wp-admin/edit.php3.75 ▲0.0753.70 ▼0.02
Add New Post /wp-admin/post-new.php6.22 ▲0.0787.67 ▼10.34
Media Library /wp-admin/upload.php3.56 ▲0.0739.23 ▲0.41
EVA - Email Validator /wp-admin/options-general.php?page=eva_email_validator3.5236.65

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for EVA - Email Validator
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.40 ▲0.381.86 ▲0.0638.14 ▼4.42
Dashboard /wp-admin2,202 ▲285.56 ▼0.0486.32 ▼34.1838.82 ▼3.71
Posts /wp-admin/edit.php2,104 ▲42.04 ▼0.0039.94 ▼1.3235.95 ▲0.81
Add New Post /wp-admin/post-new.php1,548 ▲1923.08 ▲5.50666.56 ▲49.6856.31 ▲8.93
Media Library /wp-admin/upload.php1,398 ▼24.19 ▼0.0598.73 ▼9.5442.79 ▼1.55
EVA - Email Validator /wp-admin/options-general.php?page=eva_email_validator8522.0123.0631.56

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eva-email-validator/plugin.php:19

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)
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (Configuration Page.) image required
The official readme.txt is a good inspiration

eva-email-validator/plugin.php 77% from 13 tests

"EVA - Email Validator" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Description: Keep the plugin description shorter than 140 characters (currently 240 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("eva-email-validator.php" instead of "plugin.php")

Code Analysis Passed 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
No dangerous file extensions were detected464 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP9141323464

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity5.86
▷ Minimum class complexity2.00
▷ Maximum class complexity10.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods48
▷ Static methods24.17%
▷ Public methods4797.92%
▷ Protected methods12.08%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.34MB with 0.26MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png346.89KB78.46KB▼ 77.38%