73% wp-login-register-flow

Code Review | WP Login Register Flow

WordPress plugin WP Login Register Flow scored73%from 54 tests.

About plugin

  • Plugin page: wp-login-register...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Jul 25, 2019
  • Latest release: Jun 15, 2023
  • Number of updates: 6
  • Update frequency: every 237.0 days
  • Top authors: thechetanvaghela (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /802 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 gracefully, with no errors

Server metrics [RAM: ▲0.21MB] [CPU: ▼4.89ms] Passed 4 tests

A check of server-side resources used by WP Login Register Flow
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2846.34 ▲4.74
Dashboard /wp-admin3.51 ▲0.1653.18 ▼12.14
Posts /wp-admin/edit.php3.62 ▲0.2651.27 ▲2.87
Add New Post /wp-admin/post-new.php6.11 ▲0.2287.69 ▼9.42
Media Library /wp-admin/upload.php3.43 ▲0.2038.22 ▼0.88
WP Login Register /wp-admin/admin.php?page=wplrf_settings_page3.3732.73
Manage Users /wp-admin/admin.php?page=wplrf_users_settings_page3.4034.70

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for WP Login Register Flow
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,048 ▲28713.55 ▼1.0410.51 ▲8.6347.04 ▲4.05
Dashboard /wp-admin2,229 ▲525.60 ▼0.0597.63 ▲5.1242.16 ▼0.12
Posts /wp-admin/edit.php2,134 ▲312.00 ▼0.0335.63 ▼3.2134.93 ▼0.03
Add New Post /wp-admin/post-new.php1,552 ▲2423.05 ▲0.19664.33 ▼10.8562.98 ▲7.41
Media Library /wp-admin/upload.php1,425 ▲254.19 ▼0.0395.62 ▼17.3341.44 ▼7.70
WP Login Register /wp-admin/admin.php?page=wplrf_settings_page1,0662.0524.5829.35
Manage Users /wp-admin/admin.php?page=wplrf_users_settings_page9492.1625.6525.77

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
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=wplrf_settings_page
    • > Notice in wp-content/plugins/wp-login-register-flow/admin/class-wp-login-register-flow-admin-setting.php+29
    Undefined variable: allow_reg_value

SRP 0% 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
The following issues need your attention
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-login-register-flow/public/partials/wp-login-register-flow-public-display.php
    • > /wp-content/plugins/wp-login-register-flow/admin/partials/wp-login-register-flow-admin-display.php
  • 4× 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/wp-login-register-flow/includes/wp-login-register-flow-ajax-functions.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-login-register-flow/includes/wp-login-register-flow-shortcodes.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/wp-login-register-flow/public/partials/wplrf-html.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-login-register-flow/admin/class-wp-login-register-flow-admin-setting.php:7

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 Passed 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
9 plugin tags: ajax based login register, reset password, wordpress login, simple login register, account...

wp-login-register-flow/wp-login-register-flow.php Passed 13 tests

The main file in "WP Login Register Flow" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
85 characters long description:
Simple Wordpress login,registration and change/reset password flow for frontend user.

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 plugin2,397 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP162738541,445
CSS33017550
JavaScript36369402

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity6.89
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods43
▷ Static methods24.65%
▷ Public methods3581.40%
▷ Protected methods00.00%
▷ Private methods818.60%
Functions13
▷ Named functions1292.31%
▷ Anonymous functions17.69%
Constants2
▷ Global constants2100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
public/partials/images/wplrf-account-icon.png7.25KB2.79KB▼ 61.48%