Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.61MB] [CPU: ▲5.43ms] Passed 4 tests
An overview of server-side resources used by UMich OIDC Login
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.09 ▲0.63 | 50.90 ▲9.08 |
Dashboard /wp-admin | 3.91 ▲0.60 | 50.63 ▲2.27 |
Posts /wp-admin/edit.php | 3.96 ▲0.60 | 52.52 ▲2.29 |
Add New Post /wp-admin/post-new.php | 6.64 ▲0.76 | 126.01 ▲15.70 |
Media Library /wp-admin/upload.php | 3.83 ▲0.60 | 40.45 ▲8.09 |
UMich OIDC Login /wp-admin/options-general.php?page=umich_oidc-settings | 3.99 | 41.78 |
Server storage [IO: ▲3.61MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 415 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
umich_oidc_internals |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
umich_oidc_settings |
Browser metrics Passed 4 tests
An overview of browser requirements for UMich OIDC Login
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲100 | 13.24 ▼1.31 | 2.06 ▲0.21 | 42.79 ▼1.39 |
Dashboard /wp-admin | 2,212 ▲21 | 4.87 ▼0.06 | 115.22 ▲13.90 | 42.47 ▼1.43 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 1.99 ▼0.06 | 40.09 ▼2.26 | 34.30 ▼0.35 |
Add New Post /wp-admin/post-new.php | 6,256 ▲4,717 | 21.96 ▼1.46 | 949.86 ▲351.78 | 66.59 ▲6.16 |
Media Library /wp-admin/upload.php | 1,394 ▲15 | 4.15 ▼0.07 | 95.76 ▼4.08 | 40.14 ▼2.23 |
UMich OIDC Login /wp-admin/options-general.php?page=umich_oidc-settings | 1,375 | 9.30 | 225.76 | 53.36 |
Uninstaller [IO: ▲3.61MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attentionZombie WordPress options were found after uninstall: 8 options
- Uninstaller has failed for this plugin, leaving 415 files (3.61MB) in the plugin directory
- (new file) LICENSE.txt
- (new file) build/vendor/composer/InstalledVersions.php
- (new file) build/vendor/composer/ClassLoader.php
- (new file) build/composer.json
- (new file) build/metabox/index.js
- (new file) README.txt
- (new file) build/metabox/index.asset.php
- (new file) COPYRIGHT.txt
- (new file) assets/js/settings.js
- (new file) build/vendor/autoload.php
- ...
- widget_recent-posts
- umich_oidc_internals
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- umich_oidc_settings
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
- 176× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'UMich_OIDC\\Vendor\\phpseclib3\\Crypt\\DSA' not found in wp-content/plugins/umich-oidc-login/build/vendor/phpseclib/phpseclib/phpseclib/Crypt/DSA/Parameters.php:19
- > PHP Fatal error
Uncaught Error: Class 'UMich_OIDC\\Vendor\\phpseclib3\\Math\\Common\\FiniteField' not found in wp-content/plugins/umich-oidc-login/build/vendor/phpseclib/phpseclib/phpseclib/Math/BinaryField.php:24
- > PHP Fatal error
Uncaught Error: Class 'UMich_OIDC\\Vendor\\phpseclib3\\Crypt\\EC\\BaseCurves\\Binary' not found in wp-content/plugins/umich-oidc-login/build/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/sect283r1.php:17
- > PHP Fatal error
Uncaught Error: Class 'UMich_OIDC\\Vendor\\phpseclib3\\Crypt\\Common\\Formats\\Keys\\PKCS8' not found in wp-content/plugins/umich-oidc-login/build/vendor/phpseclib/phpseclib/phpseclib/Crypt/RSA/Formats/Keys/PKCS8.php:35
- > PHP Fatal error
Uncaught Error: Class 'UMich_OIDC\\Vendor\\phpseclib3\\Crypt\\EC\\BaseCurves\\Binary' not found in wp-content/plugins/umich-oidc-login/build/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/sect239k1.php:17
- > PHP Fatal error
Uncaught Error: Class 'UMich_OIDC\\Vendor\\phpseclib3\\Crypt\\EC\\Curves\\sect233r1' not found in wp-content/plugins/umich-oidc-login/build/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/nistb233.php:15
- > PHP Fatal error
Uncaught Error: Class 'UMich_OIDC\\Vendor\\phpseclib3\\Math\\BigInteger\\Engines\\OpenSSL' not found in wp-content/plugins/umich-oidc-login/build/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/PHP/OpenSSL.php:21
- > PHP Fatal error
Uncaught Error: Class 'UMich_OIDC\\Vendor\\phpseclib3\\Crypt\\EC\\Curves\\secp192r1' not found in wp-content/plugins/umich-oidc-login/build/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/prime192v1.php:15
- > PHP Fatal error
Uncaught Error: Class 'UMich_OIDC\\Vendor\\phpseclib3\\Math\\BigInteger\\Engines\\PHP' not found in wp-content/plugins/umich-oidc-login/build/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/PHP64.php:22
- > PHP Notice
Undefined variable: option_defaults in wp-content/plugins/umich-oidc-login/includes/admin/settings-tab-general.php on line 25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: login, access-control, oidc, content restriction, groups
umich-oidc-login/umich-oidc-login.php Passed 13 tests
The principal PHP file in "UMich OIDC Login" v. 1.2.0 is loaded by WordPress automatically on each request
126 characters long description:
Restrict access to the whole site or only certain parts based on OpenID Connect (OIDC) login and group membership information.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin63,111 lines of code in 404 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 383 | 1,568 | 25,535 | 33,223 |
JSON | 7 | 0 | 0 | 29,019 |
JavaScript | 8 | 64 | 78 | 706 |
Sass | 3 | 44 | 1 | 138 |
XML | 1 | 0 | 0 | 19 |
Bourne Shell | 1 | 2 | 0 | 3 |
CSS | 1 | 0 | 0 | 3 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 16.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 679.00 |
Average method complexity | 4.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 104.00 |
Code structure | ||
---|---|---|
Namespaces | 48 | |
Interfaces | 3 | |
Traits | 4 | |
Classes | 354 | |
▷ Abstract classes | 208 | 58.76% |
▷ Concrete classes | 146 | 41.24% |
▷ Final classes | 25 | 17.12% |
Methods | 1,686 | |
▷ Static methods | 490 | 29.06% |
▷ Public methods | 1,193 | 70.76% |
▷ Protected methods | 241 | 14.29% |
▷ Private methods | 252 | 14.95% |
Functions | 39 | |
▷ Named functions | 10 | 25.64% |
▷ Anonymous functions | 29 | 74.36% |
Constants | 319 | |
▷ Global constants | 9 | 2.82% |
▷ Class constants | 310 | 97.18% |
▷ Public constants | 310 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin