Skip to content

Query Optimization #6262

Query Optimization

Query Optimization #6262

Triggered via pull request June 26, 2026 05:06
@Anindra123Anindra123
synchronize #2799
bivas-v4
Status Failure
Total duration 1m 3s
Artifacts

wpcs.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 3 warnings
WPCS: classes/Course.php#L2372
Capabilities should be used instead of roles. Found "administrator" in function call to current_user_can()
WPCS: classes/Course.php#L803
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$th'.
WPCS: classes/Course.php#L666
If control structure block found as the only statement within an "else" block. Use elseif instead.
WPCS: classes/Course.php#L335
Capabilities should be used instead of roles. Found "administrator" in function call to current_user_can()
WPCS: classes/Assets.php#L184
Using short ternaries is not allowed as they are rarely used correctly
WPCS: classes/Admin.php#L562
Capabilities should be used instead of roles. Found "administrator" in function call to current_user_can()
WPCS: classes/Admin.php#L516
Capabilities should be used instead of roles. Found "administrator" in function call to current_user_can()
WPCS: classes/Admin.php#L351
Inline comments must end in full-stops, exclamation marks, or question marks
WPCS: GDPR/Models/LegalConsents.php#L91
Use placeholders and $wpdb->prepare(); found interpolated variable {$this->table_name} at FROM {$this->table_name}

WPCS: GDPR/DB/DB.php#L50
Use placeholders and $wpdb->prepare(); found interpolated variable {$table_name} at "DROP TABLE IF EXISTS {$table_name}"
WPCS
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v2. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
WPCS
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
WPCS
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/