79% okv-oauth

Code Review | Rundiz OAuth

WordPress plugin Rundiz OAuth scored79%from 54 tests.

About plugin

  • Plugin page: okv-oauth
  • Plugin version: 1.5.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.5
  • WordPress version: 6.3.1
  • First release: Jul 15, 2015
  • Latest release: Nov 30, 2023
  • Number of updates: 76
  • Update frequency: every 40.3 days
  • Top authors: okvee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,855 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.61MB] [CPU: ▲0.07ms] Passed 4 tests

An overview of server-side resources used by Rundiz OAuth
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.13 ▲0.6741.83 ▲0.16
Dashboard /wp-admin3.94 ▲0.6455.78 ▲2.71
Posts /wp-admin/edit.php3.99 ▲0.6456.64 ▲8.39
Add New Post /wp-admin/post-new.php6.46 ▲0.5894.26 ▼10.98
Media Library /wp-admin/upload.php3.80 ▲0.5749.45 ▲13.79
Rundiz OAuth /wp-admin/options-general.php?page=rd-oauth-settings3.8842.65

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 64 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_rdoauth_loginlinks_widget
widget_recent-posts
rundizoauth_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Rundiz OAuth
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3514.31 ▲0.101.68 ▼0.0739.39 ▼5.29
Dashboard /wp-admin2,202 ▲305.61 ▼0.0993.30 ▼9.2741.98 ▲1.22
Posts /wp-admin/edit.php2,101 ▼22.15 ▲0.1739.37 ▼2.3935.50 ▲0.03
Add New Post /wp-admin/post-new.php1,694 ▲16622.19 ▼0.86667.92 ▲4.0157.83 ▲6.13
Media Library /wp-admin/upload.php1,407 ▲44.18 ▼0.0196.00 ▼5.2643.13 ▼4.43
Rundiz OAuth /wp-admin/options-general.php?page=rd-oauth-settings1,5172.0127.6136.03

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
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_rdoauth_loginlinks_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/okv-oauth/App/Views/admin/adminNotice_v.php
  • 21× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'RundizOauth\\App\\Libraries\\ErrorsCollection' not found in wp-content/plugins/okv-oauth/templates/okv-oauth/partials/lostPasswordForm_v.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/okv-oauth/App/config/settings_rdoauth.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'RundizOauth\\App\\Controllers\\ControllerInterface' not found in wp-content/plugins/okv-oauth/App/Controllers/Admin/Activation.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'RundizOauth\\App\\Controllers\\ControllerInterface' not found in wp-content/plugins/okv-oauth/App/Controllers/Blocks/LoginLinks.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/okv-oauth/templates/okv-oauth/partials/registerForm_v.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/okv-oauth/templates/okv-oauth/index_v.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_ssl() in wp-content/plugins/okv-oauth/blocks/loginlinks/render.php:10
    • > PHP Fatal error
      Trait 'RundizOauth\\App\\AppTrait' not found in wp-content/plugins/okv-oauth/App/Libraries/MyOauth/Google.php on line 20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/okv-oauth/templates/okv-oauth/partials/editAccountChangeEmailButton_v.php:2
    • > PHP Fatal error
      Uncaught Error: Interface 'RundizOauth\\App\\Controllers\\ControllerInterface' not found in wp-content/plugins/okv-oauth/App/Controllers/Admin/Settings.php:12

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 Passed 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
9 plugin tags: social login, facebook, google login, google register, social connect...

okv-oauth/okv-oauth.php Passed 13 tests

The primary PHP file in "Rundiz OAuth" version 1.5.2 is used by WordPress to initiate all plugin functionality
57 characters long description:
Use OAuth such as Google, Facebook to login and register.

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
Success! There were no dangerous files found in this plugin6,375 lines of code in 55 files:
LanguageFilesBlank linesComment linesLines of code
PHP366671,1283,031
SVG1002,671
PO File1100137242
CSS72718190
JavaScript72781110
Markdown134084
JSON20047

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity32.62
▷ Minimum class complexity1.00
▷ Maximum class complexity218.00
Average method complexity7.46
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces9
Interfaces1
Traits1
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes00.00%
Methods103
▷ Static methods43.88%
▷ Public methods8380.58%
▷ Protected methods65.83%
▷ Private methods1413.59%
Functions6
▷ Named functions00.00%
▷ Anonymous functions6100.00%
Constants1
▷ Global constants1100.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
No PNG files were detected