83% single-sign-on-sso

Code Review | Single Sign-On - Professional SSO solution for WordPress

WordPress plugin Single Sign-On - Professional SSO solution for WordPress scored83%from 54 tests.

About plugin

  • Plugin page: single-sign-on-sso
  • Plugin version: 2.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.9
  • WordPress version: 6.3.1
  • First release: Dec 14, 2017
  • Latest release: Feb 11, 2022
  • Number of updates: 99
  • Update frequency: every 16.1 days
  • Top authors: ClaudeSchlesser (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /14,898 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.23MB] [CPU: ▼16.92ms] Passed 4 tests

This is a short check of server-side resources used by Single Sign-On - Professional SSO solution for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.88 ▲0.4140.05 ▲0.59
Dashboard /wp-admin3.61 ▲0.2633.79 ▼28.47
Posts /wp-admin/edit.php3.67 ▲0.3139.76 ▼10.53
Add New Post /wp-admin/post-new.php5.85 ▼0.0474.11 ▼29.23
Media Library /wp-admin/upload.php3.61 ▲0.3835.92 ▲0.54

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
oa_single_sign_on_notices
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Single Sign-On - Professional SSO solution for WordPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲10513.63 ▼0.751.80 ▲0.0941.37 ▲1.55
Dashboard /wp-admin2,232 ▲445.83 ▲0.9499.25 ▲2.0940.20 ▼1.92
Posts /wp-admin/edit.php2,111 ▲191.99 ▼0.0435.94 ▼4.1937.03 ▲2.85
Add New Post /wp-admin/post-new.php1,565 ▲3718.48 ▲0.38587.11 ▼18.4753.76 ▲3.93
Media Library /wp-admin/upload.php1,411 ▲204.23 ▲0.02100.03 ▲0.1044.43 ▲1.30

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • oa_single_sign_on_notices
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/single-sign-on-sso/includes/core.php:211
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/single-sign-on-sso/includes/user_interface.php:212
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/single-sign-on-sso/includes/admin_interface.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/single-sign-on-sso/oa-single-sign-on.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

single-sign-on-sso/oa-single-sign-on.php 85% from 13 tests

The primary PHP file in "Single Sign-On - Professional SSO solution for WordPress" version 2.1.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 203 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("single-sign-on-sso.php" instead of "oa-single-sign-on.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected3,044 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP75578942,589
CSS2540317
JavaScript11910138

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.58
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%
Functions77
▷ Named functions77100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/logo.png43.20KB19.46KB▼ 54.96%
assets/img/overlay.png0.49KB0.11KB▼ 78.17%
assets/img/status_ok.png0.76KB0.81KB0.00%
assets/img/status_error.png0.64KB0.72KB0.00%