Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.64MB] [CPU: ▼15.63ms] Passed 4 tests
Analyzing server-side resources used by Learnworlds-SSO
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.17 ▲3.87 |
Dashboard /wp-admin | 3.34 ▲0.04 | 45.95 ▼1.61 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 43.19 ▼7.29 |
Add New Post /wp-admin/post-new.php | 3.21 ▼2.67 | 33.67 ▼55.94 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 36.08 ▲2.32 |
Learnworlds SSO /wp-admin/options-general.php?page=options-learnworlds-sso | 3.23 | 30.55 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 12 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
learnworlds_sso_client_id |
learnworlds_sso_api_server_url |
can_compress_scripts |
widget_learnworlds_sso_widget |
widget_theysaidso_widget |
learnworlds_sso_access_token_expires_on |
theysaidso_admin_options |
learnworlds_sso_access_token |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Learnworlds-SSO
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲68 | 14.42 ▼0.14 | 2.06 ▲0.38 | 43.19 ▲3.15 |
Dashboard /wp-admin | 2,199 ▲25 | 5.71 ▲0.13 | 94.56 ▼5.79 | 41.89 ▼2.28 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.96 ▼0.05 | 37.34 ▼4.16 | 32.94 ▼1.33 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 18.07 ▼4.91 | 623.33 ▼43.71 | 53.06 ▼6.43 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.19 ▼0.00 | 96.46 ▼0.37 | 42.99 ▼4.97 |
Learnworlds SSO /wp-admin/options-general.php?page=options-learnworlds-sso | 845 | 2.00 | 24.22 | 40.75 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 12 options
- learnworlds_sso_access_token
- learnworlds_sso_client_id
- learnworlds_sso_client_secret
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- learnworlds_sso_access_token_expires_on
- widget_recent-posts
- learnworlds_sso_api_server_url
- widget_recent-comments
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/learnworlds-sso/class.learnworlds-sso-widget.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/learnworlds-sso/class.learnworlds-sso-widget.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
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
7 plugin tags: login, learnworlds, woocommerce, register, reset...
learnworlds-sso/learnworlds-sso.php Passed 13 tests
The principal PHP file in "Learnworlds-SSO" v. 1.6 is loaded by WordPress automatically on each request
81 characters long description:
Give your students access to their school account right from your WordPress page.
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 detected595 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 96 | 37 | 595 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 18.20 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 3.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 3 | 11.11% |
▷ Public methods | 27 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 13 | 100.00% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 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
PNG images were not found in this plugin