84% wp-valid-email

Code Review | WP Valid Email

WordPress plugin WP Valid Email scored 84% from 54 tests.

About plugin

  • Plugin page: wp-valid-email
  • Plugin version: .1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.1
  • WordPress version: 5.8.1
  • First release: Dec 19, 2014
  • Latest release: Dec 19, 2014
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: Mammothology (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 975 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼169.56ms] Passed 4 tests

This is a short check of server-side resources used by WP Valid Email
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1534.43 ▲11.45
Dashboard /wp-admin3.09 ▲0.0341.87 ▼2.07
Posts /wp-admin/edit.php3.14 ▲0.0340.45 ▼0.39
Add New Post /wp-admin/post-new.php5.44 ▲0.0185.27 ▼674.64
Media Library /wp-admin/upload.php3.03 ▲0.0331.43 ▼1.13
WP Valid Email /wp-admin/options-general.php?page=mmve-valid-email-settings3.0122.62

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 1 new option
New WordPress options
mmve_valid_email_options

Browser metrics Passed 4 tests

An overview of browser requirements for WP Valid Email
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,802 ▲20616.17 ▲0.6212.79 ▲4.9148.53 ▲2.14
Dashboard /wp-admin2,975 ▲445.86 ▼0.07131.71 ▼13.94109.42 ▼9.32
Posts /wp-admin/edit.php2,744 ▲52.68 ▼0.0163.74 ▼2.2396.92 ▲4.99
Add New Post /wp-admin/post-new.php1,503 ▼2,18618.58 ▲3.54353.56 ▼80.08108.53 ▲3.94
Media Library /wp-admin/upload.php1,812 ▲55.01 ▼0.01150.59 ▼6.02115.13 ▼5.55
WP Valid Email /wp-admin/options-general.php?page=mmve-valid-email-settings1,1212.0559.6373.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 1 option
    • mmve_valid_email_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 | 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
  • 4× 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/wp-valid-email/wp-valid-email-main.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_js() in wp-content/plugins/wp-valid-email/views/wp-valid-email-inline.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-valid-email/views/wp-valid-email-settings.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-valid-email/wp-valid-email-main.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
Please take inspiration from this readme.txt

wp-valid-email/wp-valid-email.php 92% from 13 tests

"WP Valid Email" version .1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of ".1.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin361 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP43410199
JavaScript22723162

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin