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.74MB] [CPU: ▲1.17ms] Passed 4 tests
Analyzing server-side resources used by Single Sign-On into TalentLMS User Sync Integration
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.29 ▲0.83 | 41.59 ▼0.34 |
Dashboard /wp-admin | 4.03 ▲0.72 | 47.62 ▼1.65 |
Posts /wp-admin/edit.php | 4.14 ▲0.78 | 49.04 ▲5.85 |
Add New Post /wp-admin/post-new.php | 6.63 ▲0.74 | 86.70 ▲0.80 |
Media Library /wp-admin/upload.php | 3.95 ▲0.72 | 39.29 ▲7.87 |
Attribute/Role Mapping /wp-admin/admin.php?page=idp_attr_settings | 4.03 | 37.43 |
WordPress TalentLMS Integration /wp-admin/admin.php?page=idp_settings | 4.03 | 35.45 |
IDP Metadata /wp-admin/admin.php?page=idp_metadata | 4.17 | 38.55 |
Service Providers /wp-admin/admin.php?page=idp_configure_idp | 4.09 | 38.38 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 98 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_mo_sp_data |
wp_mo_sp_attributes |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Single Sign-On into TalentLMS User Sync Integration: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲81 | 13.39 ▼0.90 | 3.96 ▲1.73 | 39.66 ▼11.10 |
Dashboard /wp-admin | 2,247 ▲62 | 5.10 ▲0.24 | 102.58 ▼15.72 | 70.01 ▲27.51 |
Posts /wp-admin/edit.php | 2,127 ▲38 | 2.07 ▲0.06 | 36.48 ▼0.81 | 36.82 ▲1.97 |
Add New Post /wp-admin/post-new.php | 1,546 ▲13 | 17.72 ▼5.41 | 709.19 ▲55.14 | 53.65 ▼13.39 |
Media Library /wp-admin/upload.php | 1,426 ▲35 | 4.24 ▼0.05 | 98.69 ▼3.38 | 72.56 ▲27.78 |
Attribute/Role Mapping /wp-admin/admin.php?page=idp_attr_settings | 891 | 2.03 | 26.83 | 33.28 |
WordPress TalentLMS Integration /wp-admin/admin.php?page=idp_settings | 963 | 2.09 | 25.93 | 35.64 |
IDP Metadata /wp-admin/admin.php?page=idp_metadata | 1,098 | 1.69 | 25.32 | 54.37 |
Service Providers /wp-admin/admin.php?page=idp_configure_idp | 1,202 | 1.68 | 26.36 | 31.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
- 33× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function get_sp_list() on null in wp-content/plugins/single-sign-on-into-talentlms-user-sync-integration/controllers/sso-idp-settings.php:8
- > PHP Fatal error
Uncaught Error: Interface 'MSTUSI\\Helper\\Factory\\ResponseHandlerFactory' not found in wp-content/plugins/single-sign-on-into-talentlms-user-sync-integration/helper/saml2/GenerateResponse.php:13
- > PHP Fatal error
Uncaught Error: Class 'MSTUSI\\Handler\\BaseHandler' not found in wp-content/plugins/single-sign-on-into-talentlms-user-sync-integration/handler/SPSettingsUtility.php:12
- > PHP Fatal error
Uncaught Error: Class 'MSTUSI\\Handler\\BaseHandler' not found in wp-content/plugins/single-sign-on-into-talentlms-user-sync-integration/handler/IDPSettingsHandler.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_query_arg() in wp-content/plugins/single-sign-on-into-talentlms-user-sync-integration/controllers/sso-idp-navbar.php:6
- > PHP Fatal error
Trait 'MSTUSI\\Helper\\Traits\\Instance' not found in wp-content/plugins/single-sign-on-into-talentlms-user-sync-integration/MoIDP.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/single-sign-on-into-talentlms-user-sync-integration/views/attr-settings.php:16
- > PHP Warning
include(): Failed opening 'MSTUSI_DIRviews/plugin-details.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/single-sign-on-into-talentlms-user-sync-integration/controllers/plugin-details.php on line 9
- > PHP Fatal error
Trait 'MSTUSI\\Helper\\Traits\\Instance' not found in wp-content/plugins/single-sign-on-into-talentlms-user-sync-integration/actions/SSOActions.php on line 21
- > PHP Fatal error
Uncaught Error: Interface 'MSTUSI\\Helper\\Factory\\RequestHandlerFactory' not found in wp-content/plugins/single-sign-on-into-talentlms-user-sync-integration/helper/saml2/AuthnRequest.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (SSO config Page And TalentLMS Integration Page) image missing
single-sign-on-into-talentlms-user-sync-integration/MoIDPSettings.php 92% from 13 tests
The main file in "Single Sign-On into TalentLMS User Sync Integration" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("single-sign-on-into-talentlms-user-sync-integration.php" instead of "MoIDPSettings.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Almost there! Just fix the following issues
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/single-sign-on-into-talentlms-user-sync-integration/includes/resources/idp-signing-new.crt
- ☣ wp-content/plugins/single-sign-on-into-talentlms-user-sync-integration/includes/resources/idp-signing.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 83 | 912 | 1,033 | 6,247 |
CSS | 2 | 177 | 184 | 979 |
JavaScript | 2 | 21 | 23 | 84 |
XML | 1 | 0 | 0 | 26 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 10.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 154.00 |
Average method complexity | 2.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 2 | |
Traits | 1 | |
Classes | 65 | |
▷ Abstract classes | 1 | 1.54% |
▷ Concrete classes | 64 | 98.46% |
▷ Final classes | 14 | 21.88% |
Methods | 392 | |
▷ Static methods | 61 | 15.56% |
▷ Public methods | 332 | 84.69% |
▷ Protected methods | 5 | 1.28% |
▷ Private methods | 55 | 14.03% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 91 | |
▷ Global constants | 14 | 15.38% |
▷ Class constants | 77 | 84.62% |
▷ Public constants | 77 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/61456.png | 3.64KB | 3.62KB | ▼ 0.62% |
includes/images/miniorange.png | 1.08KB | 1.08KB | 0.00% |
includes/images/logo.png | 2.84KB | 1.59KB | ▼ 44.03% |
includes/images/miniorange_icon.png | 0.44KB | 0.35KB | ▼ 18.61% |