77% user-registration-and-login

Code Review | User Registration and Login

WordPress plugin User Registration and Login scored77%from 54 tests.

About plugin

  • Plugin page: user-registration...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.0.2
  • WordPress version: 6.3.1
  • First release: Dec 11, 2019
  • Latest release: Sep 3, 2022
  • Number of updates: 5
  • Update frequency: every 200.4 days
  • Top authors: dewtechnolab (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,099 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.02MB] [CPU: ▼6.03ms] Passed 4 tests

This is a short check of server-side resources used by User Registration and Login
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.36 ▼7.80
Dashboard /wp-admin3.32 ▲0.0247.65 ▼6.21
Posts /wp-admin/edit.php3.37 ▲0.0248.70 ▼3.24
Add New Post /wp-admin/post-new.php5.90 ▲0.0284.09 ▼6.87
Media Library /wp-admin/upload.php3.25 ▲0.0237.58 ▼2.73
Dew Settings /wp-admin/options-general.php?page=dew-settings3.2234.58

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for User Registration and Login
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,918 ▲13213.57 ▼0.809.22 ▲6.9545.08 ▲1.39
Dashboard /wp-admin2,209 ▲325.74 ▲0.0695.67 ▼5.4939.91 ▼5.89
Posts /wp-admin/edit.php2,108 ▲82.22 ▲0.2435.93 ▼8.2731.53 ▼1.25
Add New Post /wp-admin/post-new.php1,536 ▲1023.78 ▲0.49706.50 ▲22.8969.43 ▲11.13
Media Library /wp-admin/upload.php1,411 ▲114.27 ▲0.0196.46 ▼19.7039.66 ▼8.19
Dew Settings /wp-admin/options-general.php?page=dew-settings8841.7727.2222.71

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-registration-and-login/dew-registration-login.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-registration-and-login/includes/dew-settings.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=dew-settings
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/user-registration-and-login//js/ajax-auth-script.js?ver=6.3.1:3:31)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/options-general.php?page=dew-settings
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function

Optimizations

Plugin configuration 86% 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
4 plugin tags: user signup, users registation, user login, login

user-registration-and-login/dew-registration-login.php 69% from 13 tests

This is the main PHP file of "User Registration and Login" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("user-registration-and-login.php" instead of "dew-registration-login.php")
  • Requires at least: Required version does not match the one declared in readme.txt ("4.5.0" instead of "4.5")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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 detected1,829 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript21551361,173
PHP26156409
CSS1320247

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.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
There are no PNG files in this plugin