Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼6.97ms] Passed 4 tests
An overview of server-side resources used by LTI Connector for LearnDash
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.95 ▲1.79 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.70 ▼12.01 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.14 ▼7.45 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.15 ▼6.23 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.62 ▼2.17 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for LTI Connector for LearnDash
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.73 ▼0.98 | 1.73 ▼0.07 | 44.19 ▼5.65 |
Dashboard /wp-admin | 2,206 ▲18 | 4.87 ▼1.00 | 99.92 ▼9.84 | 37.85 ▼2.04 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.01 | 41.17 ▲3.84 | 31.64 ▼4.67 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.00 ▼0.12 | 668.92 ▼9.65 | 48.21 ▼4.84 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.21 ▲0.08 | 95.29 ▼2.53 | 41.70 ▼2.32 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
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
Everything seems fine, however 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
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/lti-tool/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/lti-tool-learndash/LearnDashTool.php on line 12
- > PHP Warning
require_once(wp-content/plugins/lti-tool/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/lti-tool-learndash/LearnDashTool.php on line 12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: tool, learndash, ims, lti, 1edtech...
lti-tool-learndash/lti-tool-learndash.php Passed 13 tests
The entry point to "LTI Connector for LearnDash" version 1.0.0 is a PHP file that has certain tags in its header comment area
137 characters long description:
This plugin allows LearnDash to be integrated with on-line courses using the 1EdTech Learning Tools Interoperability (LTI) specification.
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
Everything looks great! No dangerous files found in this plugin478 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 73 | 166 | 478 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 4.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 75.00% |
▷ Protected methods | 1 | 25.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 18 | 94.74% |
▷ Anonymous functions | 1 | 5.26% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin