79% social-oauth-login-sso

Code Review | OAuth Social Login - Single Sign On - SSO

WordPress plugin OAuth Social Login - Single Sign On - SSO scored79%from 54 tests.

About plugin

  • Plugin page: social-oauth-logi...
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Aug 18, 2023
  • Latest release: Sep 21, 2023
  • Number of updates: 17
  • Update frequency: every 2.1 days
  • Top authors: elitecontrivers (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /270 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.77MB] [CPU: ▼3.72ms] Passed 4 tests

A check of server-side resources used by OAuth Social Login - Single Sign On - SSO
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.21 ▲0.7549.02 ▲6.67
Dashboard /wp-admin4.07 ▲0.7652.88 ▼3.56
Posts /wp-admin/edit.php4.17 ▲0.8152.81 ▲0.40
Add New Post /wp-admin/post-new.php6.78 ▲0.8981.16 ▼12.46
Media Library /wp-admin/upload.php4.01 ▲0.7840.27 ▲0.74

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 164 new files
Database: 1 new table, 31 new options
New tables
wp_ec_oauth_login_users
New WordPress options
ecsl_logout_display_text
ecsl_user_role_mapping
elite_button_size
ecsl_apps
widget_recent-posts
ecsl_deactivate_form_submit
ecsl_default_registration_form
ecsl_logout_display
ecsl_premium_apps
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

A check of browser resources used by OAuth Social Login - Single Sign On - SSO
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.26 ▼0.101.79 ▲0.0546.37 ▲3.94
Dashboard /wp-admin2,206 ▲325.54 ▲0.0090.39 ▲3.7775.17 ▲36.49
Posts /wp-admin/edit.php2,127 ▲272.07 ▲0.0338.16 ▲1.6036.20 ▲4.09
Add New Post /wp-admin/post-new.php1,700 ▲17222.14 ▼1.17743.29 ▲53.2053.15 ▼5.39
Media Library /wp-admin/upload.php1,423 ▲204.16 ▲0.0797.70 ▼8.7169.84 ▲22.06

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie tables detected upon uninstall: 1 table
    • wp_ec_oauth_login_users
  • The uninstall procedure has failed, leaving 10 options in the database
    • theysaidso_admin_options
    • ecsl_deactivate_form_submit
    • db_upgraded
    • ecsl_apps
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • ecsl_activation_mail
    • widget_recent-comments
    • ecsl_premium_apps

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (OAuth Social Login Applications Admin View.), #2 (OAuth Social Login Application Buttons Virtual Preview.), #3 (OAuth Social Login Application Settings - General Options.), #4 (OAuth Social Login Application Settings - Redirection & Registration Options.), #5 (OAuth Social Login Application Settings - Display Form Options.), #6 (OAuth Social Login - Button with Text - Application background.), #7 (OAuth Social Login - Button with Text - White background.), #8 (OAuth Social Login - Button with Text - Application Hover.), #9 (OAuth Social Login - Button with Text - Dual color background.), #10 (OAuth Social Login - icon - Application background.), #11 (OAuth Social Login - icon - White background.)
  • Tags: You are using too many tags: 18 tag instead of maximum 10
You can take inspiration from this readme.txt

social-oauth-login-sso/elite-social-login.php 85% from 13 tests

Analyzing the main PHP file in "OAuth Social Login - Single Sign On - SSO" version 1.0.5
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("social-oauth-login-sso.php" instead of "elite-social-login.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected6,454 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
PHP34194874,638
CSS61618980
JavaScript213938836

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity10.67
▷ Minimum class complexity7.00
▷ Maximum class complexity30.00
Average method complexity4.48
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions54
▷ Named functions54100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
112 PNG files occupy 1.28MB with 0.53MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/images/social_images/linkedin/linkedin_icon.png4.88KB2.32KB▼ 52.42%
includes/images/social_images/premium_apps/paypal.png3.16KB2.46KB▼ 22.02%
includes/images/social_images/premium_apps/dropbox.png1.60KB1.86KB0.00%
includes/images/login_images/woocommerce/woocommerce_after_registration.png37.85KB12.48KB▼ 67.04%
includes/images/login_images/woocommerce/woocommerce_before_checkout.png20.09KB7.15KB▼ 64.42%