94% wpuf-login-redirect

Code Review | WPUF Login Redirect

WordPress plugin WPUF Login Redirect scored 94% from 54 tests.

About plugin

  • Plugin page: wpuf-login-redirect
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.3
  • WordPress version: 5.8.1
  • First release: Jul 30, 2015
  • Latest release: Sep 19, 2015
  • Number of updates: 18
  • Update frequency: every 2.8 days
  • Top authors: nazmulhassann20 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 2,925 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼143.79ms] Passed 4 tests

Server-side resources used by WPUF Login Redirect
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1248.88 ▲24.17
Dashboard /wp-admin3.06 ▲0.0147.08 ▼3.12
Posts /wp-admin/edit.php3.11 ▼0.0044.80 ▼5.56
Add New Post /wp-admin/post-new.php5.42 ▼0.0198.70 ▼564.28
Media Library /wp-admin/upload.php3.00 ▲0.0033.75 ▼2.18

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

WPUF Login Redirect: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲4215.82 ▲0.307.68 ▼1.6150.10 ▼2.44
Dashboard /wp-admin2,970 ▲365.91 ▼0.02145.12 ▼10.16117.63 ▼5.88
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0073.97 ▲4.6489.93 ▼6.28
Add New Post /wp-admin/post-new.php1,500 ▼11518.81 ▼2.05373.48 ▲87.00121.02 ▲12.82
Media Library /wp-admin/upload.php1,807 ▲35.03 ▲0.03158.15 ▲7.28122.92 ▼4.73

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wpuf-login-redirect/login-redirect.php:17

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 errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: login, redirect, wp user frontend, user redirect, wpuf

wpuf-login-redirect/login-redirect.php 92% from 13 tests

The main file in "WPUF Login Redirect" v. 0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wpuf-login-redirect.php" instead of "login-redirect.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected19 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1111219

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.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 were not PNG files found in your plugin