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
Installer ran successfully
Server metrics [RAM: ▲0.74MB] [CPU: ▼18.92ms] Passed 4 tests
Server-side resources used by Connect LearnDash to Discord
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.13 ▲1.66 | 56.14 ▲16.57 |
Dashboard /wp-admin | 4.69 ▲1.38 | 45.79 ▼6.76 |
Posts /wp-admin/edit.php | 4.69 ▲1.33 | 43.03 ▼12.30 |
Add New Post /wp-admin/post-new.php | 4.69 ▼1.20 | 41.21 ▼67.96 |
Media Library /wp-admin/upload.php | 4.69 ▲1.46 | 49.30 ▲11.36 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 4.69 | 41.56 |
Discord Settings /wp-admin/admin.php?page=connect-learndash-discord-addon | 4.69 | 37.12 |
Server storage [IO: ▲1.13MB] [DB: ▲0.01MB] 67% from 3 tests
A short overview of filesystem and database impact
These are issues you should consider
- Illegal file modification detected: 1 file (0.00KB) outside of "wp-content/plugins/connect-learndash-and-discord/" and "wp-content/uploads/"
- (new file) wp-content/d8719905-f5bc-4723-ab96-04d39e72a8a4learndash_discord_api_logs.txt
Filesystem: 136 new files
Database: 4 new tables, 31 new options
New tables |
---|
wp_actionscheduler_logs |
wp_actionscheduler_groups |
wp_actionscheduler_actions |
wp_actionscheduler_claims |
New WordPress options |
---|
ets_learndash_discord_retry_failed_api |
ets_learndash_discord_assignment_approved_message |
ets_learndash_discord_non_login_button_text |
ets_learndash_discord_loggedin_button_text |
ets_learndash_discord_course_complete_message |
ets_learndash_discord_connect_button_bg_color |
ets_learndash_discord_job_queue_concurrency |
action_scheduler_lock_async-request-runner |
ets_learndash_discord_retry_api_count |
action_scheduler_hybrid_store_demarkation |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Connect LearnDash to Discord
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲43 | 14.34 ▼0.28 | 1.86 ▲0.19 | 44.56 ▲5.70 |
Dashboard /wp-admin | 2,207 ▲33 | 5.63 ▲0.07 | 90.78 ▼1.76 | 46.02 ▲5.49 |
Posts /wp-admin/edit.php | 2,115 ▲12 | 2.02 ▲0.07 | 40.36 ▼4.81 | 41.04 ▲2.97 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.24 ▲0.11 | 639.92 ▲27.66 | 47.89 ▼15.58 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.25 ▲0.06 | 113.42 ▲9.17 | 48.47 ▲1.65 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 1,245 | 1.82 | 26.81 | 29.49 |
Discord Settings /wp-admin/admin.php?page=connect-learndash-discord-addon | 1,822 | 2.67 | 49.75 | 48.47 |
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
- This plugin cannot be uninstalled
- > Warning in wp-includes/functions.php+6691
file_get_contents(wp-content/plugins/sfwd-lms/sfwd_lms.php): failed to open stream: No such file or directory
- Zombie tables detected upon uninstall: 4 tables
- wp_actionscheduler_claims
- wp_actionscheduler_actions
- wp_actionscheduler_groups
- wp_actionscheduler_logs
- This plugin does not fully uninstall, leaving 31 options in the database
- ets_learndash_discord_send_welcome_dm
- schema-ActionScheduler_StoreSchema
- ets_learndash_discord_assignment_approved_message
- ets_learndash_discord_welcome_message
- ets_learndash_discord_quiz_complete_message
- widget_recent-posts
- ets_learndash_discord_retry_failed_api
- ets_learndash_discord_course_complete_message
- ets_learndash_discord_job_queue_concurrency
- ets_learndash_discord_disconnect_button_bg_color
- ...
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=connect-learndash-discord-addon
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-includes/functions.php+6691
file_get_contents(wp-content/plugins/sfwd-lms/sfwd_lms.php): failed to open stream: No such file or directory
SRP 0% 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/connect-learndash-and-discord/public/partials/learndash-discord-public-display.php
- 51× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Abstract_Schedule' not found in wp-content/plugins/connect-learndash-and-discord/includes/libraries/action-scheduler/classes/abstracts/ActionScheduler_Abstract_RecurringSchedule.php:6
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/connect-learndash-and-discord/includes/libraries/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php on line 4
- > PHP Fatal error
Uncaught Error: Interface 'ActionScheduler_Exception' not found in wp-content/plugins/connect-learndash-and-discord/includes/libraries/action-scheduler/classes/ActionScheduler_InvalidActionException.php:10
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Store' not found in wp-content/plugins/connect-learndash-and-discord/includes/libraries/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore.php:6
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Abstract_Schema' not found in wp-content/plugins/connect-learndash-and-discord/includes/libraries/action-scheduler/classes/schema/ActionScheduler_LoggerSchema.php:10
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Store' not found in wp-content/plugins/connect-learndash-and-discord/includes/libraries/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/connect-learndash-and-discord/admin/partials/pages/learndash_discord_advanced.php:2
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_DBStore' not found in wp-content/plugins/connect-learndash-and-discord/includes/libraries/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php:10
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/connect-learndash-and-discord/includes/libraries/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_FinishedAction' not found in wp-content/plugins/connect-learndash-and-discord/includes/libraries/action-scheduler/classes/actions/ActionScheduler_CanceledAction.php:9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=connect-learndash-discord-addon
- > Javascript (severe) in unknown
/wp-content/plugins/connect-learndash-and-discord/admin/js/learndash-discord-admin.js?ver=1.0.11 360:54 Uncaught TypeError: $(...).wpColorPicker is not a function
- > GET request to /wp-admin/admin.php?page=connect-learndash-discord-addon
- > Console-api (severe) in unknown
/wp-content/plugins/connect-learndash-and-discord/admin/js/learndash-discord-admin.js?ver=1.0.11 114:12 Object
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: friends, hang out, memberships, lms, discord...
connect-learndash-and-discord/learndash-discord.php 92% from 13 tests
The main file in "Connect LearnDash to Discord" v. 1.0.11 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("connect-learndash-and-discord.php" instead of "learndash-discord.php")
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
Success! There were no dangerous files found in this plugin10,219 lines of code in 121 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 105 | 2,055 | 5,790 | 9,015 |
CSS | 6 | 11 | 20 | 624 |
JavaScript | 6 | 37 | 17 | 407 |
Markdown | 3 | 56 | 0 | 163 |
SVG | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 13.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 180.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 85 | |
▷ Abstract classes | 15 | 17.65% |
▷ Concrete classes | 70 | 82.35% |
▷ Final classes | 0 | 0.00% |
Methods | 663 | |
▷ Static methods | 71 | 10.71% |
▷ Public methods | 504 | 76.02% |
▷ Protected methods | 135 | 20.36% |
▷ Private methods | 24 | 3.62% |
Functions | 57 | |
▷ Named functions | 49 | 85.96% |
▷ Anonymous functions | 8 | 14.04% |
Constants | 43 | |
▷ Global constants | 9 | 20.93% |
▷ Class constants | 34 | 79.07% |
▷ Public constants | 34 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.30MB with 0.14MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/ets-logo.png | 11.34KB | 7.55KB | ▼ 33.46% |
admin/images/icon.png | 16.17KB | 7.91KB | ▼ 51.10% |
admin/images/ravisoni.png | 278.09KB | 110.22KB | ▼ 60.36% |