10% miniorange-saml-cloud

Code Review | Customer Identity (CIAM) - miniOrange

WordPress plugin Customer Identity (CIAM) - miniOrange scored10%from 54 tests.

About plugin

  • Plugin page: miniorange-saml-c...
  • Plugin version: 5.0.4
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-6.0.2
  • WordPress version: 6.3.1
  • First release: Jun 2, 2016
  • Latest release: Sep 29, 2022
  • Number of updates: 9
  • Update frequency: every 256.8 days
  • Top authors: cyberlord92 (88.89%)abhishek99rana (22.22%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,988 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/miniorange-saml-cloud/Response.php+111
    Cannot use "parent" when current class scope has no parent

Server metrics [RAM: ▼1.30MB] [CPU: ▼47.43ms] Passed 4 tests

Analyzing server-side resources used by Customer Identity (CIAM) - miniOrange
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.69 ▼0.788.83 ▼31.63
Dashboard /wp-admin2.71 ▼0.609.73 ▼39.22
Posts /wp-admin/edit.php2.71 ▼0.6510.37 ▼41.71
Add New Post /wp-admin/post-new.php2.71 ▼3.1810.27 ▼77.15
Media Library /wp-admin/upload.php2.71 ▼0.5212.92 ▼24.25

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 34 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
mo_saml_enable_cloud_broker
widget_saml_login_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Customer Identity (CIAM) - miniOrange
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,922 ▲13613.47 ▼0.929.94 ▲8.1244.09 ▲0.01
Dashboard /wp-admin2,215 ▲355.77 ▲0.0994.48 ▲0.8792.53 ▲51.41
Posts /wp-admin/edit.php2,123 ▲202.21 ▲0.2234.57 ▼8.2433.20 ▼5.05
Add New Post /wp-admin/post-new.php1,547 ▲1922.94 ▼0.18755.03 ▲133.8754.25 ▲10.60
Media Library /wp-admin/upload.php1,414 ▲144.31 ▲0.04104.84 ▲2.5467.96 ▲25.56

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/miniorange-saml-cloud/Response.php+111
    Cannot use "parent" when current class scope has no parent
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_saml_login_widget
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/miniorange-saml-cloud/mo_login_saml_sso_widget.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/miniorange-saml-cloud/mo_login_saml_sso_widget.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 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
4 plugin tags: mfa, iam, ciam, user authentication

miniorange-saml-cloud/login.php 92% from 13 tests

The main PHP script in "Customer Identity (CIAM) - miniOrange" version 5.0.4 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("miniorange-saml-cloud.php" instead of "login.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected6,531 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP147591,3765,305
CSS443411,137
JavaScript2245189

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity54.91
▷ Minimum class complexity1.00
▷ Maximum class complexity154.00
Average method complexity3.88
▷ Minimum method complexity1.00
▷ Maximum method complexity70.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods206
▷ Static methods3617.48%
▷ Public methods17685.44%
▷ Protected methods00.00%
▷ Private methods3014.56%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants36
▷ Global constants00.00%
▷ Class constants36100.00%
▷ Public constants36100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
13 PNG files occupy 0.24MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/green_check.png43.25KB16.06KB▼ 62.87%
images/miniorange.png0.44KB0.35KB▼ 18.61%
includes/css/images/ui-icons_2e83ff_256x240.png4.44KB4.17KB▼ 6.02%
images/saml_working_womo.png5.55KB2.45KB▼ 55.88%
images/flags16.png61.80KB19.90KB▼ 67.79%