78% wp-front-end-login-and-register

Code Review | WP Front-end login and register

WordPress plugin WP Front-end login and register scored78%from 54 tests.

About plugin

  • Plugin page: wp-front-end-logi...
  • Plugin version: 2.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.1.1
  • WordPress version: 6.3.1
  • First release: Aug 19, 2017
  • Latest release: Feb 25, 2020
  • Number of updates: 23
  • Update frequency: every 40.0 days
  • Top authors: hellomohsinkhan (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

500+ active /10,372 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.99ms] Passed 4 tests

An overview of server-side resources used by WP Front-end login and register
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.58 ▲2.37
Dashboard /wp-admin3.33 ▲0.0347.01 ▼0.71
Posts /wp-admin/edit.php3.45 ▲0.0944.04 ▼2.50
Add New Post /wp-admin/post-new.php5.91 ▲0.0380.13 ▼11.12
Media Library /wp-admin/upload.php3.26 ▲0.0335.76 ▲3.19

Server storage [IO: ▲0.64MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 42 new files
Database: no new tables, 10 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for WP Front-end login and register
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,929 ▲16813.78 ▼0.6014.19 ▲12.6152.89 ▲14.32
Dashboard /wp-admin2,213 ▲325.57 ▼0.1497.06 ▼4.9041.68 ▼1.49
Posts /wp-admin/edit.php2,118 ▲181.98 ▼0.0535.55 ▼2.9332.79 ▼4.25
Add New Post /wp-admin/post-new.php1,541 ▲223.20 ▲0.09691.13 ▼7.5455.00 ▲2.17
Media Library /wp-admin/upload.php1,418 ▲184.24 ▲0.0792.85 ▼10.3743.12 ▼4.56

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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 fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-front-end-login-and-register/admin/partials/settings/wpmp-shortcodes-settings.php
  • 9× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-front-end-login-and-register/public/partials/wpmp-resetpassword-form.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-front-end-login-and-register/public/partials/wpmp-register-form.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function site_url() in wp-content/plugins/wp-front-end-login-and-register/public/partials/wpmp-profile.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-front-end-login-and-register/admin/partials/settings/wpmp-redirect-settings.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-front-end-login-and-register/admin/partials/settings/wpmp-form-settings.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-front-end-login-and-register/public/partials/wpmp-login-form.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-front-end-login-and-register/admin/partials/settings/wpmp-display-settings.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-front-end-login-and-register/admin/partials/wpmp-admin-display.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-front-end-login-and-register/admin/partials/settings/wpmp-email-settings.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

wp-front-end-login-and-register/wp-mp-register-login.php 92% from 13 tests

The primary PHP file in "WP Front-end login and register" version 2.1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-front-end-login-and-register.php" instead of "wp-mp-register-login.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin2,216 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity10.25
▷ Minimum class complexity1.00
▷ Maximum class complexity49.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
▷ Static methods36.38%
▷ Public methods4289.36%
▷ Protected methods00.00%
▷ Private methods510.64%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
There are no PNG files in this plugin