84% user-sync-for-azure-office365

Code Review | User Sync & Business Directory for Azure AD / Azure B2C / Office 365

WordPress plugin User Sync & Business Directory for Azure AD / Azure B2C / Office 365 scored84%from 54 tests.

About plugin

  • Plugin page: user-sync-for-azu...
  • Plugin version: 2.0.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3
  • WordPress version: 6.3.1
  • First release: Sep 27, 2021
  • Latest release: Sep 25, 2023
  • Number of updates: 22
  • Update frequency: every 33.2 days
  • Top authors: cyberlord92 (68.18%)moazsup (36.36%)

Code review

54 tests

User reviews

7 reviews

Install metrics

70+ active /2,140 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.39MB] [CPU: ▲1.97ms] Passed 4 tests

A check of server-side resources used by User Sync & Business Directory for Azure AD / Azure B2C / Office 365
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.3246.72 ▲3.81
Dashboard /wp-admin3.76 ▲0.4659.53 ▲10.23
Posts /wp-admin/edit.php3.81 ▲0.4653.35 ▲5.39
Add New Post /wp-admin/post-new.php6.28 ▲0.3988.81 ▼3.94
Media Library /wp-admin/upload.php3.62 ▲0.3938.43 ▲2.60
Dashboard /wp-admin/admin.php?page=mo_azos_welcome_page3.6036.95
General Settings /wp-admin/admin.php?page=mo_azos3.6649.70

Server storage [IO: ▲2.35MB] [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: 101 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for User Sync & Business Directory for Azure AD / Azure B2C / Office 365
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲2914.25 ▼0.111.65 ▼0.6242.53 ▼0.65
Dashboard /wp-admin2,209 ▲295.56 ▼0.1682.99 ▼14.3076.61 ▲36.42
Posts /wp-admin/edit.php2,126 ▲231.96 ▼0.0236.20 ▼3.0734.01 ▼3.14
Add New Post /wp-admin/post-new.php1,701 ▲17521.74 ▼1.32760.46 ▲102.4562.47 ▲11.11
Media Library /wp-admin/upload.php1,417 ▲234.09 ▼0.12101.58 ▼10.3279.83 ▲34.62
Dashboard /wp-admin/admin.php?page=mo_azos_welcome_page2,8479.66304.9274.71
General Settings /wp-admin/admin.php?page=mo_azos3,1342.4545.8260.31

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • 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
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function MoAzureObjectSync\\add_action() in wp-content/plugins/user-sync-for-azure-office365/user-sync-for-azure-office365.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed: Please take inspiration from this readme.txt

user-sync-for-azure-office365/user-sync-for-azure-office365.php 92% from 13 tests

The principal PHP file in "User Sync & Business Directory for Azure AD / Azure B2C / Office 365" v. 2.0.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 197 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected8,772 lines of code in 65 files:
LanguageFilesBlank linesComment linesLines of code
PHP338426305,358
CSS6270953,280
SVG2200103
JSON10026
JavaScript3095

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity13.78
▷ Minimum class complexity1.00
▷ Maximum class complexity77.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes27
▷ Abstract classes00.00%
▷ Concrete classes27100.00%
▷ Final classes00.00%
Methods162
▷ Static methods3521.60%
▷ Public methods11570.99%
▷ Protected methods00.00%
▷ Private methods4729.01%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants14
▷ Global constants214.29%
▷ Class constants1285.71%
▷ Public constants12100.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
29 PNG files occupy 0.38MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/wp-32.png0.81KB1.08KB0.00%
images/email.png8.66KB4.63KB▼ 46.56%
images/success.png2.03KB1.75KB▼ 13.70%
images/error.png2.51KB1.63KB▼ 35.06%
images/sync-step.png23.08KB9.24KB▼ 59.97%