68% wordpress-login-redirect

Code Review | WordPress Login Redirect

WordPress plugin WordPress Login Redirect scored68%from 54 tests.

About plugin

  • Plugin page: wordpress-login-r...
  • Plugin version: 2.5.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.0-4.1.0
  • WordPress version: 6.3.1
  • First release: Sep 18, 2010
  • Latest release: Apr 7, 2016
  • Number of updates: 23
  • Update frequency: every 89.4 days
  • Top authors: christopherross (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active /21,316 total downloads

Benchmarks

Plugin footprint 65% 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.93MB] [CPU: ▼37.07ms] Passed 4 tests

A check of server-side resources used by WordPress Login Redirect
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0248.32 ▲4.14
Dashboard /wp-admin3.01 ▼0.2926.57 ▼26.96
Posts /wp-admin/edit.php3.02 ▼0.3528.67 ▼26.87
Add New Post /wp-admin/post-new.php3.01 ▼2.8825.22 ▼83.31
Media Library /wp-admin/upload.php3.01 ▼0.2227.37 ▼11.14

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for WordPress Login Redirect
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.71 ▲0.302.10 ▲0.1356.24 ▲7.40
Dashboard /wp-admin2,202 ▲255.68 ▼0.0097.23 ▼3.4441.58 ▼6.87
Posts /wp-admin/edit.php2,107 ▲72.03 ▲0.0838.41 ▼9.7332.44 ▼3.20
Add New Post /wp-admin/post-new.php1,531 ▲321.11 ▼2.18681.79 ▲22.7257.75 ▲9.35
Media Library /wp-admin/upload.php1,404 ▲44.16 ▼0.07124.96 ▲8.0252.03 ▲5.05
Login Redirect /wp-admin/thisismyurl_wordress_login_redirect.php260.420.7016.10

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% 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 everything seems fine, this is not an exhaustive test

SRP 50% 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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wordpress-login-redirect/wordpress-login-redirect.php:34

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/thisismyurl_wordress_login_redirect.php
    • > Network (severe)
    wp-admin/thisismyurl_wordress_login_redirect.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: subscriber, login, redirect

wordpress-login-redirect/wordpress-login-redirect.php Passed 13 tests

The entry point to "WordPress Login Redirect" version 2.5.0 is a PHP file that has certain tags in its header comment area
93 characters long description:
A plugin which redirects subscriber level users back to the homepage after they've logged in.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin110 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14050110

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin