84% redirect-multisite-user-to-their-own-site

Code Review | Redirect multisite user to their own site (UNMAINTAINED)

WordPress plugin Redirect multisite user to their own site (UNMAINTAINED) scored84%from 54 tests.

About plugin

  • Plugin page: redirect-multisit...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.6.1
  • WordPress version: 6.3.1
  • First release: Sep 30, 2016
  • Latest release: Nov 11, 2022
  • Number of updates: 9
  • Update frequency: every 248.1 days
  • Top authors: markhowellsmead (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,971 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.01MB] [CPU: ▼6.16ms] Passed 4 tests

A check of server-side resources used by Redirect multisite user to their own site (UNMAINTAINED)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.78 ▼5.17
Dashboard /wp-admin3.31 ▼0.0445.30 ▼11.49
Posts /wp-admin/edit.php3.36 ▲0.0045.81 ▼2.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.63 ▼5.48
Media Library /wp-admin/upload.php3.23 ▲0.0031.94 ▼2.51

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Redirect multisite user to their own site (UNMAINTAINED)
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼1.091.58 ▼0.1341.09 ▲1.49
Dashboard /wp-admin2,209 ▲185.07 ▼0.83109.34 ▲8.4040.17 ▼0.11
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0138.66 ▼4.2935.04 ▲0.34
Add New Post /wp-admin/post-new.php1,544 ▲2718.03 ▲0.39599.36 ▼44.2545.88 ▼13.71
Media Library /wp-admin/upload.php1,388 ▲34.20 ▲0.0094.00 ▼3.1944.16 ▲2.76

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions 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 MHM\\MultisiteRedirectuser\\load_plugin_textdomain() in wp-content/plugins/redirect-multisite-user-to-their-own-site/Plugin.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: redirect, multisite, wpmu, user, parse_request

redirect-multisite-user-to-their-own-site/Plugin.php 85% from 13 tests

"Redirect multisite user to their own site (UNMAINTAINED)" version 1.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 257 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("redirect-multisite-user-to-their-own-site.php" instead of "Plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin41 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14941

PHP code Passed 2 tests

This is a short overview 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.47
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity4.50
▷ Minimum method complexity2.00
▷ Maximum method complexity7.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.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
There were not PNG files found in your plugin