Skip to content

Fix reported PHPCS issues #24

@dartiss

Description

@dartiss
FILE: /Users/davidartiss/documents/github/code-embed/css/video-container.css
----------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------
 1 | WARNING | File appears to be minified and cannot be processed
----------------------------------------------------------------------------


FILE: /Users/davidartiss/documents/github/code-embed/includes/search-screen.php
--------------------------------------------------------------------------------
FOUND 21 ERRORS AND 10 WARNINGS AFFECTING 18 LINES
--------------------------------------------------------------------------------
 12 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | 'ucwords'.
 15 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | '__'.
 22 | WARNING | Detected access of super global var $_GET, probably needs
    |         | manual inspection.
 22 | WARNING | Processing form data without nonce verification.
 22 | ERROR   | Detected usage of a non-sanitized input variable: $_GET
 23 | WARNING | Detected access of super global var $_GET, probably needs
    |         | manual inspection.
 23 | WARNING | Processing form data without nonce verification.
 23 | ERROR   | Detected usage of a non-sanitized input variable: $_GET
 25 | WARNING | Detected access of super global var $_POST, probably needs
    |         | manual inspection.
 26 | WARNING | Detected access of super global var $_POST, probably needs
    |         | manual inspection.
 26 | ERROR   | Detected usage of a non-validated input variable: $_POST
 26 | ERROR   | Detected usage of a non-sanitized input variable: $_POST
 37 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | 'get_bloginfo'.
 39 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | '$options'.
 39 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | '$options'.
 41 | ERROR   | Wrong escaping function. HTML attributes should be escaped by
    |         | esc_attr, not by esc_html
 43 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | '$options'.
 47 | ERROR   | All output should be run through an escaping function (like
    |         | esc_html_e() or esc_attr_e()), found '_e'.
 52 | WARNING | Found: !=. Use strict comparisons (=== or !==).
 55 | WARNING | Usage of a direct database call is discouraged.
 55 | ERROR   | Usage of a direct database call without caching is prohibited.
    |         | Use wp_cache_get / wp_cache_set or wp_cache_delete.
 55 | ERROR   | Use placeholders and $wpdb->prepare(); found $options
 55 | ERROR   | Use placeholders and $wpdb->prepare(); found $suffix
 73 | WARNING | Found: !=. Use strict comparisons (=== or !==).
 73 | WARNING | Found: ==. Use strict comparisons (=== or !==).
 75 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | '$color'.
 76 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | 'home_url'.
 76 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | '$post_id'.
 76 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | '$post_title'.
 77 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | 'htmlspecialchars'.
 87 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | '__'.
--------------------------------------------------------------------------------


FILE: /Users/davidartiss/documents/github/code-embed/includes/options-screen.php
--------------------------------------------------------------------------------
FOUND 47 ERRORS AND 13 WARNINGS AFFECTING 30 LINES
--------------------------------------------------------------------------------
 14 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | 'ucwords'.
 19 | WARNING | Detected access of super global var $_POST, probably needs
    |         | manual inspection.
 23 | WARNING | Detected access of super global var $_POST, probably needs
    |         | manual inspection.
 23 | ERROR   | Detected usage of a non-validated input variable: $_POST
 23 | ERROR   | Detected usage of a non-sanitized input variable: $_POST
 24 | WARNING | Detected access of super global var $_POST, probably needs
    |         | manual inspection.
 24 | ERROR   | Detected usage of a non-validated input variable: $_POST
 24 | ERROR   | Detected usage of a non-sanitized input variable: $_POST
 25 | WARNING | Detected access of super global var $_POST, probably needs
    |         | manual inspection.
 25 | ERROR   | Detected usage of a non-validated input variable: $_POST
 25 | ERROR   | Detected usage of a non-sanitized input variable: $_POST
 27 | WARNING | Detected access of super global var $_POST, probably needs
    |         | manual inspection.
 27 | WARNING | Detected access of super global var $_POST, probably needs
    |         | manual inspection.
 28 | WARNING | Detected access of super global var $_POST, probably needs
    |         | manual inspection.
 28 | WARNING | Detected access of super global var $_POST, probably needs
    |         | manual inspection.
 32 | WARNING | Found: ==. Use strict comparisons (=== or !==).
 33 | WARNING | Found: ==. Use strict comparisons (=== or !==).
 34 | WARNING | Found: ==. Use strict comparisons (=== or !==).
 38 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | 'ucwords'.
 46 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | 'get_bloginfo'.
 50 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | 'ucwords'.
 51 | WARNING | Found: ==. Use strict comparisons (=== or !==).
 51 | ERROR   | All output should be run through an escaping function (like
    |         | esc_html_e() or esc_attr_e()), found '_e'.
 55 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | 'ucwords'.
 56 | WARNING | Found: ==. Use strict comparisons (=== or !==).
 56 | ERROR   | All output should be run through an escaping function (like
    |         | esc_html_e() or esc_attr_e()), found '_e'.
 60 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | 'ucwords'.
 60 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | '__'.
 65 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | 'ucwords'.
 66 | ERROR   | Wrong escaping function. HTML attributes should be escaped by
    |         | esc_attr, not by esc_html
 66 | ERROR   | All output should be run through an escaping function (like
    |         | esc_html_e() or esc_attr_e()), found '_e'.
 70 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | 'ucwords'.
 71 | ERROR   | Wrong escaping function. HTML attributes should be escaped by
    |         | esc_attr, not by esc_html
 71 | ERROR   | All output should be run through an escaping function (like
    |         | esc_html_e() or esc_attr_e()), found '_e'.
 75 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | 'ucwords'.
 76 | ERROR   | Wrong escaping function. HTML attributes should be escaped by
    |         | esc_attr, not by esc_html
 76 | ERROR   | All output should be run through an escaping function (like
    |         | esc_html_e() or esc_attr_e()), found '_e'.
 83 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | 'ucwords'.
 91 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | 'ucwords'.
 92 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | '__'.
 92 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | '$options'.
 93 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | '__'.
 93 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | '$options'.
 93 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | '$options'.
 93 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | '$options'.
 94 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | '__'.
 94 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | '$options'.
 94 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | '$options'.
 94 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | '$options'.
 94 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | '$options'.
 95 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | '__'.
 95 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | '$options'.
 95 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | '$options'.
 95 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | '$options'.
 95 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | '$options'.
 95 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | '$options'.
 95 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | '$options'.
 96 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | '__'.
 96 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | '$options'.
 96 | ERROR   | All output should be run through an escaping function (see the
    |         | Security sections in the WordPress Developer Handbooks), found
    |         | '$options'.
--------------------------------------------------------------------------------


FILE: /Users/davidartiss/documents/github/code-embed/includes/initialise.php
----------------------------------------------------------------------------
FOUND 1 ERROR AND 3 WARNINGS AFFECTING 4 LINES
----------------------------------------------------------------------------
 16 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
 24 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==).
 50 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==).
 57 | ERROR   | [x] A closing tag is not permitted at the end of a PHP file
----------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------


FILE: /Users/davidartiss/documents/github/code-embed/includes/add-embeds.php
--------------------------------------------------------------------------------
FOUND 6 ERRORS AND 16 WARNINGS AFFECTING 17 LINES
--------------------------------------------------------------------------------
  45 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
  64 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
  67 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
 137 | WARNING | [ ] Unused variable $prefix_len.
 171 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==).
 184 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==).
 209 | WARNING | [ ] Unused variable $unique_records.
 209 | WARNING | [ ] Usage of a direct database call is discouraged.
 209 | ERROR   | [ ] Usage of a direct database call without caching is
     |         |     prohibited. Use wp_cache_get / wp_cache_set or
     |         |     wp_cache_delete.
 209 | ERROR   | [ ] Use placeholders and $wpdb->prepare(); found $meta_name
 216 | WARNING | [ ] Usage of a direct database call is discouraged.
 216 | ERROR   | [ ] Usage of a direct database call without caching is
     |         |     prohibited. Use wp_cache_get / wp_cache_set or
     |         |     wp_cache_delete.
 216 | ERROR   | [ ] Use placeholders and $wpdb->prepare(); found $meta_name
 219 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
 268 | WARNING | [ ] wp_remote_get() is highly discouraged, please use
     |         |     vip_safe_wp_remote_get() instead.
 274 | WARNING | [ ] Variable $file_return is undefined.
 279 | WARNING | [ ] Variable $file_return is undefined.
 280 | WARNING | [ ] Variable $file_return is undefined.
 283 | WARNING | [ ] Variable $file_return is undefined.
 287 | WARNING | [ ] Variable $file_return is undefined.
 308 | ERROR   | [ ] All output should be run through an escaping function (see
     |         |     the Security sections in the WordPress Developer
     |         |     Handbooks), found '$output'.
 315 | ERROR   | [x] A closing tag is not permitted at the end of a PHP file
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: /Users/davidartiss/documents/github/code-embed/includes/add-scripts.php
-----------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------
 27 | ERROR | [x] A closing tag is not permitted at the end of a PHP file
-----------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------


FILE: /Users/davidartiss/documents/github/code-embed/includes/admin-config.php
------------------------------------------------------------------------------
FOUND 1 ERROR AND 2 WARNINGS AFFECTING 3 LINES
------------------------------------------------------------------------------
 111 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==).
 131 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==).
 203 | ERROR   | [x] A closing tag is not permitted at the end of a PHP file
------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------


FILE: /Users/davidartiss/documents/github/code-embed/uninstall.php
--------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------
 20 | ERROR | [x] A closing tag is not permitted at the end of a PHP file
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------


FILE: /Users/davidartiss/documents/github/code-embed/simple-code-embed.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AND 4 WARNINGS AFFECTING 5 LINES
--------------------------------------------------------------------------------
 27 | WARNING | [ ] File inclusion using variable ($functions_dir). Probably
    |         |     needs manual inspection.
 31 | WARNING | [ ] File inclusion using variable ($functions_dir). Probably
    |         |     needs manual inspection.
 35 | WARNING | [ ] File inclusion using variable ($functions_dir). Probably
    |         |     needs manual inspection.
 37 | WARNING | [ ] File inclusion using variable ($functions_dir). Probably
    |         |     needs manual inspection.
 40 | ERROR   | [x] A closing tag is not permitted at the end of a PHP file
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions