84% scim-user-provisioning

Code Review | SCIM User Sync/Provisioning

WordPress plugin SCIM User Sync/Provisioning scored84%from 54 tests.

About plugin

  • Plugin page: scim-user-provisi...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Aug 28, 2020
  • Latest release: Dec 8, 2022
  • Number of updates: 60
  • Update frequency: every 13.9 days
  • Top authors: cyberlord92 (88.33%)prashantrajkhurana (13.33%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /5,026 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by SCIM User Sync/Provisioning
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1540.65 ▲0.17
Dashboard /wp-admin3.46 ▲0.1251.20 ▼13.77
Posts /wp-admin/edit.php3.58 ▲0.2254.00 ▲2.80
Add New Post /wp-admin/post-new.php6.04 ▲0.1682.70 ▼18.92
Media Library /wp-admin/upload.php3.38 ▲0.1641.73 ▲1.83

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for SCIM User Sync/Provisioning
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3314.24 ▼0.111.98 ▲0.0244.35 ▲1.04
Dashboard /wp-admin2,195 ▲155.56 ▼0.1091.59 ▲3.0888.19 ▲45.00
Posts /wp-admin/edit.php2,121 ▲182.00 ▼0.0237.53 ▼2.0835.18 ▼0.49
Add New Post /wp-admin/post-new.php1,554 ▲2822.99 ▼0.07709.33 ▲78.5757.64 ▼6.05
Media Library /wp-admin/upload.php1,415 ▲184.21 ▲0.0396.81 ▼9.0168.47 ▲23.30

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function update_site_option() in wp-content/plugins/scim-user-provisioning/mo-scim-user-provisioner.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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 (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

scim-user-provisioning/mo-scim-user-provisioner.php 92% from 13 tests

"SCIM User Sync/Provisioning" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("scim-user-provisioning.php" instead of "mo-scim-user-provisioner.php")

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
Good job! No executable or dangerous file extensions detected1,523 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP7177411,191
CSS3423331
JavaScript2131

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity6.00
▷ Minimum class complexity4.00
▷ Maximum class complexity8.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions20
▷ Named functions20100.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
21 compressed PNG files occupy 0.58MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/copy-icon.png0.19KB0.19KB0.00%
images/idp-guides-logos/azure-ad.png19.42KB23.22KB0.00%
images/idp-guides-logos/jumpCloud.png90.64KB89.92KB▼ 0.80%
images/idp-guides-logos/pingone.png1.63KB1.63KB0.00%
images/smile.png17.89KB8.79KB▼ 50.86%