83% login-redirect-url

Code Review | Login Redirect Url

WordPress plugin Login Redirect Url scored83%from 54 tests.

About plugin

  • Plugin page: login-redirect-url
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 6.3.1
  • First release: Apr 26, 2014
  • Latest release: Sep 13, 2014
  • Number of updates: 7
  • Update frequency: every 20.1 days
  • Top authors: f.staude (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /6,319 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.06MB] [CPU: ▲0.76ms] Passed 4 tests

This is a short check of server-side resources used by Login Redirect Url
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.99 ▼1.39
Dashboard /wp-admin3.36 ▲0.0650.88 ▲0.56
Posts /wp-admin/edit.php3.47 ▲0.1250.09 ▲4.89
Add New Post /wp-admin/post-new.php5.94 ▲0.0696.14 ▲7.84
Media Library /wp-admin/upload.php3.28 ▲0.0634.56 ▼1.03
Login Redirect URL /wp-admin/options-general.php?page=login-redirect-url/class-login-redirect-url.php3.2532.24

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Login Redirect Url
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.77 ▲0.541.76 ▲0.0142.81 ▼1.78
Dashboard /wp-admin2,210 ▲225.81 ▲0.94106.29 ▲7.4040.01 ▼0.77
Posts /wp-admin/edit.php2,096 ▲72.01 ▼0.0439.05 ▲3.9035.41 ▲4.28
Add New Post /wp-admin/post-new.php1,538 ▲1923.39 ▲0.27669.37 ▲24.7458.21 ▲9.59
Media Library /wp-admin/upload.php1,395 ▲104.24 ▲0.0594.62 ▼0.9542.29 ▼0.79
Login Redirect URL /wp-admin/options-general.php?page=login-redirect-url/class-login-redirect-url.php8132.0623.7326.50

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/login-redirect-url/login-redirect-url.php:48

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (user edit dialog), #2 (plugin settings dialog), #3 (user list dialog)
The official readme.txt might help

login-redirect-url/login-redirect-url.php 85% from 13 tests

Analyzing the main PHP file in "Login Redirect Url" version 0.1
You should first fix the following items:
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages")

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
Success! There were no dangerous files found in this plugin278 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP231115149
PO File24190129

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods1191.67%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
3 PNG files occupy 0.13MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png45.72KB12.71KB▼ 72.20%
screenshot-1.png18.21KB4.94KB▼ 72.88%
screenshot-3.png68.36KB19.95KB▼ 70.82%