Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲1.97MB] [CPU: ▲15.73ms] Passed 4 tests
Analyzing server-side resources used by WP Courses LMS – Online Courses Builder, eLearning Courses, Courses Solution, Education Courses
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.36 ▲1.90 | 53.16 ▲12.07 |
Dashboard /wp-admin | 5.29 ▲1.95 | 68.51 ▲6.03 |
Posts /wp-admin/edit.php | 5.41 ▲2.05 | 73.44 ▲25.58 |
Add New Post /wp-admin/post-new.php | 8.20 ▲2.31 | 123.71 ▲19.42 |
Media Library /wp-admin/upload.php | 5.21 ▲1.98 | 60.81 ▲25.39 |
All Teachers /wp-admin/edit.php?post_type=teacher | 5.29 | 62.90 |
Dashboard /wp-admin/admin.php?page=wpc_settings | 5.23 | 56.70 |
Settings /wp-admin/admin.php?page=wpc_options | 5.26 | 56.85 |
All Lessons /wp-admin/edit.php?post_type=lesson | 5.29 | 71.38 |
All Courses /wp-admin/edit.php?post_type=course | 5.29 | 52.95 |
All Certificates /wp-admin/admin.php?page=wpc_premium_certificates | 5.21 | 52.54 |
Course Order /wp-admin/admin.php?page=order_courses | 5.22 | 58.58 |
Lesson Order /wp-admin/admin.php?page=order_lessons | 5.21 | 51.45 |
All Quizzes /wp-admin/edit.php?post_type=wpc-quiz | 5.29 | 53.58 |
Setup and Help /wp-admin/admin.php?page=wpc_help | 5.22 | 48.71 |
Server storage [IO: ▲5.82MB] [DB: ▲0.02MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 197 new files
Database: 4 new tables, 41 new options
New tables |
---|
wp_wpc_rules |
wp_wpc_tracking |
wp_wpc_quiz_results |
wp_wpc_connections |
New WordPress options |
---|
wpc_fix_toolbar_top |
widget_recent-comments |
wpc_show_course_search |
wpc_quiz_table_version |
wpc_modules_opened |
wpc_container_padding_left |
wpc_standard_button_color |
wpc_enable_powered_by |
widget_theysaidso_widget |
db_upgraded |
... |
Browser metrics Passed 4 tests
Checking browser requirements for WP Courses LMS – Online Courses Builder, eLearning Courses, Courses Solution, Education Courses
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,265 ▲519 | 15.89 ▲1.54 | 12.34 ▲10.70 | 26.57 ▼17.41 |
Dashboard /wp-admin | 2,416 ▲235 | 6.52 ▲0.81 | 107.59 ▲3.19 | 75.77 ▲39.29 |
Posts /wp-admin/edit.php | 2,343 ▲246 | 3.08 ▲1.07 | 56.03 ▲19.93 | 65.33 ▲32.02 |
Add New Post /wp-admin/post-new.php | 1,751 ▲225 | 24.03 ▲0.40 | 686.75 ▲85.01 | 209.60 ▲168.53 |
Media Library /wp-admin/upload.php | 1,636 ▲239 | 6.05 ▲1.80 | 110.67 ▲17.93 | 96.65 ▲55.14 |
All Teachers /wp-admin/edit.php?post_type=teacher | 1,389 | 3.15 | 48.33 | 76.19 |
Dashboard /wp-admin/admin.php?page=wpc_settings | 1,409 | 4.42 | 105.37 | 75.93 |
Settings /wp-admin/admin.php?page=wpc_options | 4,691 | 9.87 | 195.71 | 136.71 |
All Lessons /wp-admin/edit.php?post_type=lesson | 1,429 | 3.75 | 46.78 | 74.37 |
All Courses /wp-admin/edit.php?post_type=course | 1,421 | 3.18 | 50.61 | 72.89 |
All Certificates /wp-admin/admin.php?page=wpc_premium_certificates | 1,158 | 3.19 | 46.10 | 55.19 |
Course Order /wp-admin/admin.php?page=order_courses | 1,128 | 3.42 | 42.17 | 58.90 |
Lesson Order /wp-admin/admin.php?page=order_lessons | 1,164 | 3.09 | 61.30 | 57.51 |
All Quizzes /wp-admin/edit.php?post_type=wpc-quiz | 1,400 | 3.21 | 47.83 | 70.05 |
Setup and Help /wp-admin/admin.php?page=wpc_help | 1,288 | 3.30 | 48.18 | 65.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 4 tables in the database
- wp_wpc_tracking
- wp_wpc_quiz_results
- wp_wpc_connections
- wp_wpc_rules
- Zombie WordPress options were found after uninstall: 41 options
- wpc_tracking_table_version
- wpc_primary_color
- wpc_connections_table_version
- wpc_logged_out_message
- wpc_quiz_table_version
- wpc_modules_opened
- wpc_fix_toolbar_top
- wpc_h2_font_size
- wpc_fixed_toolbar_offset
- wpc_container_padding_left
- ...
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=order_lessons
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/wp-courses/classes/WPC_Ajax.php+200
Invalid argument supplied for foreach()
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-courses/admin/templates/single-student.php
- > /wp-content/plugins/wp-courses/wp-courses.php
- 56× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-courses/admin/templates/premium-badges.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-courses/admin/charts/chart-tracking-data.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-courses/admin/templates/premium-emails.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-courses/admin/columns.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-courses/init/enqueue.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_tax() in wp-content/plugins/wp-courses/templates/template-parts/course-filters.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-courses/classes/WPCQ_Ajax.php:4
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-courses/admin/dashboard.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function wpc_get_course_dropdown() in wp-content/plugins/wp-courses/admin/templates/order-lessons.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-courses/admin/front-end-editor.php:156
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=wpc_options
- > Rendering (warning) in unknown
/wp-admin/admin.php?page=wpc_options 343 The specified value "0px" cannot be parsed, or is out of range.
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: lms, course, elearning, courses, online courses
wp-courses/wp-courses.php Passed 13 tests
Analyzing the main PHP file in "WP Courses LMS – Online Courses Builder, eLearning Courses, Courses Solution, Education Courses" version 3.2.2
78 characters long description:
Create unlimited online courses on your WordPress website with WP Courses LMS.
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
Good job! No executable or dangerous file extensions detected58,298 lines of code in 160 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 19 | 1,016 | 256 | 29,282 |
PHP | 63 | 2,360 | 575 | 8,537 |
PO File | 11 | 3,257 | 3,918 | 7,864 |
CSS | 6 | 606 | 83 | 6,367 |
TypeScript | 25 | 430 | 1,896 | 1,864 |
Sass | 14 | 34 | 34 | 1,656 |
LESS | 14 | 34 | 44 | 1,646 |
SVG | 2 | 1 | 1 | 770 |
Markdown | 3 | 58 | 0 | 162 |
JSON | 3 | 0 | 0 | 150 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 17.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 4.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 36 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 254 | |
▷ Named functions | 253 | 99.61% |
▷ Anonymous functions | 1 | 0.39% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
11 compressed PNG files occupy 1.91MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/arrow-down.png | 0.84KB | 1.06KB | 0.00% |
css/DataTables-1.11.2/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
css/DataTables-1.11.2/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
images/wpc-logo-sm.png | 1.04KB | 0.98KB | ▼ 5.27% |
css/DataTables-1.11.2/images/sort_both.png | 0.61KB | 0.29KB | ▼ 52.96% |