84% login-redirection-link

Code Review | Login Redirection Link

WordPress plugin Login Redirection Link scored84%from 54 tests.

About plugin

  • Plugin page: login-redirection...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.0
  • WordPress version: 6.3.1
  • First release: Apr 18, 2014
  • Latest release: Oct 26, 2014
  • Number of updates: 3
  • Update frequency: every 63.7 days
  • Top authors: plocha (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,687 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

A check of server-side resources used by Login Redirection Link
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.31 ▼4.76
Dashboard /wp-admin3.31 ▼0.0347.60 ▼15.46
Posts /wp-admin/edit.php3.36 ▲0.0144.23 ▼3.55
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.32 ▼12.30
Media Library /wp-admin/upload.php3.23 ▲0.0135.26 ▼1.66

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Login Redirection Link
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.28 ▼0.911.69 ▼0.0239.90 ▼4.39
Dashboard /wp-admin2,224 ▲216.06 ▲1.1793.93 ▼16.3938.24 ▼2.53
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0333.35 ▼3.3536.76 ▲5.34
Add New Post /wp-admin/post-new.php1,545 ▼023.14 ▼0.27620.61 ▼80.0758.07 ▲7.62
Media Library /wp-admin/upload.php1,403 ▼04.25 ▼0.0296.99 ▼7.4847.01 ▼1.30

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

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
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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function login_redirection_link\\apply_filters() in wp-content/plugins/login-redirection-link/login-redirection-link.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: frontend, loginout, link, login, redirect...

login-redirection-link/login-redirection-link.php Passed 13 tests

Analyzing the main PHP file in "Login Redirection Link" version 1.0
110 characters long description:
Redirects users to the previous url after login ( and logout ) by adding a redirection parameter to the links.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin37 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1182437

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG files were detected