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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.70MB] [CPU: ▼292.28ms] Passed 4 tests
An overview of server-side resources used by WS-Fed client
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.25 ▲0.74 | 63.55 ▲3.13 |
Dashboard /wp-admin | 4.09 ▲0.69 | 41.11 ▼2.58 |
Posts /wp-admin/edit.php | 4.38 ▲0.74 | 46.61 ▲6.70 |
Add New Post /wp-admin/post-new.php | 7.65 ▲0.65 | 112.78 ▼1,172.68 |
Media Library /wp-admin/upload.php | 4.03 ▲0.74 | 34.68 ▲3.03 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 39 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_saml_login_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WS-Fed client
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,790 ▲36 | 16.05 ▲0.90 | 5.58 ▼1.14 | 2.25 ▼0.43 |
Dashboard /wp-admin | 2,917 ▲59 | 6.28 ▲0.07 | 119.78 ▼18.20 | 170.33 ▼0.58 |
Posts /wp-admin/edit.php | 2,715 ▲21 | 3.28 ▲0.04 | 64.55 ▼2.49 | 141.86 ▼1.44 |
Add New Post /wp-admin/post-new.php | 1,681 ▼71 | 16.28 ▼5.13 | 402.23 ▼37.53 | 206.77 ▲48.83 |
Media Library /wp-admin/upload.php | 1,726 ▲28 | 5.72 ▲0.29 | 121.98 ▼24.15 | 196.02 ▲8.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 1 option
- widget_saml_login_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wsfed-client/mo_login_saml_sso_widget.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wsfed-client/mo_login_saml_sso_widget.php:3
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration 96% 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
5 plugin tags: ws federation, ws-fed, ws fed, wsfed, sso
wsfed-client/login.php 92% from 13 tests
"WS-Fed client" version 2.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wsfed-client.php" instead of "login.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
These items require your attention
- Do not include executable or dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/wsfed-client/resources/sp-certificate.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 565 | 421 | 4,076 |
CSS | 6 | 41 | 41 | 1,110 |
JavaScript | 4 | 25 | 51 | 98 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 60.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 136.00 |
Average method complexity | 4.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 74.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 124 | |
▷ Static methods | 36 | 29.03% |
▷ Public methods | 108 | 87.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 12.90% |
Functions | 25 | |
▷ Named functions | 24 | 96.00% |
▷ Anonymous functions | 1 | 4.00% |
Constants | 27 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 27 | 100.00% |
▷ Public constants | 27 | 100.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
14 PNG files occupy 0.24MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/css/images/ui-icons_454545_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
images/saml_working.png | 11.20KB | 4.91KB | ▼ 56.13% |
includes/css/images/flags16.png | 61.80KB | 19.90KB | ▼ 67.79% |
includes/css/images/ui-icons_cd0a0a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
images/green_check.png | 43.25KB | 16.06KB | ▼ 62.87% |