77% jp-user-registration-blacklist

Code Review | JP User Registration Blacklist

WordPress plugin JP User Registration Blacklist scored77%from 54 tests.

About plugin

  • Plugin page: jp-user-registrat...
  • Plugin version: 1.7.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.2
  • WordPress version: 6.3.1
  • First release: May 15, 2014
  • Latest release: Jun 4, 2015
  • Number of updates: 33
  • Update frequency: every 11.7 days
  • Top authors: 5x5m2bswv2 (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /6,678 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 gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼11.08ms] Passed 4 tests

An overview of server-side resources used by JP User Registration Blacklist
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0534.25 ▼6.02
Dashboard /wp-admin3.36 ▲0.0242.89 ▼19.02
Posts /wp-admin/edit.php3.48 ▲0.1242.64 ▼3.82
Add New Post /wp-admin/post-new.php5.94 ▲0.0682.54 ▼15.44
Media Library /wp-admin/upload.php3.29 ▲0.0633.20 ▼1.88
JP User Registration Blacklist Settings /wp-admin/plugins.php?page=JPUserRegTools-Settings3.2331.14

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
JPUserRegTools_options
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for JP User Registration Blacklist
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.16 ▼1.504.06 ▲2.3739.17 ▼0.88
Dashboard /wp-admin2,210 ▲254.87 ▼1.1598.64 ▼0.6938.34 ▼7.68
Posts /wp-admin/edit.php2,090 ▲11.99 ▼0.0235.65 ▼2.1532.21 ▼1.65
Add New Post /wp-admin/post-new.php1,550 ▲1618.15 ▲0.06614.24 ▼40.1875.94 ▲16.82
Media Library /wp-admin/upload.php1,386 ▼54.16 ▼0.07100.55 ▲4.9044.57 ▲0.68
JP User Registration Blacklist Settings /wp-admin/plugins.php?page=JPUserRegTools-Settings8292.0225.9625.35

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
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • JPUserRegTools_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/plugins.php?page=JPUserRegTools-Settings
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/plugins.php?page=JPUserRegTools-Settings
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/jp-user-registration-blacklist/JPUserRegTools.php:20

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 issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === jp-user-registration-blacklist === )
  • Donate link: Invalid URI found ("")
The official readme.txt is a good inspiration

jp-user-registration-blacklist/JPUserRegTools.php 85% from 13 tests

Analyzing the main PHP file in "JP User Registration Blacklist" version 1.7.2
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 157 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("jp-user-registration-blacklist.php" instead of "JPUserRegTools.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin324 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP210469324

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions18100.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