10% threatpoint-email-validator

Code Review | ThreatPoint Email Validator

WordPress plugin ThreatPoint Email Validator scored10%from 54 tests.

About plugin

  • Plugin page: threatpoint-email...
  • Plugin version: 1.4
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.2-6.3
  • WordPress version: 6.3.1
  • First release: May 13, 2020
  • Latest release: Oct 25, 2023
  • Number of updates: 17
  • Update frequency: every 74.1 days
  • Top authors: threatpointuk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /637 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/threatpoint-email-validator/Threatpoint-email.php+210
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.91MB] [CPU: ▼55.47ms] Passed 4 tests

This is a short check of server-side resources used by ThreatPoint Email Validator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.374.97 ▼33.87
Dashboard /wp-admin2.11 ▼1.247.79 ▼51.23
Posts /wp-admin/edit.php2.11 ▼1.255.72 ▼43.75
Add New Post /wp-admin/post-new.php2.11 ▼3.787.26 ▼93.02
Media Library /wp-admin/upload.php2.11 ▼1.127.92 ▼24.15
ThreatPoint Email Validator /wp-admin/options-general.php?page=ThreatPoint-email-page2.117.08

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

ThreatPoint Email Validator: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.26 ▼0.391.70 ▼0.0644.20 ▲2.38
Dashboard /wp-admin2,202 ▲255.63 ▼0.0785.97 ▲1.7438.48 ▼5.67
Posts /wp-admin/edit.php2,104 ▲41.95 ▼0.0833.41 ▼7.3534.78 ▼2.50
Add New Post /wp-admin/post-new.php1,529 ▲122.82 ▼0.29630.00 ▼24.4156.63 ▼5.77
Media Library /wp-admin/upload.php1,404 ▲44.13 ▼0.0696.89 ▲3.0143.94 ▼1.66
ThreatPoint Email Validator /wp-admin/options-general.php?page=ThreatPoint-email-page9431.9923.1851.10

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/threatpoint-email-validator/Threatpoint-email.php+210
    Trying to access array offset on value of type bool
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ThreatPoint-email-page
    • > Notice in wp-content/plugins/threatpoint-email-validator/Threatpoint-email.php+138
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/threatpoint-email-validator/Threatpoint-email.php

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: stop spam, contact form, spambots, email validation, email checker

threatpoint-email-validator/Threatpoint-email.php 85% from 13 tests

"ThreatPoint Email Validator" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("threatpoint-email-validator.php" instead of "Threatpoint-email.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 167 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
Everything looks great! No dangerous files found in this plugin234 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14514234

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected