Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.26MB] [CPU: ▼4.08ms] Passed 4 tests
A check of server-side resources used by Shibboleth
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 38.60 ▼6.83 |
Dashboard /wp-admin | 3.62 ▲0.27 | 58.95 ▼0.77 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 54.29 ▲4.67 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 87.79 ▼9.82 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 38.26 ▲1.10 |
Shibboleth /wp-admin/options-general.php?page=shibboleth-options | 3.51 | 37.71 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Just a few items left to fix
- Illegal file modification found: 1 file (0.98KB) outside of "wp-content/plugins/shibboleth/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Shibboleth
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲75 | 14.36 ▲0.09 | 1.77 ▼0.09 | 39.52 ▼3.60 |
Dashboard /wp-admin | 2,202 ▲21 | 5.63 ▼0.11 | 85.01 ▼18.78 | 38.82 ▼1.02 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 1.99 ▼0.04 | 39.17 ▼2.03 | 36.02 ▼0.58 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.10 ▼0.01 | 631.86 ▼43.55 | 58.96 ▼8.72 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.26 ▲0.03 | 107.02 ▼7.51 | 41.47 ▼4.38 |
Shibboleth /wp-admin/options-general.php?page=shibboleth-options | 1,110 | 2.00 | 23.65 | 46.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
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 | 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 items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shibboleth/options-admin.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shibboleth/options-user.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function get_site_option() in wp-content/plugins/shibboleth/shibboleth.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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
4 plugin tags: shibboleth, login, authentication, saml
shibboleth/shibboleth.php Passed 13 tests
The main PHP file in "Shibboleth" ver. 2.4.3 adds more information about the plugin and also serves as the entry point for this plugin
71 characters long description:
Easily externalize user authentication to a Shibboleth Service Provider
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,661 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 219 | 511 | 1,537 |
CSS | 1 | 17 | 5 | 88 |
JSON | 1 | 0 | 0 | 18 |
JavaScript | 1 | 3 | 16 | 13 |
Markdown | 1 | 3 | 0 | 5 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 47 | |
▷ Named functions | 46 | 97.87% |
▷ Anonymous functions | 1 | 2.13% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icon.png | 3.49KB | 1.80KB | ▼ 48.46% |