Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/jwt-single-sign-on/src/class-jwt-sso-client.php+66
Undefined variable: default_settings
Server metrics [RAM: ▲0.12MB] [CPU: ▼3.57ms] Passed 4 tests
This is a short check of server-side resources used by JWT Single Sign On
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 45.45 ▲1.56 |
Dashboard /wp-admin | 3.43 ▲0.08 | 53.19 ▼6.71 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 55.77 ▲14.95 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 86.94 ▼14.89 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 43.56 ▲5.75 |
Single Sign On /wp-admin/options-general.php?page=jwt_sso_options | 3.29 | 37.35 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for JWT Single Sign On
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.63 ▼0.62 | 1.57 ▼0.14 | 37.94 ▼4.83 |
Dashboard /wp-admin | 2,210 ▲22 | 5.86 ▲0.01 | 105.46 ▼3.59 | 40.95 ▲5.56 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.97 ▼0.05 | 38.81 ▼1.77 | 36.44 ▲0.03 |
Add New Post /wp-admin/post-new.php | 1,522 ▼20 | 23.25 ▲4.69 | 669.90 ▲35.97 | 53.92 ▼11.45 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.19 ▼0.06 | 97.20 ▼2.05 | 45.81 ▲1.38 |
Single Sign On /wp-admin/options-general.php?page=jwt_sso_options | 920 | 1.76 | 25.35 | 29.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 8 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=jwt_sso_options
- > Notice in wp-content/plugins/jwt-single-sign-on/src/admin-options.php+124
Trying to access array offset on value of type bool
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
Almost there! Just fix the following items
- 7× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/jwt-single-sign-on/src/admin-options.php
- > /wp-content/plugins/jwt-single-sign-on/jwt-sso.php
- > /wp-content/plugins/jwt-single-sign-on/src/functions.php
- > /wp-content/plugins/jwt-single-sign-on/src/class-jwt-sso-client.php
- > /wp-content/plugins/jwt-single-sign-on/src/callback.php
- > /wp-content/plugins/jwt-single-sign-on/src/rewrites.php
- > /wp-content/plugins/jwt-single-sign-on/src/filters.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: singlesignon, jwt, login, sso, token...
jwt-single-sign-on/jwt-sso.php 92% from 13 tests
The principal PHP file in "JWT Single Sign On" v. 1.2.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("jwt-single-sign-on.php" instead of "jwt-sso.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin2,439 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 50 | 48 | 1,266 |
PHP | 18 | 204 | 402 | 901 |
Markdown | 1 | 32 | 0 | 168 |
JSON | 3 | 0 | 0 | 92 |
JavaScript | 1 | 1 | 0 | 12 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 12.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 3.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 16 | 31.37% |
▷ Public methods | 47 | 92.16% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 7.84% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 61.07KB | 24.72KB | ▼ 59.51% |