Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/fusionspan-impexium-single-sign-on/wp-bootstrap/src/WP/Views/Input.php+153
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▲3.99MB] [CPU: ▼317.89ms] Passed 4 tests
A check of server-side resources used by Impexium Single Sign On
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.35 ▲4.84 | 25.58 ▼27.26 |
Dashboard /wp-admin | 8.37 ▲4.97 | 24.86 ▼8.34 |
Posts /wp-admin/edit.php | 8.37 ▲4.73 | 24.28 ▼13.71 |
Add New Post /wp-admin/post-new.php | 8.37 ▲1.40 | 24.05 ▼1,222.25 |
Media Library /wp-admin/upload.php | 8.37 ▲5.07 | 22.94 ▼5.57 |
Freemius Debug [v.2.4.1] /wp-admin/admin.php?page=freemius | 8.37 | 27.51 |
Server storage [IO: ▲4.55MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 202 new files
Database: no new tables, 4 new options
New WordPress options |
---|
fs_debug_mode |
fs_active_plugins |
fs_accounts |
fs_gdpr |
Browser metrics Passed 4 tests
An overview of browser requirements for Impexium Single Sign On
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,828 ▲74 | 15.91 ▼0.07 | 5.76 ▼0.60 | 2.16 ▼0.25 |
Dashboard /wp-admin | 2,958 ▲100 | 6.17 ▼0.13 | 118.39 ▼17.42 | 185.02 ▲27.76 |
Posts /wp-admin/edit.php | 2,755 ▲67 | 3.11 ▼0.13 | 60.71 ▼1.46 | 158.00 ▲19.55 |
Add New Post /wp-admin/post-new.php | 1,736 ▲75 | 18.74 ▲2.41 | 416.50 ▼2.21 | 191.89 ▲19.19 |
Media Library /wp-admin/upload.php | 1,758 ▲60 | 5.56 ▲0.06 | 124.57 ▼23.82 | 234.03 ▲43.48 |
Freemius Debug [v.2.4.1] /wp-admin/admin.php?page=freemius | 1,468 | 2.47 | 54.19 | 113.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/fusionspan-impexium-single-sign-on/wp-bootstrap/src/WP/Views/Input.php+153
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- This plugin did not uninstall successfully, leaving 4 options in the database
- fs_debug_mode
- fs_accounts
- fs_gdpr
- fs_active_plugins
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=freemius
- > Deprecated in wp-content/plugins/fusionspan-impexium-single-sign-on/wp-bootstrap/src/WP/Views/Input.php+153
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=freemius
- > Notice in wp-content/plugins/fusionspan-impexium-single-sign-on/wp-bootstrap/src/WP/Traits/Helpers.php+51
Only variables should be passed by reference
SRP 0% 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 items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/fusionspan-impexium-single-sign-on/freemius/templates/ajax-loader.php
- 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/fusionspan-impexium-single-sign-on/freemius/templates/account/partials/addon.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP\\Views\\View' not found in wp-content/plugins/fusionspan-impexium-single-sign-on/Views/Impexium.php:8
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/fusionspan-impexium-single-sign-on/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/fusionspan-impexium-single-sign-on/freemius/templates/account/partials/addon.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'WP\\Views\\Form' not found in wp-content/plugins/fusionspan-impexium-single-sign-on/wp-bootstrap/src/WP/Views/View.php:10
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/fusionspan-impexium-single-sign-on/freemius/templates/account/partials/addon.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'WP\\Views\\Page' not found in wp-content/plugins/fusionspan-impexium-single-sign-on/Views/Render.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/fusionspan-impexium-single-sign-on/freemius/templates/partials/network-activation.php:6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/fusionspan-impexium-single-sign-on/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/fusionspan-impexium-single-sign-on/freemius/templates/account/partials/addon.php on line 6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: A description for screenshot #2 is missing in fusionspan-impexium-single-sign-on/assets to your readme.txt
- Screenshots: Please add an image for screenshot #1 (Enter your Impexium API URL and credentials in the Plugin Settings.)
fusionspan-impexium-single-sign-on/fusionspan-impexium-single-sign-on.php Passed 13 tests
The principal PHP file in "Impexium Single Sign On" v. 1.1 is loaded by WordPress automatically on each request
69 characters long description:
Authenticate users to sign in using Impexium credentials via RestAPI.
Code Analysis 97% from 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 detected47,397 lines of code in 152 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 122 | 7,528 | 16,296 | 31,703 |
PO File | 12 | 6,951 | 8,444 | 15,222 |
JavaScript | 5 | 37 | 61 | 217 |
Markdown | 1 | 68 | 0 | 214 |
JSON | 1 | 0 | 0 | 27 |
CSS | 11 | 0 | 0 | 14 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,895)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 70.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,895.00 |
Average method complexity | 4.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 2 | |
Classes | 58 | |
▷ Abstract classes | 4 | 6.90% |
▷ Concrete classes | 54 | 93.10% |
▷ Final classes | 0 | 0.00% |
Methods | 1,235 | |
▷ Static methods | 223 | 18.06% |
▷ Public methods | 865 | 70.04% |
▷ Protected methods | 33 | 2.67% |
▷ Private methods | 337 | 27.29% |
Functions | 121 | |
▷ Named functions | 116 | 95.87% |
▷ Anonymous functions | 5 | 4.13% |
Constants | 134 | |
▷ Global constants | 109 | 81.34% |
▷ Class constants | 25 | 18.66% |
▷ Public constants | 25 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.54MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 79.33KB | 29.58KB | ▼ 62.71% |
assets/images/logo.png | 1.47KB | 0.84KB | ▼ 43.07% |
assets/screenshot-2.png | 83.87KB | 32.92KB | ▼ 60.75% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/images/logo_big.png | 15.20KB | 6.14KB | ▼ 59.60% |