Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼4.34ms] Passed 4 tests
An overview of server-side resources used by WP SAML Auth
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 36.82 ▼4.25 |
Dashboard /wp-admin | 3.48 ▲0.18 | 46.43 ▼4.45 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 45.00 ▼2.28 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 85.87 ▼6.37 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 39.10 ▲7.66 |
WP SAML Auth /wp-admin/options-general.php?page=wp-saml-auth-settings | 3.37 | 32.38 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 65 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WP SAML Auth
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲58 | 14.22 ▼0.13 | 1.55 ▼0.11 | 27.05 ▼19.33 |
Dashboard /wp-admin | 2,208 ▲28 | 5.54 ▼0.10 | 95.35 ▼0.48 | 44.93 ▲3.61 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 1.94 ▼0.04 | 35.24 ▼4.10 | 34.71 ▼0.25 |
Add New Post /wp-admin/post-new.php | 1,541 ▲6 | 23.24 ▲4.55 | 691.48 ▲26.39 | 56.91 ▼2.22 |
Media Library /wp-admin/upload.php | 1,419 ▲16 | 4.28 ▲0.11 | 98.67 ▲2.68 | 45.71 ▲2.15 |
WP SAML Auth /wp-admin/options-general.php?page=wp-saml-auth-settings | 1,012 | 2.16 | 25.94 | 33.07 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-saml-auth/wp-saml-auth.php:160
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
2 plugin tags: authentication, saml
wp-saml-auth/wp-saml-auth.php Passed 13 tests
This is the main PHP file of "WP SAML Auth" version 2.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
55 characters long description:
SAML authentication for WordPress, using SimpleSAMLphp.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected11,363 lines of code in 56 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 35 | 1,231 | 3,688 | 7,255 |
XSD | 12 | 233 | 40 | 2,414 |
Markdown | 2 | 407 | 0 | 1,263 |
PO File | 1 | 51 | 72 | 188 |
JSON | 4 | 1 | 0 | 179 |
YAML | 1 | 8 | 2 | 44 |
XML | 1 | 0 | 0 | 20 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 54.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 195.00 |
Average method complexity | 4.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 74.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 24 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 341 | |
▷ Static methods | 109 | 31.96% |
▷ Public methods | 309 | 90.62% |
▷ Protected methods | 6 | 1.76% |
▷ Private methods | 26 | 7.62% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 157 | |
▷ Global constants | 1 | 0.64% |
▷ Class constants | 156 | 99.36% |
▷ Public constants | 156 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected