Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.45MB] [CPU: ▲7.11ms] Passed 4 tests
Server-side resources used by WISDM Reports For LearnDash
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.35 | 51.66 ▲8.80 |
Dashboard /wp-admin | 3.81 ▲0.50 | 62.58 ▲13.51 |
Posts /wp-admin/edit.php | 3.89 ▲0.54 | 61.34 ▲9.38 |
Add New Post /wp-admin/post-new.php | 6.37 ▲0.49 | 96.82 ▲1.01 |
Media Library /wp-admin/upload.php | 3.70 ▲0.47 | 45.87 ▲9.26 |
Dashboard /wp-admin/admin.php?page=wrld-dashboard-page | 3.74 | 46.47 |
What's new /wp-admin/admin.php?page=wrld-whatsnew | 3.78 | 44.95 |
Settings /wp-admin/admin.php?page=wrld-settings | 3.93 | 47.80 |
More Plugins /wp-admin/admin.php?page=wrld-other-plugins | 3.69 | 45.82 |
Help /wp-admin/admin.php?page=wrld-help | 3.71 | 46.60 |
Gutenberg Blocks /wp-admin/admin.php?page=wrld-gutenbergblocks | 3.86 | 56.07 |
Server storage [IO: ▲58.54MB] [DB: ▲0.01MB] 33% from 3 tests
Filesystem and database footprint
Please fix the following
- Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/wisdm-reports-for-learndash/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
- The filesystem usage should be lower than 25MB (currently using 58.54MB)
Filesystem: 643 new files
Database: 4 new tables, 14 new options
New tables |
---|
wp_wrld_cached_entries |
wp_ld_quiz_entries |
wp_ld_time_entries |
wp_ld_course_time_spent |
New WordPress options |
---|
wrld_settings |
wrld_whats_new_tab_visited |
theysaidso_admin_options |
wrld_gutenbergblocks_visited |
wrld_db_version |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
recovery_mode_email_last_sent |
... |
Browser metrics Passed 4 tests
Checking browser requirements for WISDM Reports For LearnDash
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,077 ▲316 | 14.18 ▼0.41 | 10.37 ▲8.56 | 41.34 ▲3.34 |
Dashboard /wp-admin | 2,361 ▲158 | 5.16 ▲0.27 | 122.31 ▲18.58 | 74.47 ▲34.63 |
Posts /wp-admin/edit.php | 2,243 ▲146 | 2.36 ▲0.33 | 44.50 ▲9.06 | 39.02 ▲4.82 |
Add New Post /wp-admin/post-new.php | 1,621 ▲90 | 17.91 ▼5.37 | 741.63 ▲119.16 | 37.27 ▼14.33 |
Media Library /wp-admin/upload.php | 1,534 ▲134 | 4.41 ▲0.20 | 102.60 ▼14.89 | 71.63 ▲25.25 |
Dashboard /wp-admin/admin.php?page=wrld-dashboard-page | 1,245 | 2.36 | 29.64 | 59.69 |
What's new /wp-admin/admin.php?page=wrld-whatsnew | 1,761 | 1.97 | 42.84 | 125.28 |
Settings /wp-admin/admin.php?page=wrld-settings | 1,191 | 1.14 | 7.73 | 22.97 |
More Plugins /wp-admin/admin.php?page=wrld-other-plugins | 1,147 | 2.24 | 31.91 | 38.86 |
Help /wp-admin/admin.php?page=wrld-help | 1,310 | 2.24 | 29.68 | 39.94 |
Gutenberg Blocks /wp-admin/admin.php?page=wrld-gutenbergblocks | 2,192 | 2.07 | 41.46 | 320.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/wisdm-reports-for-learndash/includes/admin/dashboard/class-dashboard.php+328
Trying to get property 'acf' of non-object
- The plugin did not uninstall successfully, leaving 4 tables in the database
- wp_ld_quiz_entries
- wp_ld_time_entries
- wp_ld_course_time_spent
- wp_wrld_cached_entries
- The uninstall procedure has failed, leaving 14 options in the database
- wrld_gutenbergblocks_visited
- wrld_free_plugin_first_activated
- wrld_whats_new_tab_visited
- recovery_mode_email_last_sent
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- ldrp_reporting_page
- wrld_settings
- wrld_db_version
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=wrld-whatsnew
- > Warning in wp-content/plugins/wisdm-reports-for-learndash/includes/admin/dashboard/templates/post-container.php+8
Invalid argument supplied for foreach()
- > GET request to /wp-admin/admin.php?page=wrld-settings
- > Error in wp-content/plugins/wisdm-reports-for-learndash/includes/admin/dashboard/class-settingspage.php+366
Uncaught Error: Class 'WRLD_Common_Functions' not found in wp-content/plugins/wisdm-reports-for-learndash/includes/admin/dashboard/class-settingspage.php:366
Stack trace:
#0 wp-content/plugins/wisdm-reports-for-learndash/includes/admin/dashboard/class-settingspage.php(107): WRLDAdmin\SettingsPage::get_users_exclude_setting()
#1 wp-content/plugins/wisdm-reports-for-learndash/includes/admin/dashboard/class-settingspage.php(53): WRLDAdmin\SettingsPage::content_main()
#2 wp-content/plugins/wisdm-reports-for-learndash/includes/admin/dashboard/class-dashboard.php(135): WRLDAdmin\SettingsPage::render()
#3 wp-includes/class-wp-hook.php(310): WRLDAdmin\Dashboard->settings_page_content()
#4 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#5 wp-includes/plugin.php(517): WP_Hook->do_action()
#6 wp-admin/admin.php(259): do_action()
#7 {main}
thrown
SRP 50% 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
- 23× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wisdm-reports-for-learndash/includes/admin/dashboard/templates/single-post-feature.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wisdm-reports-for-learndash/includes/templates/admin-modal-time-spent.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wisdm-reports-for-learndash/includes/templates/admin-modal.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wisdm-reports-for-learndash/includes/templates/bfcm-banner.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wisdm-reports-for-learndash/includes/templates/admin-modal-course-progress.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wisdm-reports-for-learndash/includes/templates/admin-modal-free-users.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wisdm-reports-for-learndash/includes/templates/review-notification.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function WisdmReportsLearndash\\add_action() in wp-content/plugins/wisdm-reports-for-learndash/includes/admin/class-admin-functions.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wisdm-reports-for-learndash/includes/templates/admin-modal-learner-activity.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wisdm-reports-for-learndash/includes/templates/admin-notice-free-users.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: elearning, lms, dashboard, education, learndash reports...
wisdm-reports-for-learndash/learndash-reports-by-wisdmlabs.php 77% from 13 tests
The principal PHP file in "WISDM Reports For LearnDash" v. 1.8.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wisdm-reports-for-learndash.php" instead of "learndash-reports-by-wisdmlabs.php")
- Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "5.2")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin358,606 lines of code in 433 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 135 | 37,615 | 38,357 | 283,167 |
CSS | 125 | 6,914 | 1,070 | 50,332 |
PHP | 119 | 1,896 | 3,353 | 18,218 |
Sass | 40 | 878 | 28 | 6,392 |
SVG | 13 | 6 | 6 | 487 |
JSON | 1 | 0 | 0 | 10 |
PHP code 0% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 1,217)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 154)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 60.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,217.00 |
Average method complexity | 7.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 154.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 44 | |
▷ Abstract classes | 1 | 2.27% |
▷ Concrete classes | 43 | 97.73% |
▷ Final classes | 0 | 0.00% |
Methods | 382 | |
▷ Static methods | 112 | 29.32% |
▷ Public methods | 354 | 92.67% |
▷ Protected methods | 22 | 5.76% |
▷ Private methods | 6 | 1.57% |
Functions | 59 | |
▷ Named functions | 48 | 81.36% |
▷ Anonymous functions | 11 | 18.64% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
93 PNG files occupy 6.21MB with 3.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/admin/dashboard/assets/images/tabs/gutenberg/qs-tr.png | 144.82KB | 82.28KB | ▼ 43.18% |
includes/admin/dashboard/assets/images/tabs/gutenberg/cr-ccr3.png | 94.99KB | 38.16KB | ▼ 59.83% |
includes/admin/dashboard/assets/images/tabs/img_150p.png | 104.82KB | 44.56KB | ▼ 57.49% |
includes/admin/dashboard/assets/images/request-feature-bg-moble.png | 5.07KB | 2.83KB | ▼ 44.20% |
includes/admin/dashboard/assets/images/elumine.png | 44.61KB | 17.30KB | ▼ 61.21% |