83% emailable

Code Review | Email Verification

WordPress plugin Email Verification scored 83% from 54 tests.

About plugin

  • Plugin page: emailable
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Dec 2, 2021
  • Latest release: Sep 23, 2023
  • Number of updates: 13
  • Update frequency: every 51.5 days
  • Top authors: emailable (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 608 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
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼5.54ms] Passed 4 tests

An overview of server-side resources used by Email Verification
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0835.98 ▼3.18
Dashboard /wp-admin3.38 ▲0.0846.26 ▼2.87
Posts /wp-admin/edit.php3.49 ▲0.1444.92 ▼3.33
Add New Post /wp-admin/post-new.php5.96 ▲0.0785.45 ▼12.77
Media Library /wp-admin/upload.php3.30 ▲0.0739.99 ▲8.33

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
emlvld_settings
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Email Verification
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲8213.67 ▼0.731.66 ▲0.0140.40 ▼9.96
Dashboard /wp-admin2,223 ▲324.87 ▼0.01112.80 ▲11.58112.44 ▲72.01
Posts /wp-admin/edit.php2,106 ▲171.99 ▲0.0037.25 ▼0.3234.63 ▲0.60
Add New Post /wp-admin/post-new.php1,683 ▲15022.55 ▼0.65679.50 ▲25.9753.14 ▼17.58
Media Library /wp-admin/upload.php1,399 ▲114.20 ▼0.0798.25 ▼13.4081.90 ▲35.06

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • emlvld_settings

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/emailable/emailable.php:29

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 Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: anti-spam, validation, email validation, email, email verification...

emailable/emailable.php 69% from 13 tests

Analyzing the main PHP file in "Email Verification" version 1.0.1
You should first fix the following items:
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Description: The description should be shorter than 140 characters (currently 182 characters long)

Code Analysis Passed 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 detected535 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP7110274497
CSS19038

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity14.25
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods29
▷ Static methods00.00%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/admin/images/emailable.png1.41KB0.95KB▼ 32.32%