84% haq-login-signup

Code Review | Login Signup

WordPress plugin Login Signup scored84%from 54 tests.

About plugin

  • Plugin page: haq-login-signup
  • Plugin version: 1.9.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1.0
  • WordPress version: 6.3.1
  • First release: Feb 25, 2019
  • Latest release: Nov 21, 2022
  • Number of updates: 11
  • Update frequency: every 124.2 days
  • Top authors: husainahmedqureshi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,555 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.64ms] Passed 4 tests

An overview of server-side resources used by Login Signup
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.20 ▼6.27
Dashboard /wp-admin3.34 ▲0.0447.25 ▲3.41
Posts /wp-admin/edit.php3.39 ▲0.0448.78 ▼3.57
Add New Post /wp-admin/post-new.php5.92 ▲0.0487.72 ▼3.35
Media Library /wp-admin/upload.php3.27 ▲0.0435.35 ▲2.65

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Login Signup
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.25 ▼1.391.68 ▼0.4140.39 ▼2.95
Dashboard /wp-admin2,209 ▲214.81 ▼0.1398.81 ▼6.1739.80 ▲1.66
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0240.38 ▼0.0942.39 ▲5.85
Add New Post /wp-admin/post-new.php1,535 ▲223.18 ▲0.07672.79 ▲21.5059.40 ▼4.49
Media Library /wp-admin/upload.php1,388 ▲34.21 ▼0.0097.01 ▼2.8041.86 ▼0.72

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • 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 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/haq-login-signup/haq-login-signup.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (13 tag instead of maximum 10)
  • Screenshots: These screenshots do not have images: #1 (Displaying the login form on front end), #2 (Displaying the registration form)
The official readme.txt might help

haq-login-signup/haq-login-signup.php Passed 13 tests

The main file in "Login Signup" v. 1.9.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
54 characters long description:
Provides simple front end registration and login forms

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin279 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16043208
CSS12071

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.33
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin