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.5.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: Dec 2, 2023
  • Number of updates: 14
  • Update frequency: every 92.8 days
  • Top authors: qlcvea (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /2,943 total downloads

Benchmarks

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.16MB] [CPU: ▼2.62ms] 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.60 ▲0.1339.36 ▼4.19
Dashboard /wp-admin3.48 ▲0.1848.84 ▼3.47
Posts /wp-admin/edit.php3.60 ▲0.2449.85 ▲5.62
Add New Post /wp-admin/post-new.php6.06 ▲0.1784.80 ▼8.45
Media Library /wp-admin/upload.php3.40 ▲0.1740.15 ▲8.39
SSO for Azure AD /wp-admin/options-general.php?page=sso_for_azure_ad_options3.4337.75

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
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments

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 ▲3214.54 ▲0.191.57 ▼0.0936.71 ▼7.45
Dashboard /wp-admin2,199 ▲195.61 ▼0.0691.73 ▼3.9140.82 ▼2.23
Posts /wp-admin/edit.php2,104 ▲11.94 ▼0.0738.66 ▼1.3334.52 ▼1.76
Add New Post /wp-admin/post-new.php1,529 ▲323.08 ▼0.44676.84 ▲18.1461.64 ▲13.11
Media Library /wp-admin/upload.php1,407 ▲44.24 ▲0.0495.75 ▼1.9942.71 ▼0.21
SSO for Azure AD /wp-admin/options-general.php?page=sso_for_azure_ad_options1,0202.0023.6933.25

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
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

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

Optimizations

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: sso, azure-ad, 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.5.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 detected959 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP5168135959

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
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%
Functions45
▷ Named functions45100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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