84% multisite-multidomain-single-sign-on

Code Review | Multisite Multidomain Single Sign On

WordPress plugin Multisite Multidomain Single Sign On scored84%from 54 tests.

About plugin

  • Plugin page: multisite-multido...
  • Plugin version: 1.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Apr 28, 2020
  • Latest release: Oct 31, 2022
  • Number of updates: 8
  • Update frequency: every 114.5 days
  • Top authors: emfluencekc (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

50+ active /3,160 total downloads

Benchmarks

Plugin footprint 82% 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.15MB] [CPU: ▼13.82ms] Passed 4 tests

A check of server-side resources used by Multisite Multidomain Single Sign On
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0237.59 ▼5.92
Dashboard /wp-admin3.23 ▼0.0834.49 ▼17.15
Posts /wp-admin/edit.php3.29 ▼0.0738.93 ▼11.09
Add New Post /wp-admin/post-new.php5.47 ▼0.4276.14 ▼21.13
Media Library /wp-admin/upload.php3.23 ▼0.0032.56 ▼4.94

Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
  • There were 1 file (4.00KB) illegally modified outside of "wp-content/plugins/multisite-multidomain-single-sign-on/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
recovery_mode_email_last_sent
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Multisite Multidomain Single Sign On
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /811 ▼1,95012.76 ▼1.550.73 ▼1.0814.30 ▼24.07
Dashboard /wp-admin504 ▼1,6961.38 ▼4.4214.12 ▼83.7015.11 ▼23.22
Posts /wp-admin/edit.php502 ▼1,5981.53 ▼0.496.50 ▼29.4017.77 ▼19.85
Add New Post /wp-admin/post-new.php453 ▼1,0921.73 ▼19.2820.84 ▼686.606.82 ▼54.22
Media Library /wp-admin/upload.php512 ▼8911.73 ▼2.5120.37 ▼85.3418.18 ▼25.96

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • recovery_mode_email_last_sent
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

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)
Everything seems fine, however this is by no means an exhaustive test

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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multisite-multidomain-single-sign-on/multisite-multidomain-single-sign-on.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: domain, single sign on, multisite

multisite-multidomain-single-sign-on/multisite-multidomain-single-sign-on.php 92% from 13 tests

"Multisite Multidomain Single Sign On" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 402 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected130 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12240130

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity5.00
▷ Minimum method complexity2.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods571.43%
▷ Protected methods228.57%
▷ 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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.15MB with 0.09MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
banner-772x250.png33.50KB11.47KB▼ 65.75%
icon-256x256.png23.61KB8.34KB▼ 64.69%
banner-1544x500.png79.79KB30.26KB▼ 62.07%
icon-128x128.png14.01KB5.88KB▼ 58.03%