84% redirect-network-login

Code Review | Redirect Network Login

WordPress plugin Redirect Network Login scored 84% from 54 tests.

About plugin

  • Plugin page: redirect-network-...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.2-4.9
  • WordPress version: 6.3.1
  • First release: Mar 11, 2014
  • Latest release: May 15, 2018
  • Number of updates: 12
  • Update frequency: every 145.6 days
  • Top authors: JPry (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 961 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 successfully, without throwing any errors or notices

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

Server-side resources used by Redirect Network Login
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.65 ▲0.01
Dashboard /wp-admin3.31 ▲0.0142.47 ▼3.25
Posts /wp-admin/edit.php3.36 ▲0.0042.64 ▼3.01
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.40 ▲3.09
Media Library /wp-admin/upload.php3.23 ▲0.0036.61 ▲1.79

Server storage [IO: ▲0.00MB] [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
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Redirect Network Login: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.18 ▼1.211.76 ▲0.1143.63 ▼5.54
Dashboard /wp-admin2,203 ▲125.84 ▼0.0596.44 ▼3.6539.18 ▼8.50
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0135.07 ▲0.4634.86 ▲1.50
Add New Post /wp-admin/post-new.php1,542 ▲2818.36 ▲0.76613.78 ▼72.9659.22 ▲2.51
Media Library /wp-admin/upload.php1,388 ▼34.18 ▼0.0393.90 ▼1.0343.05 ▼6.44

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/redirect-network-login/redirect-network-login.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Donate link: Invalid url: ""
You can look at the official readme.txt

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

The main file in "Redirect Network Login" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
71 characters long description:
Redirect the wp-login.php form of sub-sites to the main site login form

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
Success! There were no dangerous files found in this plugin43 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
Markdown115028
PHP131715

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.67
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%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected