Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼140.30ms] Passed 4 tests
Analyzing server-side resources used by Course Completed for Learndash
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.05 | 38.75 ▲4.94 |
Dashboard /wp-admin | 3.11 ▲0.05 | 43.36 ▲4.97 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 45.74 ▼0.59 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 84.12 ▼566.84 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 31.65 ▲1.31 |
Course Completed /wp-admin/admin.php?page=learndash-course-completed | 3.02 | 27.99 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Course Completed for Learndash
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.90 ▲0.29 | 7.16 ▼2.31 | 49.25 ▲0.99 |
Dashboard /wp-admin | 2,970 ▲39 | 5.93 ▲0.00 | 133.83 ▼19.98 | 109.32 ▼12.14 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▲0.01 | 64.04 ▼0.08 | 91.17 ▼4.65 |
Add New Post /wp-admin/post-new.php | 1,672 ▼0 | 18.82 ▼0.15 | 349.18 ▼36.99 | 105.70 ▲2.25 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.03 ▲0.00 | 157.32 ▲10.53 | 118.47 ▼4.80 |
Course Completed /wp-admin/admin.php?page=learndash-course-completed | 1,215 | 2.09 | 56.61 | 101.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/course-completed-for-learndash/admin/trcc-settings.php:39
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: learning, education, learndash, lms, elearning
course-completed-for-learndash/learndash-course-completed.php 77% from 13 tests
This is the main PHP file of "Course Completed for Learndash" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Domain Path: The domain path folder was not found ("/languages")
- Main file name: The principal plugin file should be the same as the plugin slug ("course-completed-for-learndash.php" instead of "learndash-course-completed.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected435 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 57 | 32 | 265 |
CSS | 1 | 20 | 2 | 170 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 10 | 90.91% |
▷ Anonymous functions | 1 | 9.09% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin