10% wp-sso-client

Code Review | wp-sso-client

WordPress plugin wp-sso-client scored 10% from 54 tests.

About plugin

  • Plugin page: wp-sso-client
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.2-4.9.4
  • WordPress version: 5.8.1
  • First release: Feb 23, 2018
  • Latest release: Feb 27, 2018
  • Number of updates: 7
  • Update frequency: every 0.6 days
  • Top authors: ferromariano (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 408 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/wp-sso-client/wp-sso-client.php+204
    Use of undefined constant WP_SSO_SERVER - assumed 'WP_SSO_SERVER' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.82MB] [CPU: ▼191.13ms] Passed 4 tests

This is a short check of server-side resources used by wp-sso-client
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /1.81 ▼1.038.63 ▼27.60
Dashboard /wp-admin1.83 ▼1.236.18 ▼39.30
Posts /wp-admin/edit.php1.83 ▼1.285.57 ▼42.22
Add New Post /wp-admin/post-new.php1.83 ▼3.615.50 ▼652.23
Media Library /wp-admin/upload.php1.83 ▼1.176.61 ▼30.78

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for wp-sso-client
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8316.10 ▲0.469.31 ▲1.7747.37 ▲0.01
Dashboard /wp-admin2,970 ▲396.06 ▼0.10140.33 ▼12.42121.12 ▼0.36
Posts /wp-admin/edit.php2,739 ▼02.68 ▼0.0165.53 ▼8.2095.70 ▲7.43
Add New Post /wp-admin/post-new.php1,872 ▲18919.18 ▲0.84385.41 ▲6.08120.60 ▲7.06
Media Library /wp-admin/upload.php1,807 ▼35.02 ▲0.03151.36 ▲1.73124.51 ▼6.41

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/wp-sso-client/wp-sso-client.php+204
    Use of undefined constant WP_SSO_SERVER - assumed 'WP_SSO_SERVER' (this will throw an Error in a future version of PHP)

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-sso-client/wp-sso-client.php:207
    • > PHP Warning
      Use of undefined constant WP_SSO_SERVER - assumed 'WP_SSO_SERVER' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-sso-client/wp-sso-client.php on line 204

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Contributors: The plugin contributors field is not present
The official readme.txt might help

wp-sso-client/wp-sso-client.php Passed 13 tests

The principal PHP file in "wp-sso-client" v. 1.0 is loaded by WordPress automatically on each request
11 characters long description:
cliente sso

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 detected168 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1688135
JavaScript12027
Markdown1606

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods630.00%
▷ Public methods1890.00%
▷ Protected methods00.00%
▷ Private methods210.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

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