78% miniorange-login-with-eve-online-google-facebook

Code Review | OAuth Single Sign On - SSO (OAuth Client)

WordPress plugin OAuth Single Sign On - SSO (OAuth Client) scored78%from 54 tests.

About plugin

  • Plugin page: miniorange-login-...
  • Plugin version: 6.25.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.4
  • WordPress version: 6.3.1
  • First release: Jun 28, 2015
  • Latest release: Nov 8, 2023
  • Number of updates: 224
  • Update frequency: every 13.6 days
  • Top authors: cyberlord92 (86.61%)ameyatammewar (12.05%)cyberorange (2.23%)

Code review

54 tests

User reviews

216 reviews

Install metrics

5,000+ active /136,312 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲1.27MB] [CPU: ▲0.94ms] Passed 4 tests

A check of server-side resources used by OAuth Single Sign On - SSO (OAuth Client)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.75 ▲1.2843.54 ▲2.56
Dashboard /wp-admin4.58 ▲1.2749.75 ▼0.20
Posts /wp-admin/edit.php4.63 ▲1.2751.25 ▲6.09
Add New Post /wp-admin/post-new.php7.16 ▲1.2799.56 ▼4.67
Media Library /wp-admin/upload.php4.51 ▲1.2741.76 ▲10.48
Plugin Configuration /wp-admin/admin.php?page=mo_oauth_settings4.4240.94
Add-ons /wp-admin/admin.php?page=?page=mo_oauth_settings&tab=addons4.2730.56
Free Trial /wp-admin/admin.php?page=?page=mo_oauth_settings&tab=requestfordemo4.2730.91
Premium Plans /wp-admin/admin.php?page=?page=mo_oauth_settings&tab=licensing4.2727.68

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 311 new files
Database: no new tables, 9 new options
New WordPress options
host_name
mo_oauth_activation_time
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
widget_mooauth_widget

Browser metrics Passed 4 tests

Checking browser requirements for OAuth Single Sign On - SSO (OAuth Client)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8214.34 ▼0.371.95 ▲0.2031.51 ▼12.63
Dashboard /wp-admin2,235 ▲605.56 ▼0.0884.71 ▼22.8569.65 ▲27.11
Posts /wp-admin/edit.php2,134 ▲311.98 ▼0.0536.14 ▼2.7136.79 ▲3.47
Add New Post /wp-admin/post-new.php1,568 ▲4225.07 ▲2.22659.43 ▲69.9159.56 ▲2.57
Media Library /wp-admin/upload.php1,437 ▲404.14 ▼0.0894.81 ▲0.1279.13 ▲37.09
Plugin Configuration /wp-admin/admin.php?page=mo_oauth_settings3,8453.2456.0890.70
Add-ons /wp-admin/admin.php?page=?page=mo_oauth_settings&tab=addons280.410.103.87
Free Trial /wp-admin/admin.php?page=?page=mo_oauth_settings&tab=requestfordemo280.410.164.10
Premium Plans /wp-admin/admin.php?page=?page=mo_oauth_settings&tab=licensing280.410.083.13

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 8 options
    • theysaidso_admin_options
    • widget_mooauth_widget
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • mo_oauth_activation_time
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 fix the following items
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/miniorange-login-with-eve-online-google-facebook/class-mooauth-widget.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/miniorange-login-with-eve-online-google-facebook/class-mooauth-widget.php:19
    • > PHP Fatal error
      require_once(): Failed opening required 'class-mo-oauth-custom-oauth1.flow.php' (include_path='.:/usr/share/php') in wp-content/plugins/miniorange-login-with-eve-online-google-facebook/class-mo-oauth-custom-oauth1.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/miniorange-login-with-eve-online-google-facebook/admin/partials/setup_wizard/handler/class-mo-oauth-wizard-ajax.php:19
    • > PHP Warning
      require_once(class-mo-oauth-custom-oauth1.flow.php): failed to open stream: No such file or directory in wp-content/plugins/miniorange-login-with-eve-online-google-facebook/class-mo-oauth-custom-oauth1.php on line 15

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=?page=mo_oauth_settings&tab=addons
    • > Network (severe)
    wp-admin/admin.php?page=?page=mo_oauth_settings&tab=addons - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=?page=mo_oauth_settings&tab=requestfordemo
    • > Network (severe)
    wp-admin/admin.php?page=?page=mo_oauth_settings&tab=requestfordemo - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=?page=mo_oauth_settings&tab=licensing
    • > Network (severe)
    wp-admin/admin.php?page=?page=mo_oauth_settings&tab=licensing - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: openid, oauth 20, login, sso, single sign-on

miniorange-login-with-eve-online-google-facebook/mo_oauth_settings.php 85% from 13 tests

The main PHP script in "OAuth Single Sign On - SSO (OAuth Client)" version 6.25.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 330 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("miniorange-login-with-eve-online-google-facebook.php" instead of "mo_oauth_settings.php")

Code Analysis 97% from 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 detected10,723 lines of code in 86 files:
LanguageFilesBlank linesComment linesLines of code
PHP457971,4467,733
PO File36287411,696
SVG100685
JSON410411
JavaScript15536180
CSS1843618

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
Please fix the following
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 262)
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity25.92
▷ Minimum class complexity1.00
▷ Maximum class complexity306.00
Average method complexity5.78
▷ Minimum method complexity1.00
▷ Maximum method complexity262.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes24
▷ Abstract classes00.00%
▷ Concrete classes24100.00%
▷ Final classes00.00%
Methods125
▷ Static methods3528.00%
▷ Public methods11390.40%
▷ Protected methods10.80%
▷ Private methods118.80%
Functions42
▷ Named functions42100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.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
210 compressed PNG files occupy 0.91MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/partials/apps/images/classlink.png2.02KB2.03KB0.00%
admin/partials/guides/images/testconfig.png5.66KB5.81KB0.00%
admin/partials/addons/images/report.png1.52KB1.24KB▼ 17.97%
admin/partials/addons/images/guest-user.png14.00KB13.59KB▼ 2.93%
admin/partials/setup_wizard/images/mail.png1.13KB1.33KB0.00%