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: ▲1.57MB] [CPU: ▲11.87ms] Passed 4 tests
A check of server-side resources used by LucidLMS
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.84 ▲1.38 | 55.03 ▲9.29 |
Dashboard /wp-admin | 4.93 ▲1.63 | 68.29 ▲12.92 |
Posts /wp-admin/edit.php | 5.00 ▲1.64 | 74.37 ▲23.35 |
Add New Post /wp-admin/post-new.php | 7.55 ▲1.67 | 103.52 ▲1.92 |
Media Library /wp-admin/upload.php | 4.85 ▲1.62 | 68.21 ▲28.06 |
Score Cards /wp-admin/edit.php?post_type=score_card | 4.94 | 68.45 |
Settings /wp-admin/admin.php?page=lucid-settings | 5.02 | 55.50 |
Instructors /wp-admin/edit.php?post_type=instructors | 4.93 | 59.48 |
Question Pool /wp-admin/admin.php?page=lucid-question-pool | 4.92 | 55.12 |
Dashboard /wp-admin/admin.php?page=lucid-dashboard | 4.76 | 54.87 |
Categories /wp-admin/edit-tags.php?taxonomy=course_cat&post_type=course | 4.85 | 50.92 |
Add Course /wp-admin/post-new.php?post_type=course | 5.11 | 76.90 |
Add Instructor /wp-admin/post-new.php?post_type=instructors | 5.02 | 67.99 |
Courses /wp-admin/edit.php?post_type=course | 4.93 | 58.87 |
LucidLMS /wp-admin/admin.php?page=lucidlms | 5.02 | 52.85 |
Server storage [IO: ▲2.95MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 315 new files
Database: no new tables, 21 new options
New WordPress options |
---|
db_upgraded |
lucidlms_db_version |
widget_theysaidso_widget |
lucidlms_bbpress_integration_enabled |
lucidlms_organization_name |
lucidlms_course_category_hide |
widget_recent-comments |
_lucid_opt_in |
lucidlms_quiz_default_threshold |
lucidlms_emails_from_address |
... |
Browser metrics Passed 4 tests
A check of browser resources used by LucidLMS
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,945 ▲159 | 14.30 ▼0.06 | 1.99 ▼0.17 | 37.95 ▼7.33 |
Dashboard /wp-admin | 2,336 ▲162 | 5.65 ▲0.02 | 88.69 ▼53.77 | 75.75 ▲26.16 |
Posts /wp-admin/edit.php | 2,244 ▲141 | 2.20 ▲0.16 | 41.46 ▼0.71 | 35.76 ▼1.49 |
Add New Post /wp-admin/post-new.php | 1,645 ▲100 | 17.50 ▼5.92 | 756.11 ▲139.24 | 56.52 ▲8.42 |
Media Library /wp-admin/upload.php | 1,532 ▲132 | 4.24 ▼0.01 | 115.14 ▲14.28 | 74.70 ▲32.07 |
Score Cards /wp-admin/edit.php?post_type=score_card | 1,480 | 2.78 | 65.71 | 37.54 |
Settings /wp-admin/admin.php?page=lucid-settings | 1,190 | 2.48 | 42.48 | 33.43 |
Instructors /wp-admin/edit.php?post_type=instructors | 1,205 | 2.11 | 32.86 | 32.16 |
Question Pool /wp-admin/admin.php?page=lucid-question-pool | 1,032 | 2.41 | 34.55 | 47.72 |
Dashboard /wp-admin/admin.php?page=lucid-dashboard | 971 | 2.29 | 31.60 | 29.60 |
Categories /wp-admin/edit-tags.php?taxonomy=course_cat&post_type=course | 1,448 | 2.65 | 32.80 | 31.05 |
Add Course /wp-admin/post-new.php?post_type=course | 2,812 | 7.87 | 194.75 | 131.84 |
Add Instructor /wp-admin/post-new.php?post_type=instructors | 2,413 | 8.30 | 174.58 | 119.72 |
Courses /wp-admin/edit.php?post_type=course | 1,247 | 2.55 | 38.44 | 30.41 |
LucidLMS /wp-admin/admin.php?page=lucidlms | 1,153 | 2.45 | 36.45 | 28.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 21 options in the database
- lucidlms_course_default_availability_time
- lucidlms_emails_subject_course_completed
- lucidlms_version
- lucidlms_quiz_default_threshold
- db_upgraded
- lucidlms_emails_from_address
- lucidlms_course_category_hide
- _lucid_needs_pages
- lucid_meta_box_errors
- can_compress_scripts
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 9× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/lucidlms/includes/libs/fpdf/tutorial/makefont.php
- > /wp-content/plugins/lucidlms/includes/libs/fpdf/tutorial/tuto3.php
- > /wp-content/plugins/lucidlms/includes/libs/fpdf/tutorial/tuto1.php
- > /wp-content/plugins/lucidlms/includes/libs/fpdf/tutorial/tuto5.php
- > /wp-content/plugins/lucidlms/includes/libs/fpdf/tutorial/tuto4.php
- > /wp-content/plugins/lucidlms/includes/libs/fpdf/tutorial/tuto7.php
- > /wp-content/plugins/lucidlms/includes/libs/fpdf/tutorial/tuto2.php
- > /wp-content/plugins/lucidlms/includes/libs/fpdf/tutorial/tuto6.php
- > /wp-content/plugins/lucidlms/includes/admin/post-types/meta-boxes/views/html-course-elements-question.php
- 35× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: course in wp-content/plugins/lucidlms/includes/admin/views/dashboard/html-admin-page-dashboard-course-meta.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/lucidlms/includes/admin/views/question-pool/html-admin-question-pool-categories.php:1
- > PHP Fatal error
Uncaught Error: Call to a member function get_type() on null in wp-content/plugins/lucidlms/includes/admin/views/dashboard/html-admin-page-dashboard-course-meta.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/lucidlms/includes/admin/views/html-admin-page-dashboard.php:4
- > PHP Notice
Undefined variable: questions in wp-content/plugins/lucidlms/includes/admin/post-types/meta-boxes/views/html-course-elements-question.php on line 1
- > PHP Notice
Undefined variable: course in wp-content/plugins/lucidlms/includes/admin/views/dashboard/html-admin-page-dashboard-course.php on line 6
- > PHP Notice
Trying to get property 'post_status' of non-object in wp-content/plugins/lucidlms/includes/admin/views/dashboard/html-admin-page-dashboard-course.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/lucidlms/includes/admin/views/question-pool/html-admin-question-pool-courses.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lucidlms/includes/lucid-course-functions.php:42
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/lucidlms/includes/admin/views/dashboard/html-admin-page-dashboard-courses.php on line 2
- > PHP Notice
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 important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: study, quiz, questions, course, learning...
lucidlms/lucidlms.php Passed 13 tests
The primary PHP file in "LucidLMS" version 1.0.5 is used by WordPress to initiate all plugin functionality
40 characters long description:
A beautiful learning management toolkit.
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
There were no executable files found in this plugin28,193 lines of code in 257 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 155 | 3,620 | 5,477 | 14,456 |
HTML | 62 | 136 | 0 | 6,403 |
JavaScript | 24 | 662 | 592 | 4,095 |
CSS | 13 | 157 | 60 | 1,805 |
PO File | 1 | 508 | 611 | 1,181 |
SVG | 1 | 0 | 0 | 229 |
JSON | 1 | 0 | 0 | 24 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 32.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 338.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 71.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 53 | |
▷ Abstract classes | 1 | 1.89% |
▷ Concrete classes | 52 | 98.11% |
▷ Final classes | 1 | 1.92% |
Methods | 580 | |
▷ Static methods | 47 | 8.10% |
▷ Public methods | 525 | 90.52% |
▷ Protected methods | 46 | 7.93% |
▷ Private methods | 9 | 1.55% |
Functions | 160 | |
▷ Named functions | 160 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
11 PNG files occupy 0.32MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icons/edit.png | 0.34KB | 0.24KB | ▼ 30.97% |
assets/images/placeholder.png | 19.40KB | 8.04KB | ▼ 58.56% |
assets/chosen/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
includes/libs/fpdf/tutorial/logo.png | 2.32KB | 2.26KB | ▼ 2.57% |
assets/chosen/docsupport/oss-credit.png | 4.30KB | 3.26KB | ▼ 24.02% |