78% wp-multisite-sso

Code Review | WP Multisite SSO

WordPress plugin WP Multisite SSO scored78%from 54 tests.

About plugin

  • Plugin page: wp-multisite-sso
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2.1
  • WordPress version: 6.3.1
  • First release: Feb 12, 2015
  • Latest release: Sep 7, 2016
  • Number of updates: 8
  • Update frequency: every 71.6 days
  • Top authors: smccafferty (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

30+ active /9,258 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼1.06ms] Passed 4 tests

Analyzing server-side resources used by WP Multisite SSO
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.98 ▲1.90
Dashboard /wp-admin3.37 ▲0.0652.68 ▲3.49
Posts /wp-admin/edit.php3.48 ▲0.1244.50 ▼2.64
Add New Post /wp-admin/post-new.php5.95 ▲0.0685.04 ▼2.12
Media Library /wp-admin/upload.php3.29 ▲0.0634.18 ▼1.36
WP Multisite SSO Settings /wp-admin/options-general.php?page=wp_multisite_sso_settings3.2528.39

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for WP Multisite SSO
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.55 ▼0.821.76 ▲0.0543.11 ▲2.06
Dashboard /wp-admin2,207 ▲225.79 ▼0.1099.94 ▼6.8937.35 ▼3.93
Posts /wp-admin/edit.php2,097 ▲81.99 ▼0.0337.03 ▼0.3438.25 ▲4.35
Add New Post /wp-admin/post-new.php1,545 ▲2618.43 ▼4.96614.02 ▼70.5853.41 ▼13.33
Media Library /wp-admin/upload.php1,392 ▲74.29 ▲0.1797.41 ▼23.6639.67 ▼9.18
WP Multisite SSO Settings /wp-admin/options-general.php?page=wp_multisite_sso_settings7992.0324.5727.43

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wp_multisite_sso_settings
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=wp_multisite_sso_settings
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
  • 4× 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/wp-multisite-sso/wp-multisite-sso.php:292
    • > PHP Notice
      Undefined variable: sso_objects in wp-content/plugins/wp-multisite-sso/inc/sso.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/wp-multisite-sso/admin/admin_template.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-multisite-sso/admin/admin.php:3

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 97% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (Plugin name and description), #2 (SSO Login Page), #3 (SSO Settings Page)
You can look at the official readme.txt

wp-multisite-sso/wp-multisite-sso.php Passed 13 tests

The main file in "WP Multisite SSO" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
100 characters long description:
Single sign on for a multisite network. Users are authenticated across all sites within the network.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin323 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4103132323

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity29.00
▷ Minimum class complexity7.00
▷ Maximum class complexity51.00
Average method complexity4.36
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16100.00%
▷ Public methods1381.25%
▷ Protected methods00.00%
▷ Private methods318.75%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.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
3 PNG files occupy 0.22MB with 0.16MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png69.73KB20.36KB▼ 70.81%
screenshot-2.png49.77KB9.14KB▼ 81.64%
screenshot-3.png102.02KB29.08KB▼ 71.49%