Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.00MB] [CPU: ▲3.74ms] Passed 4 tests
This is a short check of server-side resources used by Login using WordPress Users ( WP as SAML IDP )
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.58 ▲1.12 | 47.34 ▲6.71 |
Dashboard /wp-admin | 4.29 ▲0.99 | 55.13 ▲3.43 |
Posts /wp-admin/edit.php | 4.39 ▲1.03 | 57.18 ▲2.71 |
Add New Post /wp-admin/post-new.php | 6.88 ▲0.99 | 95.13 ▲2.09 |
Media Library /wp-admin/upload.php | 4.22 ▲0.99 | 51.61 ▲14.67 |
Attribute / Role Mapping /wp-admin/admin.php?page=idp_attr_settings | 4.22 | 44.21 |
Request a Demo /wp-admin/admin.php?page=idp_request_demo | 4.22 | 43.73 |
Add-Ons /wp-admin/admin.php?page=idp_addons | 4.22 | 38.85 |
Service Providers /wp-admin/admin.php?page=idp_configure_idp | 4.27 | 43.18 |
SSO Options /wp-admin/admin.php?page=idp_signin_settings | 4.22 | 40.72 |
IDP Metadata /wp-admin/admin.php?page=idp_metadata | 4.31 | 48.68 |
WordPress IDP /wp-admin/admin.php?page=idp_settings | 4.22 | 43.67 |
Support /wp-admin/admin.php?page=idp_support | 4.22 | 41.09 |
License /wp-admin/admin.php?page=idp_upgrade_settings | 4.23 | 43.09 |
Account Setup /wp-admin/admin.php?page=idp_profile | 4.22 | 46.79 |
Server storage [IO: ▲2.25MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 192 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_mo_sp_attributes |
wp_mo_sp_data |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Login using WordPress Users ( WP as SAML IDP )
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,043 ▲282 | 13.70 ▼0.68 | 1.75 ▼0.16 | 44.32 ▼3.76 |
Dashboard /wp-admin | 2,437 ▲231 | 4.95 ▲0.02 | 114.47 ▲9.78 | 64.22 ▲22.26 |
Posts /wp-admin/edit.php | 2,331 ▲228 | 2.06 ▲0.07 | 41.17 ▼1.05 | 37.06 ▼1.56 |
Add New Post /wp-admin/post-new.php | 1,905 ▲356 | 24.82 ▲1.62 | 707.91 ▲8.34 | 34.60 ▼31.09 |
Media Library /wp-admin/upload.php | 1,628 ▲228 | 4.20 ▲0.02 | 101.19 ▼8.64 | 86.61 ▲37.26 |
Attribute / Role Mapping /wp-admin/admin.php?page=idp_attr_settings | 1,383 | 2.09 | 28.48 | 65.00 |
Request a Demo /wp-admin/admin.php?page=idp_request_demo | 1,331 | 2.08 | 26.42 | 52.57 |
Add-Ons /wp-admin/admin.php?page=idp_addons | 1,376 | 2.18 | 28.17 | 52.65 |
Service Providers /wp-admin/admin.php?page=idp_configure_idp | 1,644 | 2.19 | 28.35 | 73.53 |
SSO Options /wp-admin/admin.php?page=idp_signin_settings | 1,264 | 2.21 | 29.80 | 50.63 |
IDP Metadata /wp-admin/admin.php?page=idp_metadata | 1,501 | 2.19 | 27.34 | 62.58 |
WordPress IDP /wp-admin/admin.php?page=idp_settings | 1,400 | 2.06 | 25.50 | 68.76 |
Support /wp-admin/admin.php?page=idp_support | 1,280 | 2.10 | 25.92 | 43.42 |
License /wp-admin/admin.php?page=idp_upgrade_settings | 1,728 | 2.10 | 24.79 | 73.23 |
Account Setup /wp-admin/admin.php?page=idp_profile | 1,306 | 2.09 | 26.80 | 47.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_mo_sp_attributes
- wp_mo_sp_data
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=idp_signin_settings
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/miniorange-wp-as-saml-idp/autoload.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 12 tag instead of maximum 10
miniorange-wp-as-saml-idp/MoIDPSettings.php 92% from 13 tests
"Login using WordPress Users ( WP as SAML IDP )" version 1.15.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("miniorange-wp-as-saml-idp.php" instead of "MoIDPSettings.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Please make sure to remedy the following
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/miniorange-wp-as-saml-idp/includes/resources/idp-signing-new.crt
- ☣ wp-content/plugins/miniorange-wp-as-saml-idp/includes/resources/idp-signing.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 116 | 1,286 | 4,822 | 8,363 |
CSS | 2 | 149 | 20 | 1,496 |
JavaScript | 4 | 30 | 18 | 237 |
SVG | 1 | 0 | 1 | 75 |
XML | 1 | 0 | 0 | 26 |
HTML | 2 | 0 | 0 | 12 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 9.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 161.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 2 | |
Traits | 1 | |
Classes | 75 | |
▷ Abstract classes | 1 | 1.33% |
▷ Concrete classes | 74 | 98.67% |
▷ Final classes | 16 | 21.62% |
Methods | 424 | |
▷ Static methods | 66 | 15.57% |
▷ Public methods | 318 | 75.00% |
▷ Protected methods | 1 | 0.24% |
▷ Private methods | 105 | 24.76% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 145 | |
▷ Global constants | 16 | 11.03% |
▷ Class constants | 129 | 88.97% |
▷ Public constants | 129 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
55 PNG files occupy 1.48MB with 0.71MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/moodle.png | 8.04KB | 4.19KB | ▼ 47.84% |
includes/images/normal.png | 15.74KB | 7.91KB | ▼ 49.78% |
includes/images/idp_support.png | 12.17KB | 8.49KB | ▼ 30.28% |
includes/images/idp_profile.png | 12.69KB | 8.88KB | ▼ 29.99% |
includes/images/complete-wp-member.png | 34.26KB | 6.14KB | ▼ 82.07% |