Benchmarks
Plugin footprint 83% 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.18MB] [CPU: ▼7.70ms] Passed 4 tests
Analyzing server-side resources used by OAuth client Single Sign On for WordPress ( OAuth 2.0 SSO )
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 43.32 ▲2.60 |
Dashboard /wp-admin | 3.49 ▲0.18 | 50.56 ▼9.68 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 50.72 ▼1.31 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 86.23 ▼22.42 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 40.58 ▲5.07 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for OAuth client Single Sign On for WordPress ( OAuth 2.0 SSO )
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲122 | 14.17 ▼0.18 | 1.70 ▼0.04 | 46.90 ▲0.57 |
Dashboard /wp-admin | 2,281 ▲101 | 5.63 ▼0.03 | 90.61 ▼9.76 | 55.86 ▲9.11 |
Posts /wp-admin/edit.php | 2,189 ▲86 | 1.97 ▲0.01 | 39.49 ▲0.48 | 36.39 ▼0.81 |
Add New Post /wp-admin/post-new.php | 1,612 ▲79 | 23.21 ▲0.00 | 642.43 ▼32.56 | 53.26 ▼5.08 |
Media Library /wp-admin/upload.php | 1,486 ▲83 | 4.19 ▼0.03 | 99.68 ▼5.58 | 44.46 ▼2.35 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/oauth-client-for-user-authentication/oauthclient_controller.php on line 16
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/oauth-client-for-user-authentication/oauthclient_controller.php on line 16
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/oauth-client-for-user-authentication/oauthclient_controller.php on line 16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (OAuth Configuration.), #2 (Attributes Mapping for WP users.)
oauth-client-for-user-authentication/oauthclient_controller.php 92% from 13 tests
This is the main PHP file of "OAuth client Single Sign On for WordPress ( OAuth 2.0 SSO )" version 3.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("oauth-client-for-user-authentication.php" instead of "oauthclient_controller.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin2,307 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 337 | 38 | 1,412 |
JavaScript | 4 | 158 | 1 | 495 |
CSS | 1 | 72 | 12 | 400 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 32.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 4.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 70.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 10 | 41.67% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 images were found in this plugin