90% sso-for-azure-ad

Code Review | SSO for Azure AD

WordPress plugin SSO for Azure AD scored90%from 54 tests.

About plugin

  • Plugin page: sso-for-azure-ad
  • Plugin version: 2.4.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-6.4
  • WordPress version: 6.3.1
  • First release: May 12, 2020
  • Latest release: Nov 11, 2023
  • Number of updates: 13
  • Update frequency: every 98.3 days
  • Top authors: qlcvea (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /2,650 total downloads


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
Install script ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼5.30ms] Passed 4 tests

Server-side resources used by SSO for Azure AD
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1340.65 ▲0.30
Dashboard /wp-admin3.47 ▲0.1345.78 ▼14.29
Posts /wp-admin/edit.php3.59 ▲0.2347.54 ▼0.39
Add New Post /wp-admin/post-new.php6.05 ▲0.1781.29 ▼6.80
Media Library /wp-admin/upload.php3.40 ▲0.1738.60 ▲3.30
SSO for Azure AD /wp-admin/options-general.php?page=sso_for_azure_ad_options3.3734.40

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for SSO for Azure AD
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲4714.25 ▼0.101.97 ▲0.3044.10 ▼2.51
Dashboard /wp-admin2,196 ▲225.54 ▼0.0889.41 ▼8.8438.39 ▼6.26
Posts /wp-admin/edit.php2,104 ▲72.00 ▲0.0540.83 ▲5.1537.76 ▲0.41
Add New Post /wp-admin/post-new.php1,529 ▲323.07 ▲0.29686.04 ▼7.9367.03 ▲8.91
Media Library /wp-admin/upload.php1,407 ▲74.18 ▼0.0197.05 ▼7.3343.14 ▼2.28
SSO for Azure AD /wp-admin/options-general.php?page=sso_for_azure_ad_options9882.0423.2530.92

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: azure-ad, sso, oauth

sso-for-azure-ad/sso-for-azure-ad.php Passed 13 tests

Analyzing the main PHP file in "SSO for Azure AD" version 2.4.0
49 characters long description:
Enable Single Sign On with Azure AD on your site.

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 detected929 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions43100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
There are no PNG files in this plugin