83% reverse-proxy-auth-widget

Code Review | Datawiza Proxy Auth Plugin - SSO

WordPress plugin Datawiza Proxy Auth Plugin - SSO scored83%from 54 tests.

About plugin

  • Plugin page: reverse-proxy-aut...
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8
  • WordPress version: 6.3.1
  • First release: Dec 19, 2020
  • Latest release: Oct 25, 2021
  • Number of updates: 33
  • Update frequency: every 9.4 days
  • Top authors: fyuck1991 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /487 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.25ms] Passed 4 tests

A check of server-side resources used by Datawiza Proxy Auth Plugin - SSO
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.28 ▲1.34
Dashboard /wp-admin3.40 ▲0.0944.10 ▼5.84
Posts /wp-admin/edit.php3.45 ▲0.0947.63 ▼2.39
Add New Post /wp-admin/post-new.php5.91 ▲0.0384.83 ▼7.71
Media Library /wp-admin/upload.php3.26 ▲0.0333.37 ▼1.07
Datawiza Proxy Auth /wp-admin/options-general.php?page=datawiza-sign-in-widget3.2532.04

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 161 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Datawiza Proxy Auth Plugin - SSO
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲18513.61 ▼0.976.01 ▲4.4842.01 ▼2.55
Dashboard /wp-admin2,214 ▲265.84 ▼0.04101.12 ▲3.4639.20 ▼2.00
Posts /wp-admin/edit.php2,096 ▲42.02 ▲0.0137.39 ▼6.0835.85 ▲0.46
Add New Post /wp-admin/post-new.php1,540 ▲2623.44 ▲5.92652.39 ▼11.1154.53 ▲1.91
Media Library /wp-admin/upload.php1,396 ▲144.21 ▼0.0198.57 ▲2.1643.60 ▲2.95
Datawiza Proxy Auth /wp-admin/options-general.php?page=datawiza-sign-in-widget7822.0224.0426.70

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
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Please fix the following
  • 98× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\StreamHandler' not found in wp-content/plugins/reverse-proxy-auth-widget/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/reverse-proxy-auth-widget/vendor/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/reverse-proxy-auth-widget/vendor/monolog/monolog/src/Monolog/Handler/RedisPubSubHandler.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/reverse-proxy-auth-widget/vendor/monolog/monolog/src/Monolog/Handler/SocketHandler.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/reverse-proxy-auth-widget/vendor/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php:25
    • > PHP Fatal error
      Uncaught Error: Interface 'Monolog\\Formatter\\FormatterInterface' not found in wp-content/plugins/reverse-proxy-auth-widget/vendor/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php:21
    • > PHP Fatal error
      Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/reverse-proxy-auth-widget/vendor/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'Monolog\\Handler\\FingersCrossed\\ActivationStrategyInterface' not found in wp-content/plugins/reverse-proxy-auth-widget/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php:36
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/reverse-proxy-auth-widget/vendor/monolog/monolog/src/Monolog/Handler/ElasticsearchHandler.php:44
    • > PHP Fatal error
      Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/reverse-proxy-auth-widget/vendor/psr/log/Psr/Log/Test/TestLogger.php:57

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: sso, single sign-on, auth, proxy, oidc...

reverse-proxy-auth-widget/datawiza-widget.php 77% from 13 tests

The main PHP file in "Datawiza Proxy Auth Plugin - SSO" ver. 1.1.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("reverse-proxy-auth-widget.php" instead of "datawiza-widget.php")
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected9,369 lines of code in 153 files:
LanguageFilesBlank linesComment linesLines of code
PHP1402,1915,1408,185
Markdown62270789
JSON500361
CSS14029
JavaScript1205

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity8.67
▷ Minimum class complexity1.00
▷ Maximum class complexity57.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces15
Interfaces9
Traits5
Classes119
▷ Abstract classes86.72%
▷ Concrete classes11193.28%
▷ Final classes21.80%
Methods720
▷ Static methods648.89%
▷ Public methods49368.47%
▷ Protected methods15621.67%
▷ Private methods719.86%
Functions21
▷ Named functions14.76%
▷ Anonymous functions2095.24%
Constants59
▷ Global constants00.00%
▷ Class constants59100.00%
▷ Public constants3966.10%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin