INN / link-roundups

A WordPress plugin to make it easy to collect links from around the web, turn them into roundup posts and streamline the production of daily/weekly roundup newsletters using MailChimp. Built and maintained by INN Labs.
https://wordpress.org/plugins/link-roundups/
GNU General Public License v2.0
20 stars 4 forks source link

Run code through wpcom vip code sniffer rules #169

Open benlk opened 5 years ago

benlk commented 5 years ago

https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards https://wpvip.com/documentation/how-to-install-php-code-sniffer-for-wordpress-com-vip/

benlk commented 5 years ago
/wp-content/plugins/link-roundups$ find . -name "*.php" | grep -v vendor | grep -v release | grep -v node_modules | grep -v tests/
./inc/compatibility-largo.php
./inc/saved-links/class-saved-links-widget.php
./inc/saved-links/class-wp-list-table-clone.php
./inc/saved-links/class-saved-links.php
./inc/saved-links/class-saved-links-list-table.php
./inc/link-roundups/class-save-to-site-button.php
./inc/link-roundups/class-link-roundups.php
./inc/link-roundups/class-link-roundups-widget.php
./inc/link-roundups/class-link-roundups-editor.php
./inc/updates/functions.php
./inc/updates/index.php
./inc/compatibility.php
./link-roundups.php
./templates/options.php
cat files | xargs phpcs --standard=WordPress > report.txt
Outdated sniff ``` FILE: ...rgo/wp-content/plugins/link-roundups/inc/compatibility-largo.php ---------------------------------------------------------------------- FOUND 24 ERRORS AND 2 WARNINGS AFFECTING 11 LINES ---------------------------------------------------------------------- 7 | ERROR | [ ] Missing @package tag in file comment 9 | ERROR | [ ] Doc comment for parameter "$partial" missing 9 | ERROR | [ ] Doc comment for parameter "$post_query" missing 12 | ERROR | [x] Additional blank lines found at end of doc | | comment 13 | ERROR | [x] No space after opening parenthesis is prohibited 13 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 | | found 13 | ERROR | [x] No space before closing parenthesis is prohibited 14 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 14 | ERROR | [x] Expected 1 spaces before closing bracket; 0 found 14 | ERROR | [x] Expected 1 spaces before closing bracket; 0 found 14 | ERROR | [x] No space before closing parenthesis is prohibited 18 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 18 | ERROR | [x] Expected 1 spaces before closing bracket; 0 found 18 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 18 | ERROR | [ ] Use Yoda Condition checks, you must. 23 | ERROR | [x] Expected 1 spaces before closing bracket; 0 found 25 | ERROR | [ ] Doc comment for parameter "$partial" missing 25 | ERROR | [ ] Doc comment for parameter "$post_type" missing 25 | ERROR | [ ] Doc comment for parameter "$context" missing 28 | ERROR | [x] No space after opening parenthesis is prohibited 28 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 | | found 28 | ERROR | [x] No space before closing parenthesis is prohibited 29 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 29 | ERROR | [ ] Use Yoda Condition checks, you must. 34 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 34 | ERROR | [x] Expected 1 spaces before closing bracket; 0 found ---------------------------------------------------------------------- PHPCBF CAN FIX THE 16 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...ugins/link-roundups/inc/saved-links/class-saved-links-widget.php ---------------------------------------------------------------------- FOUND 144 ERRORS AND 23 WARNINGS AFFECTING 79 LINES ---------------------------------------------------------------------- 2 | ERROR | [ ] You must use "/**" style comments for a file | | comment 2 | ERROR | [ ] Empty line required before block comment 7 | ERROR | [ ] Class name must begin with a capital letter 7 | ERROR | [ ] Class name is not valid; consider | | Saved_Links_Widget instead 7 | ERROR | [ ] You must use "/**" style comments for a class | | comment 9 | ERROR | [ ] Missing doc comment for function __construct() 9 | ERROR | [ ] Visibility must be declared on method | | "__construct" 11 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 11 | WARNING | [x] Array double arrow not aligned correctly; | | expected 3 space(s) between "'classname'" and | | double arrow, but found 5. 12 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 12 | WARNING | [x] Array double arrow not aligned correctly; | | expected 1 space(s) between "'description'" and | | double arrow, but found 3. 12 | ERROR | [x] Each array item in a multi-line array | | declaration must end in a comma 17 | ERROR | [ ] Missing doc comment for function widget() 17 | ERROR | [ ] Visibility must be declared on method "widget" 19 | ERROR | [ ] extract() usage is highly discouraged, due to | | the complexity and unintended issues it might | | cause. 21 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 22 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 22 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 22 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 22 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 22 | ERROR | [x] Space found before comma in function call 24 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$before_widget'. 27 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$before_title'. 27 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$title'. 27 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$after_title'. 30 | ERROR | [x] There must be no space between the "array" | | keyword and the opening parenthesis 34 | ERROR | [x] Each array item in a multi-line array | | declaration must end in a comma 36 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 3 spaces but found 1 space 37 | ERROR | [x] Whitespace found at end of line 43 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 52 | ERROR | [x] Line indented incorrectly; expected 5 tabs, | | found 6 52 | ERROR | [x] No space after opening parenthesis is prohibited 52 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 52 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 52 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 52 | ERROR | [ ] Use Yoda Condition checks, you must. 52 | ERROR | [x] No space before closing parenthesis is | | prohibited 53 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 53 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 54 | ERROR | [x] Line indented incorrectly; expected 5 tabs, | | found 6 59 | ERROR | [x] Line indented incorrectly; expected 6 tabs, | | found 7 59 | ERROR | [x] String "lr_url" does not require double quotes; | | use single quotes instead 62 | ERROR | [x] String "lr_url" does not require double quotes; | | use single quotes instead 64 | ERROR | [x] Line indented incorrectly; expected 6 tabs, | | found 8 64 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 64 | ERROR | [ ] Use Yoda Condition checks, you must. 66 | ERROR | [x] Line indented incorrectly; expected 6 tabs, | | found 8 68 | ERROR | [x] Line indented incorrectly; expected 6 tabs, | | found 7 70 | ERROR | [x] Line indented incorrectly; expected 6 tabs, | | found 7 71 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$output'. 76 | ERROR | [x] Line indented incorrectly; expected 5 tabs, | | found 6 76 | ERROR | [x] String "lr_desc" does not require double quotes; | | use single quotes instead 76 | ERROR | [x] Space before opening parenthesis of function | | call prohibited 76 | ERROR | [x] String "lr_desc" does not require double quotes; | | use single quotes instead 78 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | 'largo_trim_sentences'. 78 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 78 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 78 | ERROR | [x] String "lr_desc" does not require double quotes; | | use single quotes instead 78 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$custom'. 78 | ERROR | [x] String "lr_desc" does not require double quotes; | | use single quotes instead 80 | ERROR | [x] Line indented incorrectly; expected 5 tabs, | | found 6 82 | ERROR | [x] Line indented incorrectly; expected 5 tabs, | | found 6 82 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 82 | ERROR | [x] String "lr_source" does not require double | | quotes; use single quotes instead 82 | ERROR | [x] Space before opening parenthesis of function | | call prohibited 82 | ERROR | [x] String "lr_source" does not require double | | quotes; use single quotes instead 83 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 83 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 84 | ERROR | [x] Line indented incorrectly; expected 6 tabs, | | found 7 84 | ERROR | [x] Expected 1 space after "!"; 0 found 84 | ERROR | [x] String "lr_url" does not require double quotes; | | use single quotes instead 87 | ERROR | [x] String "lr_url" does not require double quotes; | | use single quotes instead 89 | ERROR | [x] Line indented incorrectly; expected 6 tabs, | | found 8 89 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 89 | ERROR | [ ] Use Yoda Condition checks, you must. 91 | ERROR | [x] Line indented incorrectly; expected 6 tabs, | | found 8 92 | ERROR | [x] String "lr_source" does not require double | | quotes; use single quotes instead 93 | ERROR | [x] Line indented incorrectly; expected 6 tabs, | | found 7 94 | ERROR | [x] String "lr_source" does not require double | | quotes; use single quotes instead 95 | ERROR | [x] Line indented incorrectly; expected 6 tabs, | | found 7 97 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$lr_source'. 98 | ERROR | [x] Line indented incorrectly; expected 5 tabs, | | found 6 101 | ERROR | [x] Line indented incorrectly; expected at least 4 | | tabs, found 3 104 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 107 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==). 107 | ERROR | [ ] Use Yoda Condition checks, you must. 107 | ERROR | [x] Closing PHP tag must be on a line by itself 108 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$instance'. 108 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$instance'. 109 | ERROR | [x] Opening PHP tag must be on a line by itself 110 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$after_widget'. 113 | ERROR | [ ] Missing doc comment for function update() 113 | ERROR | [ ] Visibility must be declared on method "update" 114 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 24 spaces but found 1 | | space 115 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 15 spaces but found 1 | | space 115 | WARNING | [ ] strip_tags() is discouraged. Use the more | | comprehensive wp_strip_all_tags() instead. 116 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 11 spaces but found 1 | | space 116 | WARNING | [ ] strip_tags() is discouraged. Use the more | | comprehensive wp_strip_all_tags() instead. 117 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 7 spaces but found 1 space 117 | WARNING | [ ] strip_tags() is discouraged. Use the more | | comprehensive wp_strip_all_tags() instead. 118 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 12 spaces but found 1 | | space 119 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 13 spaces but found 1 | | space 121 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 10 spaces but found 1 | | space 125 | ERROR | [ ] Missing doc comment for function form() 125 | ERROR | [ ] Visibility must be declared on method "form" 127 | WARNING | [x] Array double arrow not aligned correctly; | | expected 15 space(s) between "'title'" and | | double arrow, but found 1. 128 | WARNING | [x] Array double arrow not aligned correctly; | | expected 10 space(s) between "'new_window'" and | | double arrow, but found 1. 129 | WARNING | [x] Array double arrow not aligned correctly; | | expected 11 space(s) between "'num_posts'" and | | double arrow, but found 1. 130 | WARNING | [x] Array double arrow not aligned correctly; | | expected 7 space(s) between "'num_sentences'" | | and double arrow, but found 1. 131 | WARNING | [x] Array double arrow not aligned correctly; | | expected 12 space(s) between "'linktext'" and | | double arrow, but found 1. 132 | WARNING | [x] Array double arrow not aligned correctly; | | expected 13 space(s) between "'linkurl'" and | | double arrow, but found 1. 133 | ERROR | [x] Each array item in a multi-line array | | declaration must end in a comma 139 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 139 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 140 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 140 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 140 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$instance'. 144 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 144 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 145 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 145 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 145 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$instance'. 149 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 149 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 149 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 149 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 149 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 149 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 149 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 149 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 150 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 150 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 150 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 150 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 150 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 150 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 155 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 155 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 156 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 156 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 156 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$instance'. 161 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 161 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 161 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 161 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 161 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 161 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 161 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 161 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 162 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 162 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 162 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 162 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 162 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 162 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 165 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 167 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 167 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 168 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 168 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 168 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$instance'. 172 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 172 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 173 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 173 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 173 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$instance'. 176 | ERROR | [x] Line indented incorrectly; expected at least 2 | | tabs, found 1 ---------------------------------------------------------------------- PHPCBF CAN FIX THE 94 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...gins/link-roundups/inc/saved-links/class-wp-list-table-clone.php ---------------------------------------------------------------------- FOUND 106 ERRORS AND 59 WARNINGS AFFECTING 113 LINES ---------------------------------------------------------------------- 1 | ERROR | [ ] Class file names should be based on the class | | name with "class-" prepended. Expected | | class-clone-wp-list-table.php, but found | | class-wp-list-table-clone.php. 19 | ERROR | [ ] Class name must begin with a capital letter 35 | WARNING | [ ] Property name "$_args" should not be prefixed | | with an underscore to indicate visibility 43 | WARNING | [ ] Property name "$_pagination_args" should not be | | prefixed with an underscore to indicate | | visibility 59 | WARNING | [ ] Property name "$_actions" should not be | | prefixed with an underscore to indicate | | visibility 67 | WARNING | [ ] Property name "$_pagination" should not be | | prefixed with an underscore to indicate | | visibility 83 | WARNING | [ ] Property name "$_column_headers" should not be | | prefixed with an underscore to indicate | | visibility 166 | WARNING | [ ] This comment is 58% valid code; is this | | commented out code? 166 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 187 | WARNING | [ ] Not using strict comparison for in_array; | | supply true for third argument. 202 | WARNING | [ ] Not using strict comparison for in_array; | | supply true for third argument. 216 | WARNING | [ ] Not using strict comparison for in_array; | | supply true for third argument. 229 | WARNING | [ ] Not using strict comparison for in_array; | | supply true for third argument. 239 | ERROR | [x] Expected 1 spaces after parameter type; 3 found 240 | ERROR | [x] Expected 2 spaces after parameter type; 4 found 244 | WARNING | [ ] Not using strict comparison for in_array; | | supply true for third argument. 295 | WARNING | [ ] wp_redirect() found. Using wp_safe_redirect(), | | along with the allowed_redirect_hosts filter if | | needed, can help avoid any chances of malicious | | redirects within code. It is also important to | | remember to call exit() after a redirect so | | that no other unwanted code is executed. 338 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 350 | WARNING | [ ] Processing form data without nonce | | verification. 356 | WARNING | [ ] Processing form data without nonce | | verification. 357 | WARNING | [ ] Processing form data without nonce | | verification. 357 | ERROR | [ ] $_REQUEST data not unslashed before | | sanitization. Use wp_unslash() or similar 357 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_REQUEST['orderby'] 359 | WARNING | [ ] Processing form data without nonce | | verification. 360 | WARNING | [ ] Processing form data without nonce | | verification. 360 | ERROR | [ ] $_REQUEST data not unslashed before | | sanitization. Use wp_unslash() or similar 360 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_REQUEST['order'] 362 | WARNING | [ ] Processing form data without nonce | | verification. 363 | WARNING | [ ] Processing form data without nonce | | verification. 363 | ERROR | [ ] $_REQUEST data not unslashed before | | sanitization. Use wp_unslash() or similar 363 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_REQUEST['post_mime_type'] 365 | WARNING | [ ] Processing form data without nonce | | verification. 366 | WARNING | [ ] Processing form data without nonce | | verification. 366 | ERROR | [ ] $_REQUEST data not unslashed before | | sanitization. Use wp_unslash() or similar 366 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_REQUEST['detached'] 370 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$text'. 418 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$views'. 457 | WARNING | [ ] Words in hook names should be separated using | | underscores. Expected: | | "bulk_actions_{$this->screen->id}", but found: | | "bulk_actions-{$this->screen->id}". 467 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '__'. 468 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$two'. 469 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '__'. 474 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$name'. 474 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$class'. 474 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$title'. 491 | WARNING | [ ] Processing form data without nonce | | verification. 491 | WARNING | [ ] Processing form data without nonce | | verification. 495 | WARNING | [ ] Processing form data without nonce | | verification. 495 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==). 495 | WARNING | [ ] Processing form data without nonce | | verification. 496 | WARNING | [ ] Processing form data without nonce | | verification. 496 | ERROR | [ ] $_REQUEST data not unslashed before | | sanitization. Use wp_unslash() or similar 496 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_REQUEST['action'] 499 | WARNING | [ ] Processing form data without nonce | | verification. 499 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==). 499 | WARNING | [ ] Processing form data without nonce | | verification. 500 | WARNING | [ ] Processing form data without nonce | | verification. 500 | ERROR | [ ] $_REQUEST data not unslashed before | | sanitization. Use wp_unslash() or similar 500 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_REQUEST['action2'] 526 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 544 | ERROR | [ ] Missing parameter comment 562 | WARNING | [ ] Processing form data without nonce | | verification. 562 | WARNING | [ ] Processing form data without nonce | | verification. 564 | WARNING | [ ] Processing form data without nonce | | verification. 565 | WARNING | [ ] Processing form data without nonce | | verification. 565 | ERROR | [ ] $_GET data not unslashed before sanitization. | | Use wp_unslash() or similar 565 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_GET['post_status'] 568 | WARNING | [ ] Usage of a direct database call is discouraged. 568 | WARNING | [ ] Direct database call without caching detected. | | Consider using wp_cache_get() / wp_cache_set() | | or wp_cache_delete(). 574 | ERROR | [ ] Use placeholders and $wpdb->prepare(); found | | interpolated variable $extra_checks at | | $extra_checks | | 593 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 593 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 597 | WARNING | [ ] Processing form data without nonce | | verification. 597 | WARNING | [ ] Processing form data without nonce | | verification. 599 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 601 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 604 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 616 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '__'. 616 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$wp_locale'. 616 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$year'. 629 | ERROR | [ ] Missing parameter comment 642 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '"%s\n"'. 644 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$classes'. 645 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$title'. 667 | ERROR | [ ] A gettext call containing placeholders was | | found, but was not accompanied by a | | "translators:" comment on the line above to | | clarify the meaning of the placeholders. 668 | ERROR | [ ] A gettext call containing placeholders was | | found, but was not accompanied by a | | "translators:" comment on the line above to | | clarify the meaning of the placeholders. 669 | ERROR | [ ] A gettext call containing placeholders was | | found, but was not accompanied by a | | "translators:" comment on the line above to | | clarify the meaning of the placeholders. 675 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '__'. 691 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$approved_phrase'. 691 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$approved_only_phrase'. 696 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$approved_comments_number'. 697 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$pending_comments'. 713 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$pending_comments_number'. 714 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$pending_phrase'. 719 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$pending_comments_number'. 720 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$approved_comments'. 733 | WARNING | [ ] Processing form data without nonce | | verification. 733 | WARNING | [ ] Processing form data without nonce | | verification. 747 | ERROR | [ ] Missing parameter comment 748 | ERROR | [ ] Missing parameter comment 778 | ERROR | [ ] Missing parameter comment 796 | ERROR | [ ] A gettext call containing placeholders was | | found, but was not accompanied by a | | "translators:" comment on the line above to | | clarify the meaning of the placeholders. 801 | ERROR | [ ] Detected usage of a possibly undefined | | superglobal array index: $_SERVER['HTTP_HOST']. | | Use isset() or empty() to check the index | | exists before using it 801 | ERROR | [ ] $_SERVER data not unslashed before | | sanitization. Use wp_unslash() or similar 801 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_SERVER['HTTP_HOST'] 801 | ERROR | [ ] Detected usage of a possibly undefined | | superglobal array index: | | $_SERVER['REQUEST_URI']. Use isset() or empty() | | to check the index exists before using it 801 | ERROR | [ ] $_SERVER data not unslashed before | | sanitization. Use wp_unslash() or similar 801 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_SERVER['REQUEST_URI'] 810 | ERROR | [ ] Assignments must be the first block of code on | | a line 810 | ERROR | [ ] Assignments must be the first block of code on | | a line 810 | ERROR | [ ] Assignments must be the first block of code on | | a line 812 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 812 | ERROR | [ ] Use Yoda Condition checks, you must. 816 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 816 | ERROR | [ ] Use Yoda Condition checks, you must. 819 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 823 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 861 | ERROR | [ ] A gettext call containing placeholders was | | found, but was not accompanied by a | | "translators:" comment on the line above to | | clarify the meaning of the placeholders. 898 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 908 | ERROR | [ ] Function return type is not void, but function | | has no return statement 984 | ERROR | [x] Must use "self::" for local static member | | reference 1080 | ERROR | [ ] Parameter comment must end with a full stop 1085 | ERROR | [ ] Detected usage of a possibly undefined | | superglobal array index: $_SERVER['HTTP_HOST']. | | Use isset() or empty() to check the index | | exists before using it 1085 | ERROR | [ ] $_SERVER data not unslashed before | | sanitization. Use wp_unslash() or similar 1085 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_SERVER['HTTP_HOST'] 1085 | ERROR | [ ] Detected usage of a possibly undefined | | superglobal array index: | | $_SERVER['REQUEST_URI']. Use isset() or empty() | | to check the index exists before using it 1085 | ERROR | [ ] $_SERVER data not unslashed before | | sanitization. Use wp_unslash() or similar 1085 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_SERVER['REQUEST_URI'] 1088 | WARNING | [ ] Processing form data without nonce | | verification. 1089 | WARNING | [ ] Processing form data without nonce | | verification. 1089 | ERROR | [ ] $_GET data not unslashed before sanitization. | | Use wp_unslash() or similar 1089 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_GET['orderby'] 1094 | WARNING | [ ] Processing form data without nonce | | verification. 1094 | WARNING | [ ] Processing form data without nonce | | verification. 1110 | WARNING | [ ] Not using strict comparison for in_array; | | supply true for third argument. 1116 | WARNING | [ ] Not using strict comparison for in_array; | | supply true for third argument. 1148 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '"<$tag | | $scope $id | | $class>$column_display_name"'. 1164 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 1174 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '" | | data-wp-lists='list:$singular'"'. 1207 | ERROR | [ ] Missing parameter comment 1236 | ERROR | [ ] Missing parameter comment 1249 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 1271 | ERROR | [ ] Parameter comment must end with a full stop 1279 | ERROR | [ ] Missing short description in doc comment 1280 | ERROR | [ ] Missing parameter comment 1281 | ERROR | [ ] Missing parameter comment 1285 | ERROR | [ ] Missing short description in doc comment 1286 | ERROR | [ ] Missing parameter comment 1295 | ERROR | [ ] Parameter comment must end with a full stop 1306 | WARNING | [ ] Not using strict comparison for in_array; | | supply true for third argument. 1318 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 1321 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | 'call_user_func'. 1329 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '""'. 1330 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | 'call_user_func'. 1331 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 1331 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$column_name'. 1331 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$primary'. 1334 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '""'. 1335 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 1335 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$column_name'. 1336 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 1336 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$column_name'. 1336 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$primary'. 1365 | WARNING | [ ] Processing form data without nonce | | verification. 1377 | ERROR | [ ] A gettext call containing placeholders was | | found, but was not accompanied by a | | "translators:" comment on the line above to | | clarify the meaning of the placeholders. 1392 | WARNING | [ ] Method name "_js_vars" should not be prefixed | | with an underscore to indicate visibility ---------------------------------------------------------------------- PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...tent/plugins/link-roundups/inc/saved-links/class-saved-links.php ---------------------------------------------------------------------- FOUND 343 ERRORS AND 60 WARNINGS AFFECTING 208 LINES ---------------------------------------------------------------------- 1 | ERROR | [ ] Class file names should be based on the class | | name with "class-" prepended. Expected | | class-savedlinks.php, but found | | class-saved-links.php. 1 | ERROR | [ ] Missing file doc comment 11 | ERROR | [ ] Missing member variable doc comment 22 | ERROR | [x] Block comment text must start on a new line 23 | WARNING | [x] Please spell "WordPress" correctly. Found 1 | | misspelling(s): wordpress 36 | ERROR | [x] Missing space before array closer. 47 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 53 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 53 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 53 | ERROR | [x] Missing space after array opener. 53 | ERROR | [x] Missing space before array closer. 70 | ERROR | [x] Opening parenthesis of a multi-line function | | call must be the last content on the line 70 | ERROR | [x] Only one argument is allowed per line in a | | multi-line function call 71 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 72 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 72 | WARNING | [x] Array double arrow not aligned correctly; | | expected 15 space(s) between "'name'" and double | | arrow, but found 18. 73 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 73 | WARNING | [x] Array double arrow not aligned correctly; | | expected 6 space(s) between "'singular_name'" | | and double arrow, but found 9. 74 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 74 | WARNING | [x] Array double arrow not aligned correctly; | | expected 12 space(s) between "'add_new'" and | | double arrow, but found 15. 75 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 75 | WARNING | [x] Array double arrow not aligned correctly; | | expected 7 space(s) between "'add_new_item'" and | | double arrow, but found 10. 76 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 76 | WARNING | [x] Array double arrow not aligned correctly; | | expected 15 space(s) between "'edit'" and double | | arrow, but found 18. 77 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 77 | WARNING | [x] Array double arrow not aligned correctly; | | expected 10 space(s) between "'edit_item'" and | | double arrow, but found 13. 78 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 78 | WARNING | [x] Array double arrow not aligned correctly; | | expected 15 space(s) between "'view'" and double | | arrow, but found 18. 79 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 79 | WARNING | [x] Array double arrow not aligned correctly; | | expected 10 space(s) between "'view_item'" and | | double arrow, but found 13. 80 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 80 | WARNING | [x] Array double arrow not aligned correctly; | | expected 7 space(s) between "'search_items'" and | | double arrow, but found 10. 81 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 81 | WARNING | [x] Array double arrow not aligned correctly; | | expected 10 space(s) between "'not_found'" and | | double arrow, but found 13. 82 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 82 | WARNING | [x] Array double arrow not aligned correctly; | | expected 1 space(s) between | | "'not_found_in_trash'" and double arrow, but | | found 4. 84 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 85 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 86 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 86 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 89 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 90 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 90 | ERROR | [x] Each array item in a multi-line array | | declaration must end in a comma 91 | ERROR | [x] Closing parenthesis of a multi-line function | | call must be on a line by itself 94 | ERROR | [ ] Missing doc comment for function | | change_publish_button() 98 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 98 | ERROR | [ ] Use Yoda Condition checks, you must. 99 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 99 | ERROR | [ ] Use Yoda Condition checks, you must. 117 | ERROR | [x] String "lr-tags" does not require double quotes; | | use single quotes instead 120 | WARNING | [x] Array double arrow not aligned correctly; | | expected 3 space(s) between "'hierarchical'" and | | double arrow, but found 1. 121 | WARNING | [x] Array double arrow not aligned correctly; | | expected 10 space(s) between "'label'" and | | double arrow, but found 1. 123 | WARNING | [x] Array double arrow not aligned correctly; | | expected 8 space(s) between "'rewrite'" and | | double arrow, but found 1. 123 | ERROR | [x] Each array item in a multi-line array | | declaration must end in a comma 129 | WARNING | [x] Please spell "WordPress" correctly. Found 1 | | misspelling(s): Wordpress 139 | ERROR | [x] No space found after comma in function call 139 | ERROR | [x] Only one argument is allowed per line in a | | multi-line function call 173 | ERROR | [x] Line indented incorrectly; expected 2 tabs, | | found 1 175 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 176 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$link_url'. 180 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 180 | ERROR | [x] Space before opening parenthesis of function | | call prohibited 182 | ERROR | [x] Opening parenthesis of a multi-line function | | call must be the last content on the line 182 | ERROR | [x] Only one argument is allowed per line in a | | multi-line function call 182 | ERROR | [x] Only one argument is allowed per line in a | | multi-line function call 183 | WARNING | [x] Array double arrow not aligned correctly; | | expected 9 space(s) between "'teeny'" and double | | arrow, but found 1. 184 | ERROR | [x] Each array item in a multi-line array | | declaration must end in a comma 185 | ERROR | [x] Closing parenthesis of a multi-line function | | call must be on a line by itself 190 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 191 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$link_source'. 194 | ERROR | [x] Line indented incorrectly; expected at least 2 | | tabs, found 1 194 | ERROR | [x] Space after opening control structure is | | required 194 | ERROR | [x] No space before opening parenthesis is | | prohibited 194 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found 195 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 196 | ERROR | [x] Inline PHP statement must end with a semicolon 196 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$link_img_src'. 197 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$link_img_src'. 198 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 200 | ERROR | [x] Opening PHP tag must be on a line by itself 203 | ERROR | [ ] Doc comment for parameter "$post_id" missing 208 | ERROR | [x] No space after opening parenthesis is prohibited 208 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 | | found 208 | ERROR | [x] No space before closing parenthesis is | | prohibited 210 | ERROR | [x] Inline control structures are not allowed 210 | ERROR | [ ] Processing form data without nonce verification. 211 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 211 | ERROR | [ ] Processing form data without nonce verification. 211 | ERROR | [ ] $_POST data not unslashed before sanitization. | | Use wp_unslash() or similar 211 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_POST['post_ID'] 211 | ERROR | [ ] Processing form data without nonce verification. 211 | ERROR | [ ] $_POST data not unslashed before sanitization. | | Use wp_unslash() or similar 211 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_POST['lr_url'] 211 | ERROR | [ ] Processing form data without nonce verification. 213 | ERROR | [x] Inline control structures are not allowed 213 | ERROR | [ ] Processing form data without nonce verification. 213 | ERROR | [x] String "lr_desc" does not require double quotes; | | use single quotes instead 214 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 214 | ERROR | [ ] Processing form data without nonce verification. 214 | ERROR | [ ] $_POST data not unslashed before sanitization. | | Use wp_unslash() or similar 214 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_POST['post_ID'] 214 | ERROR | [ ] Processing form data without nonce verification. 214 | ERROR | [ ] $_POST data not unslashed before sanitization. | | Use wp_unslash() or similar 214 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_POST['lr_desc'] 214 | ERROR | [ ] Processing form data without nonce verification. 215 | ERROR | [x] Functions must not contain multiple empty lines | | in a row; found 2 empty lines 217 | ERROR | [x] Inline control structures are not allowed 217 | ERROR | [ ] Processing form data without nonce verification. 218 | ERROR | [ ] Processing form data without nonce verification. 218 | ERROR | [ ] $_POST data not unslashed before sanitization. | | Use wp_unslash() or similar 218 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_POST['post_ID'] 218 | ERROR | [ ] Processing form data without nonce verification. 218 | ERROR | [ ] $_POST data not unslashed before sanitization. | | Use wp_unslash() or similar 218 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_POST['lr_source'] 218 | ERROR | [ ] Processing form data without nonce verification. 220 | ERROR | [ ] Processing form data without nonce verification. 220 | ERROR | [ ] $_POST data not unslashed before sanitization. | | Use wp_unslash() or similar 220 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_POST['lr_img'] 220 | ERROR | [ ] Processing form data without nonce verification. 221 | ERROR | [ ] Detected usage of a possibly undefined | | superglobal array index: | | $_POST['argo_link_img_url']. Use isset() or | | empty() to check the index exists before using | | it 221 | ERROR | [ ] $_POST data not unslashed before sanitization. | | Use wp_unslash() or similar 221 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_POST['argo_link_img_url'] 221 | ERROR | [ ] Processing form data without nonce verification. 222 | ERROR | [x] Space after opening control structure is | | required 222 | ERROR | [x] No space before opening parenthesis is | | prohibited 222 | ERROR | [x] Expected exactly one space before closing | | parenthesis; " " found. 222 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found 222 | ERROR | [x] Expected 1 space after "!"; 0 found 222 | ERROR | [x] Expected 1 space after "!"; 0 found 223 | ERROR | [ ] Processing form data without nonce verification. 223 | ERROR | [ ] $_POST data not unslashed before sanitization. | | Use wp_unslash() or similar 223 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_POST['post_ID'] 223 | ERROR | [ ] Processing form data without nonce verification. 225 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 225 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 233 | ERROR | [x] Expected 2 spaces after parameter type; 1 found 233 | ERROR | [ ] Parameter comment must end with a full stop 234 | ERROR | [ ] Parameter comment must end with a full stop 235 | ERROR | [x] Expected 2 spaces after parameter type; 1 found 235 | ERROR | [ ] Parameter comment must end with a full stop 240 | ERROR | [x] Expected 1 space after "!"; 0 found 243 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 9 spaces but found 1 space 250 | ERROR | [x] Inline control structures are not allowed 256 | ERROR | [x] Inline control structures are not allowed 257 | WARNING | [ ] Silencing errors is strongly discouraged. Use | | proper error checking instead. Found: @unlink( | | $file_array[... 263 | ERROR | [ ] Doc comment for parameter "$columns" missing 268 | ERROR | [x] No space after opening parenthesis is prohibited 268 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 | | found 268 | ERROR | [x] No space before closing parenthesis is | | prohibited 268 | ERROR | [x] Expected 1 space before opening brace; found 0 268 | ERROR | [x] Space between opening control structure and | | closing parenthesis is required 270 | WARNING | [x] Array double arrow not aligned correctly; | | expected 10 space(s) between "'cb'" and double | | arrow, but found 1. 271 | WARNING | [x] Array double arrow not aligned correctly; | | expected 7 space(s) between "'title'" and double | | arrow, but found 1. 272 | WARNING | [x] Array double arrow not aligned correctly; | | expected 6 space(s) between "'author'" and | | double arrow, but found 1. 273 | WARNING | [x] Array double arrow not aligned correctly; | | expected 9 space(s) between "'url'" and double | | arrow, but found 1. 275 | WARNING | [x] Array double arrow not aligned correctly; | | expected 3 space(s) between "'link-tags'" and | | double arrow, but found 1. 276 | WARNING | [x] Array double arrow not aligned correctly; | | expected 8 space(s) between "'date'" and double | | arrow, but found 1. 276 | ERROR | [x] Each array item in a multi-line array | | declaration must end in a comma 281 | ERROR | [ ] Doc comment for parameter "$column" missing 286 | ERROR | [x] No space after opening parenthesis is prohibited 286 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 | | found 286 | ERROR | [x] No space before closing parenthesis is | | prohibited 286 | ERROR | [x] Expected 1 space before opening brace; found 0 286 | ERROR | [x] Space between opening control structure and | | closing parenthesis is required 290 | ERROR | [x] No space after opening parenthesis is prohibited 290 | ERROR | [x] No space before closing parenthesis is | | prohibited 293 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$custom'. 297 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$custom'. 297 | ERROR | [x] String "lr_url" does not require double quotes; | | use single quotes instead 302 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 4 spaces but found 1 space 308 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$term_links'. 333 | ERROR | [x] Each item in a multi-line array must be on a new | | line 333 | ERROR | [x] Each array item in a multi-line array | | declaration must end in a comma 344 | ERROR | [x] Each item in a multi-line array must be on a new | | line 344 | ERROR | [x] Each array item in a multi-line array | | declaration must end in a comma 353 | ERROR | [ ] Content missing for @see tag in function comment 358 | WARNING | [x] "include_once" is a statement not a function; no | | parentheses are required 358 | ERROR | [x] Concat operator must be surrounded by a single | | space 360 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 364 | ERROR | [x] Inline PHP statement must end with a semicolon 364 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 365 | ERROR | [x] Expected 1 space before closing PHP tag; 0 found 365 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 366 | ERROR | [x] Opening PHP tag must be on a line by itself 368 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 372 | ERROR | [x] Line indented incorrectly; expected 6 tabs, | | found 5 372 | ERROR | [x] Closing PHP tag must be on a line by itself 375 | ERROR | [x] Line indented incorrectly; expected 5 tabs, | | found 6 378 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | 'add_query_arg'. 380 | WARNING | [x] Array double arrow not aligned correctly; | | expected 4 space(s) between "'s'" and double | | arrow, but found 1. 380 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 380 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 381 | WARNING | [x] Array double arrow not aligned correctly; | | expected 2 space(s) between "'tab'" and double | | arrow, but found 1. 388 | ERROR | [x] Line indented incorrectly; expected 5 tabs, | | found 6 391 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '__'. 393 | ERROR | [x] Line indented incorrectly; expected 5 tabs, | | found 6 403 | ERROR | [ ] Content missing for @see tag in function comment 407 | ERROR | [x] Line indented incorrectly; expected at least 2 | | tabs, found 1 408 | WARNING | [x] "include_once" is a statement not a function; no | | parentheses are required 408 | ERROR | [x] Line indented incorrectly; expected at least 2 | | tabs, found 1 408 | ERROR | [x] Concat operator must be surrounded by a single | | space 409 | ERROR | [x] Line indented incorrectly; expected 2 tabs, | | found 1 411 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 416 | ERROR | [x] Inline PHP statement must end with a semicolon 416 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 417 | ERROR | [x] Expected 1 space before closing PHP tag; 0 found 417 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 418 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 422 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 423 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 424 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 427 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | 'Save_To_Site_Button'. 427 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 430 | ERROR | [x] Inline PHP statement must end with a semicolon 430 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 436 | ERROR | [x] Inline PHP statement must end with a semicolon 436 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 443 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 444 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 447 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | 'Save_To_Site_Button'. 447 | ERROR | [x] Inline PHP statement must end with a semicolon 447 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 472 | ERROR | [x] Line indented incorrectly; expected at least 2 | | tabs, found 0 475 | ERROR | [ ] Missing doc comment for function | | add_saved_links_widget() 479 | ERROR | [ ] Missing doc comment for function | | add_link_roundups_widget() 483 | ERROR | [ ] Doc comment for parameter "$url" missing 483 | ERROR | [ ] Doc comment for parameter "$post" missing 491 | ERROR | [ ] Doc comment for parameter $content does not | | match actual variable name $url 493 | ERROR | [x] No space after opening parenthesis is prohibited 493 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 | | found 493 | ERROR | [x] Incorrect spacing between argument "$post" and | | equals sign; expected 1 but found 0 493 | ERROR | [x] Incorrect spacing between default value and | | equals sign for argument "$post"; expected 1 but | | found 0 493 | ERROR | [x] No space before closing parenthesis is | | prohibited 496 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 497 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 6 spaces but found 1 space 498 | ERROR | [ ] Variable "$remoteUrl" is not in valid snake_case | | format, try "$remote_url" 498 | ERROR | [x] Expected 1 space after "!"; 0 found 500 | ERROR | [ ] Variable "$remoteUrl" is not in valid snake_case | | format, try "$remote_url" 500 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 501 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 503 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 507 | ERROR | [ ] Variable "$remoteUrl" is not in valid snake_case | | format, try "$remote_url" 510 | ERROR | [ ] Doc comment for parameter "$author" missing 519 | ERROR | [ ] Doc comment for parameter $content does not | | match actual variable name $author 521 | ERROR | [x] No space after opening parenthesis is prohibited 521 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 | | found 521 | ERROR | [x] No space before closing parenthesis is | | prohibited 522 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 527 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 3 spaces but found 1 space 527 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 527 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 528 | ERROR | [x] Expected 1 space after "!"; 0 found 530 | ERROR | [x] Expected 1 space after "!"; 0 found 530 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 538 | ERROR | [ ] Doc comment for parameter "$link" missing 543 | ERROR | [ ] Doc comment for parameter $content does not | | match actual variable name $link 545 | ERROR | [x] No space after opening parenthesis is prohibited 545 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 | | found 545 | ERROR | [x] No space before closing parenthesis is | | prohibited 548 | ERROR | [x] Expected 1 space after "!"; 0 found 548 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 552 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 3 spaces but found 1 space 553 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 4 spaces but found 1 space 553 | WARNING | [ ] This comment is 72% valid code; is this | | commented out code? 553 | ERROR | [x] No space found before comment text; expected "// | | ! empty( $meta['lr_url'] ) ? $meta['lr_url'][0] | | : '';" but found "//! empty( $meta['lr_url'] ) ? | | $meta['lr_url'][0] : '';" 554 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 2 spaces but found 1 space 577 | ERROR | [x] No space after opening parenthesis is prohibited 577 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 | | found 577 | ERROR | [x] No space before closing parenthesis is | | prohibited 578 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 589 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 606 | ERROR | [x] No space after opening parenthesis is prohibited 606 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 | | found 606 | ERROR | [x] No space before closing parenthesis is | | prohibited 609 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 610 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 617 | ERROR | [ ] Doc comment for parameter "$post" missing 617 | ERROR | [ ] Doc comment for parameter "$link_class" missing 617 | ERROR | [ ] Doc comment for parameter "$attrs" missing 625 | ERROR | [ ] Doc comment for parameter $content does not | | match actual variable name $post 627 | ERROR | [x] No space after opening parenthesis is prohibited 627 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 | | found 627 | ERROR | [x] Incorrect spacing between argument "$post" and | | equals sign; expected 1 but found 0 627 | ERROR | [x] Incorrect spacing between default value and | | equals sign for argument "$post"; expected 1 but | | found 0 627 | ERROR | [x] Incorrect spacing between argument "$link_class" | | and equals sign; expected 1 but found 0 627 | ERROR | [x] Incorrect spacing between default value and | | equals sign for argument "$link_class"; expected | | 1 but found 0 627 | ERROR | [x] Incorrect spacing between argument "$attrs" and | | equals sign; expected 1 but found 0 627 | ERROR | [x] Incorrect spacing between default value and | | equals sign for argument "$attrs"; expected 1 | | but found 0 627 | ERROR | [x] No space before closing parenthesis is | | prohibited 636 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 636 | ERROR | [ ] Use Yoda Condition checks, you must. 637 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 9 spaces but found 1 space 637 | ERROR | [x] Expected 1 space after "!"; 0 found 637 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 637 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 637 | ERROR | [x] Expected 1 space before "?"; 0 found 639 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 6 spaces but found 1 space 641 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 650 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF | | instead 656 | ERROR | [x] Expected exactly one space before closing | | parenthesis; " " found. 683 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 683 | ERROR | [ ] Use Yoda Condition checks, you must. 687 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 687 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 688 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 688 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 689 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 689 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 690 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 690 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 691 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 691 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 695 | WARNING | [ ] Found precision alignment of 1 spaces. 695 | ERROR | [x] Line indented incorrectly; expected 2 tabs, | | found 2 696 | WARNING | [ ] Found precision alignment of 1 spaces. 697 | WARNING | [ ] Found precision alignment of 1 spaces. 697 | ERROR | [x] Line indented incorrectly; expected 2 tabs, | | found 2 702 | ERROR | [ ] Doc comment for parameter "$atts" missing 710 | WARNING | [x] Array double arrow not aligned correctly; | | expected 4 space(s) between "'id'" and double | | arrow, but found 1. 712 | ERROR | [x] Each array item in a multi-line array | | declaration must end in a comma 717 | ERROR | [x] Expected 1 space after open parenthesis; 0 found 717 | ERROR | [x] Expected 1 space before "!"; 0 found 717 | ERROR | [x] Expected 1 space after "!"; 0 found 717 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 717 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 717 | ERROR | [x] Expected 1 space before close parenthesis; 0 | | found 717 | ERROR | [x] Expected 1 space before "?"; 0 found 719 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 720 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==). 720 | ERROR | [ ] Use Yoda Condition checks, you must. 721 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 727 | ERROR | [ ] Doc comment for parameter "$post" missing 736 | ERROR | [ ] Doc comment for parameter $content does not | | match actual variable name $post 739 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 3 spaces but found 1 space 743 | ERROR | [x] Inline control structures are not allowed 744 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$custom'. 745 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==). 745 | ERROR | [ ] Use Yoda Condition checks, you must. 746 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '__'. 746 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 746 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 747 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$custom'. 747 | ERROR | [x] String "lr_url" does not require double quotes; | | use single quotes instead 747 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$custom'. 747 | ERROR | [x] String "lr_source" does not require double | | quotes; use single quotes instead 747 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$custom'. 747 | ERROR | [x] String "lr_source" does not require double | | quotes; use single quotes instead 760 | ERROR | [ ] You must use "/**" style comments for a function | | comment 761 | WARNING | [x] "require_once" is a statement not a function; no | | parentheses are required 767 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 768 | WARNING | [ ] wp_reset_query() is discouraged. Use the | | wp_reset_postdata() instead. 773 | ERROR | [ ] Doc comment for parameter "$type" missing 773 | ERROR | [ ] Doc comment for parameter "$message" missing 778 | ERROR | [x] No space after opening parenthesis is prohibited 778 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 | | found 778 | ERROR | [x] No space before closing parenthesis is | | prohibited 779 | ERROR | [x] Missing space after array opener. 779 | WARNING | [ ] urlencode() should only be used when dealing | | with legacy applications rawurlencode() should | | now be used instead. See | | http://php.net/manual/en/function.rawurlencode.php | | and http://www.faqs.org/rfcs/rfc3986.html 779 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 779 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 779 | ERROR | [x] Missing space before array closer. 780 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 780 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 780 | ERROR | [x] Missing space after array opener. 780 | ERROR | [x] Missing space before array closer. 783 | ERROR | [ ] Doc comment for parameter "$location" missing 788 | ERROR | [x] No space after opening parenthesis is prohibited 788 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 | | found 788 | ERROR | [x] No space before closing parenthesis is | | prohibited 789 | ERROR | [x] No space after opening parenthesis is prohibited 789 | ERROR | [x] Expected 1 space before "!"; 0 found 789 | ERROR | [x] Expected 1 space after "!"; 0 found 789 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 789 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 789 | ERROR | [x] No space before closing parenthesis is | | prohibited 790 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 790 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 790 | ERROR | [x] Missing space after array opener. 790 | ERROR | [x] Missing space before array closer. 791 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 791 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 791 | ERROR | [x] Missing space after array opener. 791 | ERROR | [x] Missing space before array closer. 801 | ERROR | [x] Inline control structures are not allowed 801 | ERROR | [x] Expected 1 space before "!"; 0 found 801 | ERROR | [x] Expected 1 space after "!"; 0 found 801 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 801 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 801 | WARNING | [ ] Processing form data without nonce verification. 804 | ERROR | [x] No space after opening parenthesis is prohibited 804 | WARNING | [ ] Processing form data without nonce verification. 804 | ERROR | [ ] $_GET data not unslashed before sanitization. | | Use wp_unslash() or similar 804 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_GET['lroundups_notices'] 804 | ERROR | [x] No space before closing parenthesis is | | prohibited 804 | ERROR | [x] Closing PHP tag must be on a line by itself 805 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$notice'. 805 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | 'urldecode'. 805 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 805 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 806 | ERROR | [x] Opening PHP tag must be on a line by itself 809 | ERROR | [ ] Missing doc comment for function | | lroundups_default_link_html() 810 | ERROR | [x] Closing PHP tag must be on a line by itself 814 | ERROR | [x] Opening PHP tag must be on a line by itself ---------------------------------------------------------------------- PHPCBF CAN FIX THE 254 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...s/link-roundups/inc/saved-links/class-saved-links-list-table.php ---------------------------------------------------------------------- FOUND 144 ERRORS AND 34 WARNINGS AFFECTING 110 LINES ---------------------------------------------------------------------- 9 | ERROR | [ ] There must be exactly one blank line after the | | file comment 18 | WARNING | [x] "require_once" is a statement not a function; no | | parentheses are required 35 | ERROR | [ ] Visibility must be declared on method | | "__construct" 36 | ERROR | [x] Opening parenthesis of a multi-line function | | call must be the last content on the line 38 | WARNING | [x] Array double arrow not aligned correctly; | | expected 3 space(s) between "'plural'" and | | double arrow, but found 1. 39 | ERROR | [x] Closing parenthesis of a multi-line function | | call must be on a line by itself 51 | ERROR | [ ] Visibility must be declared on method | | "bulk_actions" 52 | WARNING | [ ] Processing form data without nonce verification. 57 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 59 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 62 | ERROR | [ ] Use Yoda Condition checks, you must. 63 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 67 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 69 | ERROR | [x] Expected 1 spaces before closing bracket; 6 | | found 69 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 69 | ERROR | [x] No space found after comma in function call 70 | ERROR | [x] Expected 1 spaces before closing bracket; 2 | | found 70 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 70 | ERROR | [x] No space found after comma in function call 71 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 71 | ERROR | [x] No space found after comma in function call 72 | ERROR | [x] Expected 1 spaces before closing bracket; 2 | | found 72 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 72 | ERROR | [x] No space found after comma in function call 73 | ERROR | [x] Expected 1 spaces before closing bracket; 3 | | found 73 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 73 | ERROR | [x] No space found after comma in function call 75 | ERROR | [x] Space after opening control structure is | | required 75 | ERROR | [x] No space before opening parenthesis is | | prohibited 75 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found 77 | ERROR | [x] Expected 1 space before closing PHP tag; 0 found 78 | ERROR | [x] Space after opening control structure is | | required 78 | ERROR | [x] No space before opening parenthesis is | | prohibited 78 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found 78 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 80 | ERROR | [x] Expected 1 space before closing PHP tag; 0 found 84 | ERROR | [x] Line indented incorrectly; expected at least 3 | | tabs, found 2 87 | ERROR | [ ] Use Yoda Condition checks, you must. 88 | ERROR | [x] Line indented incorrectly; expected 3 tabs, | | found 2 91 | WARNING | [ ] strip_tags() is discouraged. Use the more | | comprehensive wp_strip_all_tags() instead. 91 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | 'strip_tags'. 94 | ERROR | [x] Line indented incorrectly; expected at least 3 | | tabs, found 2 104 | ERROR | [ ] Visibility must be declared on method | | "get_columns" 105 | ERROR | [ ] Assignments must be the first block of code on a | | line 106 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 107 | WARNING | [x] Array double arrow not aligned correctly; | | expected 10 space(s) between "'cb'" and double | | arrow, but found 1. 108 | WARNING | [x] Array double arrow not aligned correctly; | | expected 7 space(s) between "'title'" and double | | arrow, but found 1. 110 | WARNING | [x] Array double arrow not aligned correctly; | | expected 8 space(s) between "'tags'" and double | | arrow, but found 1. 111 | WARNING | [x] Array double arrow not aligned correctly; | | expected 8 space(s) between "'date'" and double | | arrow, but found 1. 111 | ERROR | [x] Each array item in a multi-line array | | declaration must end in a comma 120 | ERROR | [ ] Visibility must be declared on method | | "get_sortable_columns" 121 | ERROR | [ ] Assignments must be the first block of code on a | | line 122 | WARNING | [x] Array double arrow not aligned correctly; | | expected 7 space(s) between "'title'" and double | | arrow, but found 1. 124 | WARNING | [x] Array double arrow not aligned correctly; | | expected 8 space(s) between "'tags'" and double | | arrow, but found 1. 125 | WARNING | [x] Array double arrow not aligned correctly; | | expected 8 space(s) between "'date'" and double | | arrow, but found 1. 125 | ERROR | [x] Each array item in a multi-line array | | declaration must end in a comma 135 | ERROR | [ ] Visibility must be declared on method | | "prepare_items" 137 | ERROR | [ ] Empty line not required before block comment 141 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 142 | WARNING | [ ] Processing form data without nonce verification. 142 | WARNING | [ ] Processing form data without nonce verification. 142 | ERROR | [ ] $_REQUEST data not unslashed before | | sanitization. Use wp_unslash() or similar 142 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_REQUEST['posts_per_page'] 143 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 144 | WARNING | [ ] Processing form data without nonce verification. 144 | WARNING | [ ] Processing form data without nonce verification. 144 | ERROR | [ ] $_REQUEST data not unslashed before | | sanitization. Use wp_unslash() or similar 144 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_REQUEST['lroundups_page'] 144 | ERROR | [x] Expected 1 space before close parenthesis; 0 | | found 151 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 153 | WARNING | [x] Array double arrow not aligned correctly; | | expected 5 space(s) between "'year'" and double | | arrow, but found 1. 157 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 158 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 158 | WARNING | [ ] Processing form data without nonce verification. 159 | ERROR | [x] No space after opening parenthesis is prohibited 159 | WARNING | [ ] Processing form data without nonce verification. 159 | ERROR | [x] No space before closing parenthesis is | | prohibited 162 | WARNING | [x] Array double arrow not aligned correctly; | | expected 5 space(s) between "'year'" and double | | arrow, but found 1. 164 | WARNING | [x] Array double arrow not aligned correctly; | | expected 6 space(s) between "'day'" and double | | arrow, but found 1. 164 | ERROR | [x] Each array item in a multi-line array | | declaration must end in a comma 170 | WARNING | [x] Array double arrow not aligned correctly; | | expected 4 space(s) between "'w'" and double | | arrow, but found 1. 170 | ERROR | [x] Each array item in a multi-line array | | declaration must end in a comma 175 | WARNING | [x] Array double arrow not aligned correctly; | | expected 5 space(s) between "'year'" and double | | arrow, but found 1. 176 | ERROR | [x] Each array item in a multi-line array | | declaration must end in a comma 181 | ERROR | [x] Each array item in a multi-line array | | declaration must end in a comma 189 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 191 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 191 | WARNING | [x] Array double arrow not aligned correctly; | | expected 6 space(s) between "'post_type'" and | | double arrow, but found 5. 192 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 192 | WARNING | [x] Array double arrow not aligned correctly; | | expected 8 space(s) between "'orderby'" and | | double arrow, but found 7. 192 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 192 | WARNING | [ ] Processing form data without nonce verification. 192 | WARNING | [ ] Processing form data without nonce verification. 192 | ERROR | [ ] $_REQUEST data not unslashed before | | sanitization. Use wp_unslash() or similar 192 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_REQUEST['orderby'] 193 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 193 | WARNING | [x] Array double arrow not aligned correctly; | | expected 10 space(s) between "'order'" and | | double arrow, but found 9. 193 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 193 | WARNING | [ ] Processing form data without nonce verification. 193 | WARNING | [ ] Processing form data without nonce verification. 193 | ERROR | [ ] $_REQUEST data not unslashed before | | sanitization. Use wp_unslash() or similar 193 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_REQUEST['order'] 194 | ERROR | [x] Each array item in a multi-line array | | declaration must end in a comma 204 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 6 spaces but found 1 space 205 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 205 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 205 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 207 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 208 | ERROR | [x] Opening parenthesis of a multi-line function | | call must be the last content on the line 210 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 210 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 210 | ERROR | [x] Expected 1 space before "/"; 0 found 210 | ERROR | [x] Expected 1 space after "/"; 0 found 211 | WARNING | [x] Array double arrow not aligned correctly; | | expected 4 space(s) between "'per_page'" and | | double arrow, but found 1. 212 | ERROR | [x] Closing parenthesis of a multi-line function | | call must be on a line by itself 214 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 217 | ERROR | [x] Array keys must be surrounded by spaces unless | | they contain a string or an integer. 220 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 221 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 221 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 223 | ERROR | [x] Block comment text must start on a new line 240 | ERROR | [x] No space after opening parenthesis is prohibited 240 | ERROR | [ ] You must use "/**" style comments for a function | | comment 240 | ERROR | [ ] Visibility must be declared on method | | "single_row" 240 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 | | found 240 | ERROR | [x] No space before closing parenthesis is | | prohibited 241 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 5 spaces but found 1 space 241 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 241 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 242 | ERROR | [x] String "lroundups-link" does not require double | | quotes; use single quotes instead 244 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '""'. 252 | WARNING | [ ] Not using strict comparison for in_array; supply | | true for third argument. 256 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 7 spaces but found 1 space 258 | ERROR | [x] No space after opening parenthesis is prohibited 258 | ERROR | [x] No space before closing parenthesis is | | prohibited 261 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 261 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 265 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '""'. 266 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$post'. 267 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 267 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$column_name'. 267 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$primary'. 268 | ERROR | [x] String "" does not require double quotes; | | use single quotes instead 271 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '""'. 272 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | 'the_author_meta'. 272 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 272 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 273 | ERROR | [x] String "" does not require double quotes; | | use single quotes instead 276 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '""'. 277 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 277 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 278 | ERROR | [x] String "" does not require double quotes; | | use single quotes instead 281 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '""'. 282 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 283 | ERROR | [x] String "" does not require double quotes; | | use single quotes instead 287 | ERROR | [x] String "" does not require double quotes; | | use single quotes instead 290 | ERROR | [ ] Doc comment for parameter "$post" missing 293 | ERROR | [ ] Missing parameter name 296 | ERROR | [ ] Visibility must be declared on method | | "column_cb" 296 | ERROR | [x] Closing PHP tag must be on a line by itself 297 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$post'. 297 | ERROR | [x] Opening PHP tag must be on a line by itself 298 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '__'. 298 | ERROR | [ ] A gettext call containing placeholders was | | found, but was not accompanied by a | | "translators:" comment on the line above to | | clarify the meaning of the placeholders. 298 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '_draft_or_post_title'. 299 | ERROR | [x] Closing PHP tag must be on a line by itself 300 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$post'. 302 | ERROR | [x] Line indented incorrectly; expected at least 2 | | tabs, found 1 305 | ERROR | [ ] Doc comment for parameter "$item" missing 305 | ERROR | [ ] Doc comment for parameter "$column_name" missing 305 | ERROR | [ ] Doc comment for parameter "$primary" missing 311 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 311 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 314 | ERROR | [ ] Doc comment for parameter "$which" missing 322 | ERROR | [x] Line indented incorrectly; expected 2 tabs, | | found 0 328 | ERROR | [x] Line indented incorrectly; expected at least 2 | | tabs, found 0 331 | ERROR | [x] Line indented incorrectly; expected 2 tabs, | | found 0 335 | ERROR | [x] Line indented incorrectly; expected at least 2 | | tabs, found 0 ---------------------------------------------------------------------- PHPCBF CAN FIX THE 100 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...ns/link-roundups/inc/link-roundups/class-save-to-site-button.php ---------------------------------------------------------------------- FOUND 93 ERRORS AND 14 WARNINGS AFFECTING 47 LINES ---------------------------------------------------------------------- 10 | ERROR | [ ] Missing @package tag in file comment 20 | ERROR | [x] Expected 1 space after "!"; 0 found 20 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 20 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 22 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 24 | WARNING | [x] "require_once" is a statement not a function; no | | parentheses are required 26 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 27 | ERROR | [ ] Variable "$URL" is not in valid snake_case | | format, try "$u_r_l" 27 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 4 spaces but found 1 space 27 | WARNING | [ ] parse_url() is discouraged because of | | inconsistency in the output across PHP versions; | | use wp_parse_url() instead. 27 | ERROR | [ ] Detected usage of a possibly undefined | | superglobal array index: | | $_SERVER['REQUEST_URI']. Use isset() or empty() | | to check the index exists before using it 27 | ERROR | [ ] $_SERVER data not unslashed before sanitization. | | Use wp_unslash() or similar 27 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_SERVER['REQUEST_URI'] 28 | ERROR | [ ] Variable "$newURL" is not in valid snake_case | | format, try "$new_u_r_l" 28 | ERROR | [ ] Variable "$URL" is not in valid snake_case | | format, try "$u_r_l" 30 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 31 | ERROR | [ ] Variable "$newURL" is not in valid snake_case | | format, try "$new_u_r_l" 34 | ERROR | [ ] Missing doc comment for class | | Save_To_Site_Button 36 | ERROR | [ ] Missing member variable doc comment 37 | ERROR | [ ] Missing member variable doc comment 38 | ERROR | [ ] Missing member variable doc comment 39 | ERROR | [ ] Missing member variable doc comment 40 | ERROR | [ ] Member variable "$imgUrl" is not in valid | | snake_case format, try "$img_url" 40 | ERROR | [ ] Missing member variable doc comment 41 | ERROR | [ ] Class constants must be uppercase; expected | | PLUGIN_DOMAIN but found plugin_domain 49 | WARNING | [ ] Processing form data without nonce verification. 49 | ERROR | [x] Array keys must NOT be surrounded by spaces if | | they only contain a string or an integer. 74 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 74 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 77 | WARNING | [ ] get_shortcut_link() has been deprecated since | | WordPress version 4.9.0. 102 | ERROR | [ ] Visibility must be declared on method "load" 103 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 3 spaces but found 1 space 103 | ERROR | [ ] Detected usage of a possibly undefined | | superglobal array index: $_POST['_meta']. Use | | isset() or empty() to check the index exists | | before using it 103 | ERROR | [ ] $_POST data not unslashed before sanitization. | | Use wp_unslash() or similar 103 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_POST['_meta'] 103 | ERROR | [ ] Processing form data without nonce verification. 104 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 2 spaces but found 1 space 104 | ERROR | [ ] Detected usage of a possibly undefined | | superglobal array index: $_POST['_links']. Use | | isset() or empty() to check the index exists | | before using it 104 | ERROR | [ ] $_POST data not unslashed before sanitization. | | Use wp_unslash() or similar 104 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_POST['_links'] 104 | ERROR | [ ] Processing form data without nonce verification. 105 | ERROR | [ ] Detected usage of a possibly undefined | | superglobal array index: $_POST['_images']. Use | | isset() or empty() to check the index exists | | before using it 105 | ERROR | [ ] $_POST data not unslashed before sanitization. | | Use wp_unslash() or similar 105 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_POST['_images'] 105 | ERROR | [ ] Processing form data without nonce verification. 106 | ERROR | [ ] Detected usage of a possibly undefined | | superglobal array index: $_POST['_embeds']. Use | | isset() or empty() to check the index exists | | before using it 106 | ERROR | [ ] $_POST data not unslashed before sanitization. | | Use wp_unslash() or similar 106 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_POST['_embeds'] 106 | ERROR | [ ] Processing form data without nonce verification. 108 | WARNING | [ ] Processing form data without nonce verification. 108 | ERROR | [x] Array keys must NOT be surrounded by spaces if | | they only contain a string or an integer. 108 | WARNING | [ ] Processing form data without nonce verification. 108 | ERROR | [ ] $_GET data not unslashed before sanitization. | | Use wp_unslash() or similar 108 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_GET['u'] 108 | ERROR | [x] Array keys must NOT be surrounded by spaces if | | they only contain a string or an integer. 111 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 116 | ERROR | [ ] Processing form data without nonce verification. 116 | ERROR | [x] Array keys must NOT be surrounded by spaces if | | they only contain a string or an integer. 116 | WARNING | [ ] strip_tags() is discouraged. Use the more | | comprehensive wp_strip_all_tags() instead. 116 | ERROR | [ ] $_POST data not unslashed before sanitization. | | Use wp_unslash() or similar 116 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_POST['t'] 116 | ERROR | [ ] Processing form data without nonce verification. 116 | ERROR | [x] Array keys must NOT be surrounded by spaces if | | they only contain a string or an integer. 120 | ERROR | [ ] Processing form data without nonce verification. 120 | ERROR | [x] Array keys must NOT be surrounded by spaces if | | they only contain a string or an integer. 121 | ERROR | [ ] $_POST data not unslashed before sanitization. | | Use wp_unslash() or similar 121 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_POST['s'] 121 | ERROR | [ ] Processing form data without nonce verification. 121 | ERROR | [x] Array keys must NOT be surrounded by spaces if | | they only contain a string or an integer. 125 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 127 | ERROR | [x] Expected 1 space after "!"; 0 found 129 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF | | instead 129 | ERROR | [x] Space after opening control structure is | | required 129 | ERROR | [x] No space before opening parenthesis is | | prohibited 129 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found 129 | ERROR | [x] Expected 1 space after "!"; 0 found 129 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 129 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 133 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 135 | ERROR | [x] Space after opening control structure is | | required 135 | ERROR | [x] No space before opening parenthesis is | | prohibited 135 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found 135 | ERROR | [x] Expected 1 space after "!"; 0 found 135 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 135 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 137 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF | | instead 137 | ERROR | [x] Space after opening control structure is | | required 137 | ERROR | [x] No space before opening parenthesis is | | prohibited 137 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found 138 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 10 spaces but found 1 | | space 138 | WARNING | [ ] parse_url() is discouraged because of | | inconsistency in the output across PHP versions; | | use wp_parse_url() instead. 138 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 138 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 142 | ERROR | [ ] Object property "$imgUrl" is not in valid | | snake_case format, try "$img_url" 143 | ERROR | [x] Space after opening control structure is | | required 143 | ERROR | [x] No space before opening parenthesis is | | prohibited 143 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found 144 | ERROR | [ ] Object property "$imgUrl" is not in valid | | snake_case format, try "$img_url" 165 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 171 | ERROR | [ ] Doc comment for parameter "$title" missing 182 | ERROR | [ ] Doc comment for parameter "$description" missing 193 | ERROR | [ ] Doc comment for parameter "$link" missing 204 | ERROR | [ ] Doc comment for parameter "$source" missing 215 | ERROR | [ ] Doc comment for parameter "$imgUrl" missing 222 | ERROR | [ ] Method name "default_imgUrl" in class | | Save_To_Site_Button is not in snake case format, | | try "default_img_url" 222 | ERROR | [ ] Variable "$imgUrl" is not in valid snake_case | | format, try "$img_url" 223 | ERROR | [ ] Object property "$imgUrl" is not in valid | | snake_case format, try "$img_url" ---------------------------------------------------------------------- PHPCBF CAN FIX THE 41 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: .../plugins/link-roundups/inc/link-roundups/class-link-roundups.php ---------------------------------------------------------------------- FOUND 132 ERRORS AND 18 WARNINGS AFFECTING 82 LINES ---------------------------------------------------------------------- 1 | ERROR | [ ] Class file names should be based on the class | | name with "class-" prepended. Expected | | class-linkroundups.php, but found | | class-link-roundups.php. 14 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 15 | ERROR | [ ] You must use "/**" style comments for a function | | comment 17 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 18 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 20 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 21 | ERROR | [x] Missing space before array closer. 23 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 34 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 38 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 40 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 41 | ERROR | [ ] You must use "/**" style comments for a function | | comment 42 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 43 | ERROR | [x] Inline control structures are not allowed 44 | ERROR | [x] Inline control structures are not allowed 49 | WARNING | [ ] Not using strict comparison for in_array; supply | | true for third argument. 50 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 53 | ERROR | [x] Expected 1 space after "!"; 0 found 54 | ERROR | [ ] Use Yoda Condition checks, you must. 55 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 59 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 60 | ERROR | [x] Expected 1 space between comma and "'roundup'"; | | 0 found 73 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 3 spaces but found 1 space 74 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 5 spaces but found 1 space 76 | ERROR | [x] Space after opening control structure is | | required 76 | ERROR | [x] No space before opening parenthesis is | | prohibited 76 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found 76 | ERROR | [x] Expected 1 space after "!"; 0 found 78 | ERROR | [x] Expected 1 space after closing brace; newline | | found 83 | ERROR | [x] Space after opening control structure is | | required 83 | ERROR | [x] No space before opening parenthesis is | | prohibited 83 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found 83 | ERROR | [x] Expected 1 space after "!"; 0 found 85 | ERROR | [x] Expected 1 space after closing brace; newline | | found 91 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 92 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 92 | WARNING | [x] Array double arrow not aligned correctly; | | expected 15 space(s) between "'name'" and double | | arrow, but found 10. 93 | WARNING | [x] Array double arrow not aligned correctly; | | expected 6 space(s) between "'singular_name'" | | and double arrow, but found 1. 94 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 94 | WARNING | [x] Array double arrow not aligned correctly; | | expected 12 space(s) between "'add_new'" and | | double arrow, but found 7. 94 | ERROR | [x] Concat operator must be surrounded by a single | | space 95 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 95 | WARNING | [x] Array double arrow not aligned correctly; | | expected 7 space(s) between "'add_new_item'" and | | double arrow, but found 2. 95 | ERROR | [x] Concat operator must be surrounded by a single | | space 96 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 96 | WARNING | [x] Array double arrow not aligned correctly; | | expected 15 space(s) between "'edit'" and double | | arrow, but found 10. 97 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 97 | WARNING | [x] Array double arrow not aligned correctly; | | expected 10 space(s) between "'edit_item'" and | | double arrow, but found 5. 98 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 98 | WARNING | [x] Array double arrow not aligned correctly; | | expected 15 space(s) between "'view'" and double | | arrow, but found 10. 99 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 99 | WARNING | [x] Array double arrow not aligned correctly; | | expected 10 space(s) between "'view_item'" and | | double arrow, but found 5. 100 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 100 | WARNING | [x] Array double arrow not aligned correctly; | | expected 7 space(s) between "'search_items'" and | | double arrow, but found 2. 101 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 101 | WARNING | [x] Array double arrow not aligned correctly; | | expected 10 space(s) between "'not_found'" and | | double arrow, but found 5. 104 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 105 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 106 | ERROR | [x] Each item in a multi-line array must be on a new | | line 106 | ERROR | [x] Each item in a multi-line array must be on a new | | line 106 | ERROR | [x] Each item in a multi-line array must be on a new | | line 106 | ERROR | [x] Each item in a multi-line array must be on a new | | line 106 | ERROR | [x] Each item in a multi-line array must be on a new | | line 106 | ERROR | [x] Each item in a multi-line array must be on a new | | line 107 | ERROR | [x] Each item in a multi-line array must be on a new | | line 107 | ERROR | [x] Each item in a multi-line array must be on a new | | line 107 | ERROR | [x] Each item in a multi-line array must be on a new | | line 107 | ERROR | [x] Each array item in a multi-line array | | declaration must end in a comma 109 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 111 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 112 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 112 | ERROR | [x] Expected 1 space between comma and "'post_tag'"; | | 0 found 113 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 116 | ERROR | [x] Inline control structures are not allowed 116 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==). 116 | ERROR | [ ] Use Yoda Condition checks, you must. 126 | ERROR | [ ] You must use "/**" style comments for a function | | comment 127 | ERROR | [x] Expected 1 space after "!"; 0 found 132 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 133 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 133 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 134 | ERROR | [x] No space after opening parenthesis is prohibited 134 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 134 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 134 | ERROR | [x] No space before closing parenthesis is | | prohibited 135 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 3 spaces but found 1 space 142 | ERROR | [ ] You must use "/**" style comments for a function | | comment 143 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 144 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 144 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 145 | ERROR | [x] No space after opening parenthesis is prohibited 145 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 145 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 145 | ERROR | [x] No space before closing parenthesis is | | prohibited 146 | ERROR | [x] Expected 1 space before "?"; 2 found 147 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 4 spaces but found 1 space 147 | ERROR | [x] Expected 1 spaces after opening bracket; 2 found 147 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 160 | ERROR | [x] Only one argument is allowed per line in a | | multi-line function call 161 | ERROR | [x] Only one argument is allowed per line in a | | multi-line function call 161 | ERROR | [x] Only one argument is allowed per line in a | | multi-line function call 161 | ERROR | [x] Only one argument is allowed per line in a | | multi-line function call 187 | ERROR | [ ] Doc comment for parameter "$post_id" missing 197 | ERROR | [ ] Empty IF statement detected 197 | ERROR | [ ] Processing form data without nonce verification. 198 | WARNING | [ ] This comment is 74% valid code; is this | | commented out code? 198 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 200 | ERROR | [ ] Processing form data without nonce verification. 200 | ERROR | [x] Expected 1 space(s) after closing parenthesis; | | found 0 200 | ERROR | [x] Space between opening control structure and | | closing parenthesis is required 201 | ERROR | [ ] Processing form data without nonce verification. 201 | ERROR | [ ] Detected usage of a possibly undefined | | superglobal array index: $_POST['post_ID']. Use | | isset() or empty() to check the index exists | | before using it 201 | ERROR | [ ] $_POST data not unslashed before sanitization. | | Use wp_unslash() or similar 201 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_POST['post_ID'] 201 | ERROR | [ ] Processing form data without nonce verification. 201 | ERROR | [ ] $_POST data not unslashed before sanitization. | | Use wp_unslash() or similar 201 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_POST["lr_url"] 201 | ERROR | [ ] Processing form data without nonce verification. 201 | ERROR | [x] String "lr_url" does not require double quotes; | | use single quotes instead 203 | ERROR | [ ] Processing form data without nonce verification. 204 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 204 | ERROR | [ ] Processing form data without nonce verification. 204 | ERROR | [ ] Detected usage of a possibly undefined | | superglobal array index: $_POST['post_ID']. Use | | isset() or empty() to check the index exists | | before using it 204 | ERROR | [ ] $_POST data not unslashed before sanitization. | | Use wp_unslash() or similar 204 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_POST['post_ID'] 204 | ERROR | [ ] Processing form data without nonce verification. 204 | ERROR | [ ] $_POST data not unslashed before sanitization. | | Use wp_unslash() or similar 204 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_POST['lr_desc'] 204 | ERROR | [ ] Processing form data without nonce verification. 215 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 216 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 217 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 219 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 220 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 223 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 227 | ERROR | [ ] Missing doc comment for function | | register_mysettings() 228 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 236 | ERROR | [ ] Missing doc comment for function | | build_lroundups_options_page() 237 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 238 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 238 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 243 | ERROR | [x] No space after opening parenthesis is prohibited 243 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 243 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 243 | WARNING | [ ] Processing form data without nonce verification. 243 | ERROR | [x] Expected 1 space after "!"; 0 found 243 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 243 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 243 | ERROR | [x] No space before closing parenthesis is | | prohibited 247 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks ---------------------------------------------------------------------- PHPCBF CAN FIX THE 98 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...s/link-roundups/inc/link-roundups/class-link-roundups-widget.php ---------------------------------------------------------------------- FOUND 85 ERRORS AND 20 WARNINGS AFFECTING 58 LINES ---------------------------------------------------------------------- 1 | ERROR | [ ] Missing file doc comment 6 | ERROR | [ ] Class name must begin with a capital letter 6 | ERROR | [ ] Class name is not valid; consider | | Link_Roundups_Widget instead 8 | ERROR | [ ] Missing doc comment for function __construct() 8 | ERROR | [ ] Visibility must be declared on method | | "__construct" 10 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 10 | WARNING | [x] Array double arrow not aligned correctly; | | expected 3 space(s) between "'classname'" and | | double arrow, but found 5. 11 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 11 | WARNING | [x] Array double arrow not aligned correctly; | | expected 1 space(s) between "'description'" and | | double arrow, but found 3. 11 | ERROR | [x] Each item in a multi-line array must be on a new | | line 11 | ERROR | [x] Each array item in a multi-line array | | declaration must end in a comma 13 | ERROR | [x] Expected 1 spaces after opening bracket; 2 found 16 | ERROR | [ ] Missing doc comment for function widget() 16 | ERROR | [ ] Visibility must be declared on method "widget" 17 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 18 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 18 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 18 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 18 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 18 | ERROR | [x] Space found before comma in function call 20 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$args'. 22 | ERROR | [x] Expected 1 space after "!"; 0 found 23 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$args'. 23 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$title'. 23 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$args'. 26 | ERROR | [x] There must be no space between the "array" | | keyword and the opening parenthesis 27 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 27 | WARNING | [x] Array double arrow not aligned correctly; | | expected 3 space(s) between "'post__not_in'" and | | double arrow, but found 2. 28 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 28 | WARNING | [x] Array double arrow not aligned correctly; | | expected 1 space(s) between "'posts_per_page'" | | and double arrow, but found 4. 29 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 29 | WARNING | [x] Array double arrow not aligned correctly; | | expected 6 space(s) between "'post_type'" and | | double arrow, but found 5. 30 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 30 | WARNING | [x] Array double arrow not aligned correctly; | | expected 4 space(s) between "'post_status'" and | | double arrow, but found 3. 30 | ERROR | [x] Each array item in a multi-line array | | declaration must end in a comma 33 | ERROR | [x] Inline control structures are not allowed 33 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==). 33 | ERROR | [ ] Use Yoda Condition checks, you must. 36 | ERROR | [x] Line indented incorrectly; expected 2 tabs, | | found 3 37 | ERROR | [x] Line indented incorrectly; expected 3 tabs, | | found 4 37 | ERROR | [x] Newline required after opening brace 41 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 43 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 45 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 47 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$output'. 51 | ERROR | [x] Line indented incorrectly; expected at least 4 | | tabs, found 3 53 | ERROR | [x] Line indented incorrectly; expected 2 tabs, | | found 3 54 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 55 | ERROR | [x] Line indented incorrectly; expected 2 tabs, | | found 3 57 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==). 57 | ERROR | [ ] Use Yoda Condition checks, you must. 57 | ERROR | [x] Expected 1 space after "!="; 0 found 57 | ERROR | [x] Closing PHP tag must be on a line by itself 58 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$instance'. 58 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$instance'. 59 | ERROR | [x] Opening PHP tag must be on a line by itself 61 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$args'. 64 | ERROR | [ ] Missing doc comment for function update() 64 | ERROR | [ ] Visibility must be declared on method "update" 65 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 14 spaces but found 1 | | space 66 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 5 spaces but found 1 space 66 | WARNING | [ ] strip_tags() is discouraged. Use the more | | comprehensive wp_strip_all_tags() instead. 67 | WARNING | [ ] strip_tags() is discouraged. Use the more | | comprehensive wp_strip_all_tags() instead. 68 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 2 spaces but found 1 space 69 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 3 spaces but found 1 space 70 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 7 spaces but found 1 space 74 | ERROR | [ ] Missing doc comment for function form() 74 | ERROR | [ ] Visibility must be declared on method "form" 76 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 76 | WARNING | [x] Array double arrow not aligned correctly; | | expected 5 space(s) between "'title'" and double | | arrow, but found 9. 77 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 77 | WARNING | [x] Array double arrow not aligned correctly; | | expected 1 space(s) between "'num_posts'" and | | double arrow, but found 5. 78 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 78 | WARNING | [x] Array double arrow not aligned correctly; | | expected 2 space(s) between "'linktext'" and | | double arrow, but found 6. 79 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 79 | WARNING | [x] Array double arrow not aligned correctly; | | expected 3 space(s) between "'linkurl'" and | | double arrow, but found 7. 80 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 80 | WARNING | [x] Array double arrow not aligned correctly; | | expected 7 space(s) between "'cat'" and double | | arrow, but found 11. 83 | ERROR | [x] Cast statements must not contain whitespace; | | expected "(array)" but found "( array )" 87 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 87 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 88 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 88 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 88 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$instance'. 92 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 92 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 93 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 93 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 93 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$instance'. 97 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 97 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 98 | ERROR | [x] When a multi-item array uses associative keys, | | each value should start on a new line. 101 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 101 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 103 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 103 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 104 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 104 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 104 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$instance'. 108 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 108 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 109 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 109 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '$this'. 109 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$instance'. 112 | ERROR | [x] Line indented incorrectly; expected at least 2 | | tabs, found 1 ---------------------------------------------------------------------- PHPCBF CAN FIX THE 51 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...s/link-roundups/inc/link-roundups/class-link-roundups-editor.php ---------------------------------------------------------------------- FOUND 90 ERRORS AND 66 WARNINGS AFFECTING 110 LINES ---------------------------------------------------------------------- 1 | ERROR | [ ] Class file names should be based on the class | | name with "class-" prepended. Expected | | class-linkroundupseditor.php, but found | | class-link-roundups-editor.php. 1 | ERROR | [ ] Missing file doc comment 3 | ERROR | [ ] Missing doc comment for class LinkRoundupsEditor 5 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 6 | ERROR | [ ] You must use "/**" style comments for a function | | comment 16 | ERROR | [ ] Doc comment for parameter "$attrs" missing 41 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 79 | ERROR | [ ] Doc comment for parameter "$plugins" missing 85 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 26 spaces but found 1 | | space 97 | ERROR | [ ] Resource version not set in call to | | wp_register_style(). This means new versions of | | the style will not always be loaded due to | | browser caching. 100 | WARNING | [ ] In footer ($in_footer) is not set explicitly | | wp_register_script; It is recommended to load | | scripts in the footer. Please set this value to | | `true` to load it in the footer, or explicitly | | `false` if it should be loaded in the header. 100 | ERROR | [ ] Resource version not set in call to | | wp_register_script(). This means new versions of | | the script will not always be loaded due to | | browser caching. 104 | WARNING | [ ] In footer ($in_footer) is not set explicitly | | wp_register_script; It is recommended to load | | scripts in the footer. Please set this value to | | `true` to load it in the footer, or explicitly | | `false` if it should be loaded in the header. 104 | ERROR | [ ] Resource version not set in call to | | wp_register_script(). This means new versions of | | the script will not always be loaded due to | | browser caching. 109 | ERROR | [x] Opening parenthesis of a multi-line function | | call must be the last content on the line 109 | ERROR | [x] Only one argument is allowed per line in a | | multi-line function call 113 | ERROR | [x] Closing parenthesis of a multi-line function | | call must be on a line by itself 123 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 123 | ERROR | [ ] Use Yoda Condition checks, you must. 123 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 123 | ERROR | [ ] Use Yoda Condition checks, you must. 124 | ERROR | [x] Must use "self::" for local static member | | reference 126 | ERROR | [x] Line indented incorrectly; expected 3 tabs, | | found 1 128 | WARNING | [ ] json_encode() is discouraged. Use | | wp_json_encode() instead. 128 | ERROR | [x] Must use "self::" for local static member | | reference 130 | ERROR | [x] Line indented incorrectly; expected at least 3 | | tabs, found 1 139 | ERROR | [x] Closing PHP tag must be on a line by itself 144 | WARNING | [ ] Possible use of ASP style short opening tags | | detected; found: <%= content %><% } %>
| | 147 | WARNING | [ ] Possible use of ASP style opening tags detected; | | found: <% _.each(actions, function(v, k) { %> | | 148 | WARNING | [ ] Possible use of ASP style short opening tags | | detected; found: <%= k %> button | | button-primary"><%= k %> | | 154 | WARNING | [ ] Possible use of ASP style short opening tags | | detected; found: <%= name %> | | 155 | WARNING | [ ] Possible use of ASP style short opening tags | | detected; found: <%= name %>" block.

| | 161 | WARNING | [ ] Possible use of ASP style opening tags detected; | | found: <% if (hasPosts) { %>loading<% } else { | | %>... 162 | WARNING | [ ] Possible use of ASP style opening tags detected; | | found: <% if (hasPosts) { %>Loading...<% } else | | {... 180 | WARNING | [ ] Possible use of ASP style opening tags detected; | | found: <% posts.each(function(post, idx) { %> | | 181 | WARNING | [ ] Possible use of ASP style short opening tags | | detected; found: <%= post.get('ID') %>"> | | 182 | WARNING | [ ] Possible use of ASP style short opening tags | | detected; found: <%= post.get('post_title') %> | | 183 | WARNING | [ ] Possible use of ASP style short opening tags | | detected; found: <%= post.getStatus() | | %>
| | 186 | WARNING | [ ] Possible use of ASP style short opening tags | | detected; found: <%= post.get('ID') %>" | | href="#">Edit | ... 189 | WARNING | [ ] Possible use of ASP style short opening tags | | detected; found: <%= post.get('ID') %>" | | href="#">Add | | 193 | WARNING | [ ] Possible use of ASP style opening tags detected; | | found: <% }); %> | | 198 | WARNING | [ ] Possible use of ASP style short opening tags | | detected; found: <%= post_title %> | | 201 | WARNING | [ ] Possible use of ASP style short opening tags | | detected; found: <%= post_title %>"/> | | 205 | WARNING | [ ] Possible use of ASP style opening tags detected; | | found: <% if (custom_fields.lr_subhed) { %> | | 206 | WARNING | [ ] Possible use of ASP style short opening tags | | detected; found: <%= custom_fields.lr_subhed | | %>"/> | | 207 | WARNING | [ ] Possible use of ASP style opening tags detected; | | found: <% } else { %> | | 208 | WARNING | [ ] Possible use of ASP style short opening tags | | detected; found: <%= custom_fields.lr_subhed | | %>"/> | | 209 | WARNING | [ ] Possible use of ASP style opening tags detected; | | found: <% } %> | | 213 | WARNING | [ ] Possible use of ASP style opening tags detected; | | found: <% if (custom_fields.lr_url) { %> | | 214 | WARNING | [ ] Possible use of ASP style short opening tags | | detected; found: <%= custom_fields.lr_url %>" /> | | 215 | WARNING | [ ] Possible use of ASP style opening tags detected; | | found: <% } else if (post_permalink) { %> | | 216 | WARNING | [ ] Possible use of ASP style short opening tags | | detected; found: <%= post_permalink %>" /> | | 217 | WARNING | [ ] Possible use of ASP style opening tags detected; | | found: <% } else { %> | | 219 | WARNING | [ ] Possible use of ASP style opening tags detected; | | found: <% } %> | | 223 | WARNING | [ ] Possible use of ASP style opening tags detected; | | found: <% if (custom_fields.lr_desc) { %> | | 224 | WARNING | [ ] Possible use of ASP style short opening tags | | detected; found: <%= custom_fields.lr_desc | | %> | | 225 | WARNING | [ ] Possible use of ASP style opening tags detected; | | found: <% } else if (post_excerpt) { %> | | 226 | WARNING | [ ] Possible use of ASP style short opening tags | | detected; found: <%= post_excerpt %> | | 227 | WARNING | [ ] Possible use of ASP style opening tags detected; | | found: <% } else { %> | | 229 | WARNING | [ ] Possible use of ASP style opening tags detected; | | found: <% } %> | | 233 | WARNING | [ ] Possible use of ASP style opening tags detected; | | found: <% if (custom_fields.lr_source) { %> | | 234 | WARNING | [ ] Possible use of ASP style short opening tags | | detected; found: <%= custom_fields.lr_source %>" | | /> | | 235 | WARNING | [ ] Possible use of ASP style opening tags detected; | | found: <% } else if (source) { %> | | 236 | WARNING | [ ] Possible use of ASP style short opening tags | | detected; found: <%= source %>" /> | | 237 | WARNING | [ ] Possible use of ASP style opening tags detected; | | found: <% } else { %> | | 239 | WARNING | [ ] Possible use of ASP style opening tags detected; | | found: <% } %> | | 242 | ERROR | [x] Opening PHP tag must be on a line by itself 244 | ERROR | [ ] Doc comment for parameter "$add" missing 254 | ERROR | [x] Opening parenthesis of a multi-line function | | call must be the last content on the line 255 | WARNING | [x] Array double arrow not aligned correctly; | | expected 7 space(s) between "'post_id'" and | | double arrow, but found 1. 256 | WARNING | [x] Array double arrow not aligned correctly; | | expected 4 space(s) between "'ajax_nonce'" and | | double arrow, but found 1. 257 | WARNING | [x] Array double arrow not aligned correctly; | | expected 4 space(s) between "'plugin_url'" and | | double arrow, but found 1. 258 | ERROR | [x] Each array item in a multi-line array | | declaration must end in a comma 259 | ERROR | [x] Only one argument is allowed per line in a | | multi-line function call 259 | ERROR | [x] Closing parenthesis of a multi-line function | | call must be on a line by itself 267 | ERROR | [ ] You must use "/**" style comments for a function | | comment 268 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 268 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 275 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 275 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 275 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 275 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 275 | ERROR | [ ] $_POST data not unslashed before sanitization. | | Use wp_unslash() or similar 275 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_POST['post'] 278 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 278 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 284 | WARNING | [ ] json_encode() is discouraged. Use | | wp_json_encode() instead. 284 | ERROR | [x] When a multi-item array uses associative keys, | | each value should start on a new line. 291 | WARNING | [ ] json_encode() is discouraged. Use | | wp_json_encode() instead. 296 | ERROR | [ ] Missing doc comment for function | | roundup_block_posts_query() 297 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 298 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 2 spaces but found 1 space 298 | ERROR | [x] Opening parenthesis of a multi-line function | | call must be the last content on the line 298 | ERROR | [x] Only one argument is allowed per line in a | | multi-line function call 299 | WARNING | [x] Array double arrow not aligned correctly; | | expected 6 space(s) between "'post_type'" and | | double arrow, but found 1. 300 | WARNING | [x] Array double arrow not aligned correctly; | | expected 8 space(s) between "'orderby'" and | | double arrow, but found 1. 301 | WARNING | [x] Array double arrow not aligned correctly; | | expected 10 space(s) between "'order'" and | | double arrow, but found 1. 303 | WARNING | [x] Array double arrow not aligned correctly; | | expected 5 space(s) between "'date_query'" and | | double arrow, but found 1. 304 | WARNING | [x] Array double arrow not aligned correctly; | | expected 5 space(s) between "'year'" and double | | arrow, but found 1. 306 | ERROR | [x] Each array item in a multi-line array | | declaration must end in a comma 307 | ERROR | [x] Closing parenthesis of a multi-line function | | call must be on a line by itself 308 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 308 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 310 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 3 spaces but found 1 space 310 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 310 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 310 | ERROR | [x] No space after opening parenthesis is prohibited 310 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 | | found 310 | ERROR | [x] No space before closing parenthesis is | | prohibited 310 | ERROR | [x] Opening brace must be the last content on the | | line 310 | ERROR | [x] Each PHP statement must be on a line by itself 313 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 316 | ERROR | [ ] Variable "$exisitingIds" is not in valid | | snake_case format, try "$exisiting_ids" 324 | ERROR | [ ] Variable "$foundIds" is not in valid snake_case | | format, try "$found_ids" 324 | ERROR | [ ] split() has been deprecated since PHP 5.3 and | | removed in PHP 7.0, please use explode(), | | str_split() or preg_split() instead. 324 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 324 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 325 | ERROR | [ ] Variable "$foundIds" is not in valid snake_case | | format, try "$found_ids" 326 | ERROR | [ ] Variable "$exisitingIds" is not in valid | | snake_case format, try "$exisiting_ids" 334 | ERROR | [ ] Processing form data without nonce verification. 335 | ERROR | [ ] Variable "$exisitingIds" is not in valid | | snake_case format, try "$exisiting_ids" 335 | ERROR | [ ] $_POST data not unslashed before sanitization. | | Use wp_unslash() or similar 335 | ERROR | [ ] Detected usage of a non-sanitized input | | variable: $_POST['existingIds'] 335 | ERROR | [ ] Processing form data without nonce verification. 339 | ERROR | [x] No space after opening parenthesis is prohibited 339 | ERROR | [ ] Variable "$exisitingIds" is not in valid | | snake_case format, try "$exisiting_ids" 339 | ERROR | [ ] Variable "$exisitingId" is not in valid | | snake_case format, try "$exisiting_id" 339 | ERROR | [x] No space before closing parenthesis is | | prohibited 340 | WARNING | [ ] Not using strict comparison for in_array; supply | | true for third argument. 340 | ERROR | [ ] Variable "$exisitingId" is not in valid | | snake_case format, try "$exisiting_id" 341 | ERROR | [ ] Variable "$exisitingId" is not in valid | | snake_case format, try "$exisiting_id" 348 | ERROR | [x] No space after opening parenthesis is prohibited 348 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 | | found 348 | ERROR | [x] No space before closing parenthesis is | | prohibited 348 | ERROR | [x] Opening brace must be the last content on the | | line 348 | ERROR | [x] Each PHP statement must be on a line by itself 350 | ERROR | [ ] Overriding WordPress globals is prohibited. | | Found assignment to $post 351 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 10 spaces but found 1 | | space 352 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 2 spaces but found 1 space 353 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 9 spaces but found 1 space 364 | ERROR | [ ] You must use "/**" style comments for a function | | comment 365 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 365 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 367 | WARNING | [ ] json_encode() is discouraged. Use | | wp_json_encode() instead. 367 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 367 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 374 | ERROR | [x] Expected 3 spaces after parameter type; 1 found 374 | ERROR | [ ] Parameter comment must end with a full stop 375 | ERROR | [ ] Parameter comment must end with a full stop 376 | ERROR | [x] Expected 5 spaces after parameter type; 1 found 376 | ERROR | [ ] Parameter comment must end with a full stop 383 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 398 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 5 spaces but found 1 space 399 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 5 spaces but found 1 space 400 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 6 spaces but found 1 space ---------------------------------------------------------------------- PHPCBF CAN FIX THE 67 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...largo/wp-content/plugins/link-roundups/inc/updates/functions.php ---------------------------------------------------------------------- FOUND 41 ERRORS AND 10 WARNINGS AFFECTING 25 LINES ---------------------------------------------------------------------- 1 | ERROR | [ ] Missing file doc comment 3 | ERROR | [ ] Doc comment for parameter "$to" missing 3 | ERROR | [ ] Doc comment for parameter "$from" missing 12 | ERROR | [x] No space found after comma in function call 13 | ERROR | [x] No space found after comma in function call 34 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 38 | ERROR | [x] Only one argument is allowed per line in a | | multi-line function call 40 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 2 spaces but found 1 space 53 | ERROR | [ ] Doc comment for parameter "$to" missing 53 | ERROR | [ ] Doc comment for parameter "$from" missing 68 | WARNING | [x] Array double arrow not aligned correctly; | | expected 12 space(s) between "'argo_link_url'" | | and double arrow, but found 1. 69 | WARNING | [x] Array double arrow not aligned correctly; | | expected 4 space(s) between | | "'argo_link_description'" and double arrow, but | | found 1. 70 | WARNING | [x] Array double arrow not aligned correctly; | | expected 9 space(s) between "'argo_link_source'" | | and double arrow, but found 1. 71 | ERROR | [x] Each array item in a multi-line array | | declaration must end in a comma 74 | ERROR | [x] Inline control structures are not allowed 75 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 75 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 79 | ERROR | [ ] Doc comment for parameter "$to" missing 79 | ERROR | [ ] Doc comment for parameter "$from" missing 96 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 96 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 104 | ERROR | [ ] Doc comment for parameter "$old_post_type" | | missing 104 | ERROR | [ ] Doc comment for parameter "$new_post_type" | | missing 111 | WARNING | [ ] Usage of a direct database call is discouraged. 111 | WARNING | [ ] Direct database call without caching detected. | | Consider using wp_cache_get() / wp_cache_set() | | or wp_cache_delete(). 111 | ERROR | [x] Opening parenthesis of a multi-line function | | call must be the last content on the line 115 | ERROR | [x] Multi-line function call not indented correctly; | | expected 4 spaces but found 8 115 | ERROR | [x] Space found before comma in function call 115 | ERROR | [x] Only one argument is allowed per line in a | | multi-line function call 115 | ERROR | [x] Only one argument is allowed per line in a | | multi-line function call 115 | ERROR | [x] Closing parenthesis of a multi-line function | | call must be on a line by itself 119 | ERROR | [ ] Doc comment for parameter "$old_meta" missing 119 | ERROR | [ ] Doc comment for parameter "$new_meta" missing 126 | WARNING | [ ] Usage of a direct database call is discouraged. 126 | WARNING | [ ] Direct database call without caching detected. | | Consider using wp_cache_get() / wp_cache_set() | | or wp_cache_delete(). 126 | ERROR | [x] Opening parenthesis of a multi-line function | | call must be the last content on the line 130 | ERROR | [x] Multi-line function call not indented correctly; | | expected 4 spaces but found 8 130 | ERROR | [x] Space found before comma in function call 130 | ERROR | [x] Only one argument is allowed per line in a | | multi-line function call 130 | ERROR | [x] Only one argument is allowed per line in a | | multi-line function call 130 | ERROR | [x] Closing parenthesis of a multi-line function | | call must be on a line by itself 134 | ERROR | [ ] Doc comment for parameter "$old_tax" missing 134 | ERROR | [ ] Doc comment for parameter "$new_tax" missing 141 | WARNING | [ ] Usage of a direct database call is discouraged. 141 | WARNING | [ ] Direct database call without caching detected. | | Consider using wp_cache_get() / wp_cache_set() | | or wp_cache_delete(). 141 | ERROR | [x] Opening parenthesis of a multi-line function | | call must be the last content on the line 145 | ERROR | [x] Multi-line function call not indented correctly; | | expected 4 spaces but found 8 145 | ERROR | [x] Space found before comma in function call 145 | ERROR | [x] Only one argument is allowed per line in a | | multi-line function call 145 | ERROR | [x] Only one argument is allowed per line in a | | multi-line function call 145 | ERROR | [x] Closing parenthesis of a multi-line function | | call must be on a line by itself ---------------------------------------------------------------------- PHPCBF CAN FIX THE 31 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...tes/largo/wp-content/plugins/link-roundups/inc/updates/index.php ---------------------------------------------------------------------- FOUND 106 ERRORS AND 29 WARNINGS AFFECTING 72 LINES ---------------------------------------------------------------------- 6 | ERROR | [ ] Missing @package tag in file comment 30 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 31 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 32 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 33 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 34 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 35 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 36 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 37 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 38 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 39 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 41 | WARNING | [ ] Words in hook names should be separated using | | underscores. Expected: 'lroundups_update_0_3', | | but found: 'lroundups_update_0.3'. 53 | WARNING | [ ] Words in hook names should be separated using | | underscores. Expected: | | 'lroundups_update_0_3_2', but found: | | 'lroundups_update_0.3.2'. 53 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 53 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 68 | ERROR | [x] Space after opening control structure is | | required 68 | ERROR | [x] No space before opening parenthesis is | | prohibited 68 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found 79 | ERROR | [x] There must be exactly one blank line before the | | tags in a doc comment 85 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 90 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 91 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 91 | ERROR | [ ] Use Yoda Condition checks, you must. 92 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 93 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 119 | ERROR | [x] Expected 1 space after "!"; 0 found 119 | WARNING | [ ] Processing form data without nonce verification. 119 | WARNING | [ ] Processing form data without nonce verification. 119 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 119 | ERROR | [ ] Use Yoda Condition checks, you must. 120 | ERROR | [x] Line indented incorrectly; expected 2 tabs, | | found 1 122 | ERROR | [x] Opening PHP tag must be on a line by itself 123 | ERROR | [x] Line indented incorrectly; expected 2 tabs, | | found 3 125 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '__'. 125 | ERROR | [ ] A gettext call containing placeholders was | | found, but was not accompanied by a | | "translators:" comment on the line above to | | clarify the meaning of the placeholders. 125 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 125 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 126 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | 'admin_url'. 126 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 126 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 128 | ERROR | [x] Line indented incorrectly; expected 2 tabs, | | found 3 130 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '__'. 130 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 130 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 131 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | 'admin_url'. 131 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 131 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 133 | ERROR | [x] Line indented incorrectly; expected 2 tabs, | | found 3 134 | ERROR | [x] Closing PHP tag must be on a line by itself 136 | ERROR | [x] Line indented incorrectly; expected at least 2 | | tabs, found 1 148 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 2 spaces but found 1 space 149 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 2 spaces but found 1 space 150 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 2 spaces but found 1 space 151 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 3 spaces but found 1 space 152 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 4 spaces but found 1 space 156 | ERROR | [x] Only one argument is allowed per line in a | | multi-line function call 156 | ERROR | [x] Only one argument is allowed per line in a | | multi-line function call 157 | ERROR | [x] Only one argument is allowed per line in a | | multi-line function call 157 | ERROR | [x] Only one argument is allowed per line in a | | multi-line function call 168 | ERROR | [x] Closing PHP tag must be on a line by itself 204 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 204 | ERROR | [x] Space before opening parenthesis of function | | call prohibited 206 | ERROR | [ ] Inline PHP statement must contain a single | | statement; 2 found 206 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 206 | ERROR | [x] String " " does not require double quotes; use | | single quotes instead 206 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | 'lroundups_version'. 206 | ERROR | [x] Each PHP statement must be on a line by itself 208 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 209 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 210 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 212 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 214 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 219 | ERROR | [x] Line indented incorrectly; expected at least 1 | | tabs, found 0 230 | WARNING | [ ] Processing form data without nonce verification. 230 | WARNING | [ ] Processing form data without nonce verification. 230 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 230 | ERROR | [ ] Use Yoda Condition checks, you must. 230 | ERROR | [x] No space before closing parenthesis is | | prohibited 231 | ERROR | [ ] Version parameter is not explicitly set or has | | been set to an equivalent of "false" for | | wp_enqueue_script; This means that the WordPress | | core version will be used which is not | | recommended for plugin or theme development. 232 | ERROR | [x] Only one argument is allowed per line in a | | multi-line function call 232 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 233 | ERROR | [x] Multi-line function call not indented correctly; | | expected 8 spaces but found 12 233 | ERROR | [x] Only one argument is allowed per line in a | | multi-line function call 233 | ERROR | [x] Only one argument is allowed per line in a | | multi-line function call 233 | ERROR | [x] Closing parenthesis of a multi-line function | | call must be on a line by itself 244 | ERROR | [x] No space after opening parenthesis is prohibited 244 | ERROR | [x] Expected 1 space before "!"; 0 found 244 | ERROR | [x] Expected 1 space after "!"; 0 found 244 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 244 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 244 | ERROR | [x] No space before closing parenthesis is | | prohibited 245 | WARNING | [ ] json_encode() is discouraged. Use | | wp_json_encode() instead. 245 | ERROR | [x] Opening parenthesis of a multi-line function | | call must be the last content on the line 246 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 246 | WARNING | [x] Array double arrow not aligned correctly; | | expected 2 space(s) between "'status'" and | | double arrow, but found 4. 247 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 247 | WARNING | [x] Array double arrow not aligned correctly; | | expected 1 space(s) between "'success'" and | | double arrow, but found 3. 247 | ERROR | [x] Each array item in a multi-line array | | declaration must end in a comma 248 | ERROR | [x] Closing parenthesis of a multi-line function | | call must be on a line by itself 252 | ERROR | [x] No space after opening parenthesis is prohibited 252 | ERROR | [x] Expected 1 space before "!"; 0 found 252 | ERROR | [x] Expected 1 space after "!"; 0 found 252 | ERROR | [x] No space before closing parenthesis is | | prohibited 253 | WARNING | [ ] json_encode() is discouraged. Use | | wp_json_encode() instead. 253 | ERROR | [x] Opening parenthesis of a multi-line function | | call must be the last content on the line 254 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 254 | WARNING | [x] Array double arrow not aligned correctly; | | expected 2 space(s) between "'status'" and | | double arrow, but found 4. 255 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 255 | WARNING | [x] Array double arrow not aligned correctly; | | expected 1 space(s) between "'success'" and | | double arrow, but found 3. 255 | ERROR | [x] Each array item in a multi-line array | | declaration must end in a comma 256 | ERROR | [x] Closing parenthesis of a multi-line function | | call must be on a line by itself 261 | ERROR | [x] No space after opening parenthesis is prohibited 261 | ERROR | [x] Expected 1 space before "!"; 0 found 261 | ERROR | [x] Expected 1 space after "!"; 0 found 261 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 261 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 261 | ERROR | [x] No space before closing parenthesis is | | prohibited 263 | WARNING | [ ] json_encode() is discouraged. Use | | wp_json_encode() instead. 263 | ERROR | [x] Opening parenthesis of a multi-line function | | call must be the last content on the line 264 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 264 | WARNING | [x] Array double arrow not aligned correctly; | | expected 2 space(s) between "'status'" and | | double arrow, but found 4. 265 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 265 | WARNING | [x] Array double arrow not aligned correctly; | | expected 1 space(s) between "'success'" and | | double arrow, but found 3. 265 | ERROR | [x] Each array item in a multi-line array | | declaration must end in a comma 266 | ERROR | [x] Closing parenthesis of a multi-line function | | call must be on a line by itself 269 | WARNING | [ ] json_encode() is discouraged. Use | | wp_json_encode() instead. 269 | ERROR | [x] Opening parenthesis of a multi-line function | | call must be the last content on the line 270 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 270 | WARNING | [x] Array double arrow not aligned correctly; | | expected 2 space(s) between "'status'" and | | double arrow, but found 4. 271 | ERROR | [x] Spaces must be used for mid-line alignment; tabs | | are not allowed 271 | WARNING | [x] Array double arrow not aligned correctly; | | expected 1 space(s) between "'success'" and | | double arrow, but found 3. 271 | ERROR | [x] Each array item in a multi-line array | | declaration must end in a comma 272 | ERROR | [x] Closing parenthesis of a multi-line function | | call must be on a line by itself 283 | WARNING | [x] "include_once" is a statement not a function; no | | parentheses are required 283 | WARNING | [x] File is being unconditionally included; use | | "require_once" instead ---------------------------------------------------------------------- PHPCBF CAN FIX THE 99 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...tes/largo/wp-content/plugins/link-roundups/inc/compatibility.php ---------------------------------------------------------------------- FOUND 33 ERRORS AND 1 WARNING AFFECTING 12 LINES ---------------------------------------------------------------------- 1 | ERROR | [ ] Missing file doc comment 13 | ERROR | [ ] Variable "$pageURL" is not in valid snake_case | | format, try "$page_u_r_l" 15 | ERROR | [x] Inline control structures are not allowed 15 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 16 | ERROR | [ ] Variable "$pageURL" is not in valid snake_case | | format, try "$page_u_r_l" 18 | ERROR | [ ] Variable "$pageURL" is not in valid snake_case | | format, try "$page_u_r_l" 20 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 20 | ERROR | [x] Expected 1 spaces before closing bracket; 0 found 20 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==). 20 | ERROR | [ ] Use Yoda Condition checks, you must. 21 | ERROR | [ ] Variable "$pageURL" is not in valid snake_case | | format, try "$page_u_r_l" 21 | ERROR | [ ] Detected usage of a possibly undefined | | superglobal array index: $_SERVER['SERVER_NAME']. | | Use isset() or empty() to check the index exists | | before using it 21 | ERROR | [ ] $_SERVER data not unslashed before sanitization. | | Use wp_unslash() or similar 21 | ERROR | [ ] Detected usage of a non-sanitized input variable: | | $_SERVER['SERVER_NAME'] 21 | ERROR | [ ] $_SERVER data not unslashed before sanitization. | | Use wp_unslash() or similar 21 | ERROR | [ ] Detected usage of a non-sanitized input variable: | | $_SERVER['SERVER_PORT'] 21 | ERROR | [ ] Detected usage of a possibly undefined | | superglobal array index: $_SERVER['REQUEST_URI']. | | Use isset() or empty() to check the index exists | | before using it 21 | ERROR | [ ] $_SERVER data not unslashed before sanitization. | | Use wp_unslash() or similar 21 | ERROR | [ ] Detected usage of a non-sanitized input variable: | | $_SERVER['REQUEST_URI'] 23 | ERROR | [ ] Variable "$pageURL" is not in valid snake_case | | format, try "$page_u_r_l" 23 | ERROR | [ ] Detected usage of a possibly undefined | | superglobal array index: $_SERVER['SERVER_NAME']. | | Use isset() or empty() to check the index exists | | before using it 23 | ERROR | [ ] $_SERVER data not unslashed before sanitization. | | Use wp_unslash() or similar 23 | ERROR | [ ] Detected usage of a non-sanitized input variable: | | $_SERVER['SERVER_NAME'] 23 | ERROR | [ ] Detected usage of a possibly undefined | | superglobal array index: $_SERVER['REQUEST_URI']. | | Use isset() or empty() to check the index exists | | before using it 23 | ERROR | [ ] $_SERVER data not unslashed before sanitization. | | Use wp_unslash() or similar 23 | ERROR | [ ] Detected usage of a non-sanitized input variable: | | $_SERVER['REQUEST_URI'] 26 | ERROR | [x] Space after opening control structure is required 26 | ERROR | [x] No space before opening parenthesis is prohibited 26 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found 26 | ERROR | [ ] Variable "$pageURL" is not in valid snake_case | | format, try "$page_u_r_l" 27 | ERROR | [ ] Variable "$newURL" is not in valid snake_case | | format, try "$new_u_r_l" 27 | ERROR | [ ] Variable "$pageURL" is not in valid snake_case | | format, try "$page_u_r_l" 29 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 30 | ERROR | [ ] Variable "$newURL" is not in valid snake_case | | format, try "$new_u_r_l" ---------------------------------------------------------------------- PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...k/sites/largo/wp-content/plugins/link-roundups/link-roundups.php ---------------------------------------------------------------------- FOUND 36 ERRORS AND 15 WARNINGS AFFECTING 23 LINES ---------------------------------------------------------------------- 2 | ERROR | [ ] You must use "/**" style comments for a file | | comment 2 | ERROR | [ ] Empty line required before block comment 30 | WARNING | [ ] error_log() found. Debug code should not | | normally be used in production. 33 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 33 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 45 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 53 | WARNING | [x] "require_once" is a statement not a function; no | | parentheses are required 53 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 53 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 54 | WARNING | [x] "require_once" is a statement not a function; no | | parentheses are required 54 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 54 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 59 | WARNING | [x] "require_once" is a statement not a function; no | | parentheses are required 59 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 59 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 60 | WARNING | [x] "require_once" is a statement not a function; no | | parentheses are required 60 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 60 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 61 | WARNING | [x] "require_once" is a statement not a function; no | | parentheses are required 61 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 61 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 66 | WARNING | [x] "require_once" is a statement not a function; no | | parentheses are required 66 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 66 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 71 | WARNING | [x] "require_once" is a statement not a function; no | | parentheses are required 71 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 71 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 76 | WARNING | [x] "require_once" is a statement not a function; no | | parentheses are required 76 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 76 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found 77 | ERROR | [x] Functions must not contain multiple empty lines | | in a row; found 2 empty lines 89 | WARNING | [x] "require_once" is a statement not a function; no | | parentheses are required 102 | WARNING | [x] Equals sign not aligned with surrounding | | assignments; expected 6 spaces but found 1 space 105 | ERROR | [x] Only one argument is allowed per line in a | | multi-line function call 106 | ERROR | [x] Only one argument is allowed per line in a | | multi-line function call 106 | ERROR | [x] Only one argument is allowed per line in a | | multi-line function call 110 | ERROR | [x] Only one argument is allowed per line in a | | multi-line function call 111 | ERROR | [x] Only one argument is allowed per line in a | | multi-line function call 111 | ERROR | [x] Only one argument is allowed per line in a | | multi-line function call 114 | ERROR | [ ] Resource version not set in call to | | wp_register_style(). This means new versions of | | the style will not always be loaded due to | | browser caching. 117 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 117 | ERROR | [ ] Use Yoda Condition checks, you must. 117 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 117 | ERROR | [ ] Use Yoda Condition checks, you must. 117 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 117 | ERROR | [ ] Use Yoda Condition checks, you must. 122 | ERROR | [x] Inline control structures are not allowed 122 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). 122 | ERROR | [ ] Use Yoda Condition checks, you must. 123 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 123 | ERROR | [x] Expected 1 spaces before closing bracket; 0 | | found ---------------------------------------------------------------------- PHPCBF CAN FIX THE 38 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...tes/largo/wp-content/plugins/link-roundups/templates/options.php ---------------------------------------------------------------------- FOUND 68 ERRORS AND 2 WARNINGS AFFECTING 42 LINES ---------------------------------------------------------------------- 2 | ERROR | [ ] Missing file doc comment 2 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 6 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 10 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '__'. 10 | ERROR | [ ] A gettext call containing placeholders was found, | | but was not accompanied by a "translators:" | | comment on the line above to clarify the meaning | | of the placeholders. 13 | ERROR | [x] Line indented incorrectly; expected 2 tabs, found | | 1 15 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 15 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 21 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 22 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 25 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '__'. 25 | ERROR | [ ] A gettext call containing placeholders was found, | | but was not accompanied by a "translators:" | | comment on the line above to clarify the meaning | | of the placeholders. 28 | ERROR | [x] Line indented incorrectly; expected 5 tabs, found | | 4 29 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 30 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 31 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | 'get_option'. 32 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 33 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | 'get_option'. 35 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 36 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 38 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | 'get_site_url'. 39 | ERROR | [x] Opening PHP tag must be on a line by itself 42 | ERROR | [x] Space after opening control structure is required 42 | ERROR | [x] No space before opening parenthesis is prohibited 42 | ERROR | [x] No space after opening parenthesis is prohibited 42 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found 42 | ERROR | [x] Expected 1 space before "!"; 0 found 42 | ERROR | [x] Expected 1 space after "!"; 0 found 42 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 42 | ERROR | [x] Expected 1 spaces before closing bracket; 0 found 42 | ERROR | [x] No space before closing parenthesis is prohibited 43 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 45 | ERROR | [ ] Inline comments must end in full-stops, | | exclamation marks, or question marks 47 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$current_slug'. 47 | ERROR | [x] Closing PHP tag must be on a line by itself 50 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | '$custom_slug'. 51 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 52 | ERROR | [x] Tabs must be used to indent lines; spaces are not | | allowed 53 | ERROR | [x] Tabs must be used to indent lines; spaces are not | | allowed 54 | ERROR | [x] Tabs must be used to indent lines; spaces are not | | allowed 54 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '__'. 54 | ERROR | [ ] A gettext call containing placeholders was found, | | but was not accompanied by a "translators:" | | comment on the line above to clarify the meaning | | of the placeholders. 55 | ERROR | [x] Tabs must be used to indent lines; spaces are not | | allowed 55 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | 'admin_url'. 56 | ERROR | [x] Tabs must be used to indent lines; spaces are not | | allowed 57 | ERROR | [x] Tabs must be used to indent lines; spaces are not | | allowed 57 | ERROR | [x] Line indented incorrectly; expected 5 tabs, found | | 4 60 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 61 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 62 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==). 62 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | 'get_option'. 62 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found | | 'SavedLinks'. 66 | WARNING | [ ] json_encode() is discouraged. Use | | wp_json_encode() instead. 69 | 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 (like esc_html_e() or esc_attr_e()), | | found '_e'. 76 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 76 | ERROR | [x] Expected 1 spaces before closing bracket; 0 found 79 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. 81 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '__'. 81 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 81 | ERROR | [x] Expected 1 spaces before closing bracket; 0 found 82 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '__'. 82 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 82 | ERROR | [x] Expected 1 spaces before closing bracket; 0 found 83 | ERROR | [ ] All output should be run through an escaping | | function (see the Security sections in the | | WordPress Developer Handbooks), found '__'. 83 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found 83 | ERROR | [x] Expected 1 spaces before closing bracket; 0 found 83 | ERROR | [x] Closing PHP tag must be on a line by itself 87 | ERROR | [x] Inline PHP statement must end with a semicolon 87 | ERROR | [ ] All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), | | found '_e'. ---------------------------------------------------------------------- PHPCBF CAN FIX THE 29 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- Time: 4.05 secs; Memory: 26MB ```
benlk commented 5 years ago
Outdated sniff ``` FILE: ...rgo/wp-content/plugins/link-roundups/inc/compatibility-largo.php ---------------------------------------------------------------------- FOUND 8 ERRORS AND 2 WARNINGS AFFECTING 5 LINES ---------------------------------------------------------------------- 7 | ERROR | Missing @package tag in file comment 9 | ERROR | Doc comment for parameter "$partial" missing 9 | ERROR | Doc comment for parameter "$post_query" missing 17 | WARNING | Found: ==. Use strict comparisons (=== or !==). 17 | ERROR | Use Yoda Condition checks, you must. 24 | ERROR | Doc comment for parameter "$partial" missing 24 | ERROR | Doc comment for parameter "$post_type" missing 24 | ERROR | Doc comment for parameter "$context" missing 28 | WARNING | Found: ==. Use strict comparisons (=== or !==). 28 | ERROR | Use Yoda Condition checks, you must. ---------------------------------------------------------------------- FILE: ...ugins/link-roundups/inc/saved-links/class-saved-links-widget.php ---------------------------------------------------------------------- FOUND 66 ERRORS AND 7 WARNINGS AFFECTING 39 LINES ---------------------------------------------------------------------- 2 | ERROR | You must use "/**" style comments for a file comment 2 | ERROR | Empty line required before block comment 7 | ERROR | Class name must begin with a capital letter 7 | ERROR | Class name is not valid; consider Saved_Links_Widget | | instead 7 | ERROR | You must use "/**" style comments for a class | | comment 9 | ERROR | Missing doc comment for function __construct() 9 | ERROR | Visibility must be declared on method "__construct" 17 | ERROR | Missing doc comment for function widget() 17 | ERROR | Visibility must be declared on method "widget" 19 | ERROR | extract() usage is highly discouraged, due to the | | complexity and unintended issues it might cause. 21 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 24 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$before_widget'. 27 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$before_title'. 27 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$title'. 27 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$after_title'. 43 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 52 | WARNING | Found: ==. Use strict comparisons (=== or !==). 52 | ERROR | Use Yoda Condition checks, you must. 64 | WARNING | Found: ==. Use strict comparisons (=== or !==). 64 | ERROR | Use Yoda Condition checks, you must. 71 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$output'. 78 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found 'largo_trim_sentences'. 78 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$custom'. 89 | WARNING | Found: ==. Use strict comparisons (=== or !==). 89 | ERROR | Use Yoda Condition checks, you must. 97 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$lr_source'. 104 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 107 | WARNING | Found: !=. Use strict comparisons (=== or !==). 107 | ERROR | Use Yoda Condition checks, you must. 109 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$instance'. 109 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$instance'. 112 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$after_widget'. 115 | ERROR | Missing doc comment for function update() 115 | ERROR | Visibility must be declared on method "update" 117 | WARNING | strip_tags() is discouraged. Use the more | | comprehensive wp_strip_all_tags() instead. 118 | WARNING | strip_tags() is discouraged. Use the more | | comprehensive wp_strip_all_tags() instead. 119 | WARNING | strip_tags() is discouraged. Use the more | | comprehensive wp_strip_all_tags() instead. 127 | ERROR | Missing doc comment for function form() 127 | ERROR | Visibility must be declared on method "form" 141 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$this'. 141 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 142 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$this'. 142 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$this'. 142 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$instance'. 146 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$this'. 146 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 147 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$this'. 147 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$this'. 147 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$instance'. 151 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$this'. 151 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$this'. 152 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$this'. 152 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 157 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$this'. 157 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 158 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$this'. 158 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$this'. 158 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$instance'. 163 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$this'. 163 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$this'. 164 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$this'. 164 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 167 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 169 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$this'. 169 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 170 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$this'. 170 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$this'. 170 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$instance'. 174 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$this'. 174 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 175 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$this'. 175 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$this'. 175 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$instance'. ---------------------------------------------------------------------- FILE: ...tent/plugins/link-roundups/inc/saved-links/class-saved-links.php ---------------------------------------------------------------------- FOUND 130 ERRORS AND 17 WARNINGS AFFECTING 101 LINES ---------------------------------------------------------------------- 1 | ERROR | Class file names should be based on the class name | | with "class-" prepended. Expected | | class-savedlinks.php, but found | | class-saved-links.php. 1 | ERROR | Missing file doc comment 11 | ERROR | Missing member variable doc comment 23 | ERROR | Comment closer must be on a new line 89 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 98 | ERROR | Missing doc comment for function | | change_publish_button() 102 | WARNING | Found: ==. Use strict comparisons (=== or !==). 102 | ERROR | Use Yoda Condition checks, you must. 103 | WARNING | Found: ==. Use strict comparisons (=== or !==). 103 | ERROR | Use Yoda Condition checks, you must. 180 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 181 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$link_url'. 185 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 199 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 200 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$link_source'. 204 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 205 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$link_img_src'. 206 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$link_img_src'. 207 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 213 | ERROR | Doc comment for parameter "$post_id" missing 220 | ERROR | Processing form data without nonce verification. 221 | ERROR | Processing form data without nonce verification. 221 | ERROR | $_POST data not unslashed before sanitization. Use | | wp_unslash() or similar 221 | ERROR | Detected usage of a non-sanitized input variable: | | $_POST['post_ID'] 221 | ERROR | Processing form data without nonce verification. 221 | ERROR | $_POST data not unslashed before sanitization. Use | | wp_unslash() or similar 221 | ERROR | Detected usage of a non-sanitized input variable: | | $_POST['lr_url'] 221 | ERROR | Processing form data without nonce verification. 224 | ERROR | Processing form data without nonce verification. 225 | ERROR | Processing form data without nonce verification. 225 | ERROR | $_POST data not unslashed before sanitization. Use | | wp_unslash() or similar 225 | ERROR | Detected usage of a non-sanitized input variable: | | $_POST['post_ID'] 225 | ERROR | Processing form data without nonce verification. 225 | ERROR | $_POST data not unslashed before sanitization. Use | | wp_unslash() or similar 225 | ERROR | Detected usage of a non-sanitized input variable: | | $_POST['lr_desc'] 225 | ERROR | Processing form data without nonce verification. 228 | ERROR | Processing form data without nonce verification. 229 | ERROR | Processing form data without nonce verification. 229 | ERROR | $_POST data not unslashed before sanitization. Use | | wp_unslash() or similar 229 | ERROR | Detected usage of a non-sanitized input variable: | | $_POST['post_ID'] 229 | ERROR | Processing form data without nonce verification. 229 | ERROR | $_POST data not unslashed before sanitization. Use | | wp_unslash() or similar 229 | ERROR | Detected usage of a non-sanitized input variable: | | $_POST['lr_source'] 229 | ERROR | Processing form data without nonce verification. 232 | ERROR | Processing form data without nonce verification. 232 | ERROR | $_POST data not unslashed before sanitization. Use | | wp_unslash() or similar 232 | ERROR | Detected usage of a non-sanitized input variable: | | $_POST['lr_img'] 232 | ERROR | Processing form data without nonce verification. 233 | ERROR | Detected usage of a possibly undefined superglobal | | array index: $_POST['argo_link_img_url']. Use | | isset() or empty() to check the index exists before | | using it 233 | ERROR | $_POST data not unslashed before sanitization. Use | | wp_unslash() or similar 233 | ERROR | Detected usage of a non-sanitized input variable: | | $_POST['argo_link_img_url'] 233 | ERROR | Processing form data without nonce verification. 235 | ERROR | Processing form data without nonce verification. 235 | ERROR | $_POST data not unslashed before sanitization. Use | | wp_unslash() or similar 235 | ERROR | Detected usage of a non-sanitized input variable: | | $_POST['post_ID'] 235 | ERROR | Processing form data without nonce verification. 245 | ERROR | Parameter comment must end with a full stop 246 | ERROR | Parameter comment must end with a full stop 247 | ERROR | Parameter comment must end with a full stop 270 | WARNING | Silencing errors is strongly discouraged. Use proper | | error checking instead. Found: @unlink( | | $file_array[... 277 | ERROR | Doc comment for parameter "$columns" missing 295 | ERROR | Doc comment for parameter "$column" missing 307 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$custom'. 311 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$custom'. 322 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$term_links'. 369 | ERROR | Content missing for @see tag in function comment 376 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 380 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 381 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 385 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 396 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found 'add_query_arg'. 409 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '__'. 421 | ERROR | Content missing for @see tag in function comment 429 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 434 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 435 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 436 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 440 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 441 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 442 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 445 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found 'Save_To_Site_Button'. 445 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 448 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 454 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 461 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 462 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 465 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found 'Save_To_Site_Button'. 465 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 493 | ERROR | Missing doc comment for function | | add_saved_links_widget() 497 | ERROR | Missing doc comment for function | | add_link_roundups_widget() 501 | ERROR | Doc comment for parameter "$url" missing 501 | ERROR | Doc comment for parameter "$post" missing 509 | ERROR | Doc comment for parameter $content does not match | | actual variable name $url 514 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 516 | ERROR | Variable "$remoteUrl" is not in valid snake_case | | format, try "$remote_url" 518 | ERROR | Variable "$remoteUrl" is not in valid snake_case | | format, try "$remote_url" 518 | WARNING | Found: ==. Use strict comparisons (=== or !==). 525 | ERROR | Variable "$remoteUrl" is not in valid snake_case | | format, try "$remote_url" 528 | ERROR | Doc comment for parameter "$author" missing 537 | ERROR | Doc comment for parameter $content does not match | | actual variable name $author 540 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 548 | WARNING | Found: ==. Use strict comparisons (=== or !==). 556 | ERROR | Doc comment for parameter "$link" missing 561 | ERROR | Doc comment for parameter $content does not match | | actual variable name $link 566 | WARNING | Found: ==. Use strict comparisons (=== or !==). 571 | WARNING | This comment is 72% valid code; is this commented | | out code? 596 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 607 | WARNING | Found: ==. Use strict comparisons (=== or !==). 627 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 628 | WARNING | Found: ==. Use strict comparisons (=== or !==). 635 | ERROR | Doc comment for parameter "$post" missing 635 | ERROR | Doc comment for parameter "$link_class" missing 635 | ERROR | Doc comment for parameter "$attrs" missing 643 | ERROR | Doc comment for parameter $content does not match | | actual variable name $post 654 | WARNING | Found: ==. Use strict comparisons (=== or !==). 654 | ERROR | Use Yoda Condition checks, you must. 659 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 701 | WARNING | Found: ==. Use strict comparisons (=== or !==). 701 | ERROR | Use Yoda Condition checks, you must. 720 | ERROR | Doc comment for parameter "$atts" missing 737 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 738 | WARNING | Found: !=. Use strict comparisons (=== or !==). 738 | ERROR | Use Yoda Condition checks, you must. 739 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 745 | ERROR | Doc comment for parameter "$post" missing 754 | ERROR | Doc comment for parameter $content does not match | | actual variable name $post 762 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$custom'. 764 | WARNING | Found: !=. Use strict comparisons (=== or !==). 764 | ERROR | Use Yoda Condition checks, you must. 765 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '__'. 766 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$custom'. 766 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$custom'. 766 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$custom'. 779 | ERROR | You must use "/**" style comments for a function | | comment 786 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 787 | WARNING | wp_reset_query() is discouraged. Use the | | wp_reset_postdata() instead. 792 | ERROR | Doc comment for parameter "$type" missing 792 | ERROR | Doc comment for parameter "$message" missing 798 | WARNING | urlencode() should only be used when dealing with | | legacy applications rawurlencode() should now be | | used instead. See | | http://php.net/manual/en/function.rawurlencode.php | | and http://www.faqs.org/rfcs/rfc3986.html 802 | ERROR | Doc comment for parameter "$location" missing 820 | WARNING | Processing form data without nonce verification. 824 | WARNING | Processing form data without nonce verification. 824 | ERROR | $_GET data not unslashed before sanitization. Use | | wp_unslash() or similar 824 | ERROR | Detected usage of a non-sanitized input variable: | | $_GET['lroundups_notices'] 826 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$notice'. 826 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found 'urldecode'. 831 | ERROR | Missing doc comment for function | | lroundups_default_link_html() ---------------------------------------------------------------------- FILE: ...s/link-roundups/inc/saved-links/class-saved-links-list-table.php ---------------------------------------------------------------------- FOUND 66 ERRORS AND 14 WARNINGS AFFECTING 59 LINES ---------------------------------------------------------------------- 9 | ERROR | There must be exactly one blank line after the file | | comment 35 | ERROR | Visibility must be declared on method "__construct" 53 | ERROR | Visibility must be declared on method "bulk_actions" 54 | WARNING | Processing form data without nonce verification. 59 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 61 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 64 | ERROR | Use Yoda Condition checks, you must. 65 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 69 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 71 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 72 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 73 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 74 | 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 (like esc_html_e() or esc_attr_e()), found | | '_e'. 89 | ERROR | Use Yoda Condition checks, you must. 93 | WARNING | strip_tags() is discouraged. Use the more | | comprehensive wp_strip_all_tags() instead. 93 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found 'strip_tags'. 106 | ERROR | Visibility must be declared on method "get_columns" 107 | ERROR | Assignments must be the first block of code on a | | line 108 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 122 | ERROR | Visibility must be declared on method | | "get_sortable_columns" 123 | ERROR | Assignments must be the first block of code on a | | line 137 | ERROR | Visibility must be declared on method | | "prepare_items" 139 | ERROR | Empty line not required before block comment 143 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 144 | WARNING | Processing form data without nonce verification. 144 | WARNING | Processing form data without nonce verification. 144 | ERROR | $_REQUEST data not unslashed before sanitization. | | Use wp_unslash() or similar 144 | ERROR | Detected usage of a non-sanitized input variable: | | $_REQUEST['posts_per_page'] 145 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 146 | WARNING | Processing form data without nonce verification. 146 | WARNING | Processing form data without nonce verification. 146 | ERROR | $_REQUEST data not unslashed before sanitization. | | Use wp_unslash() or similar 146 | ERROR | Detected usage of a non-sanitized input variable: | | $_REQUEST['lroundups_page'] 153 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 159 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 160 | WARNING | Processing form data without nonce verification. 161 | WARNING | Processing form data without nonce verification. 191 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 194 | WARNING | Processing form data without nonce verification. 194 | WARNING | Processing form data without nonce verification. 194 | ERROR | $_REQUEST data not unslashed before sanitization. | | Use wp_unslash() or similar 194 | ERROR | Detected usage of a non-sanitized input variable: | | $_REQUEST['orderby'] 195 | WARNING | Processing form data without nonce verification. 195 | WARNING | Processing form data without nonce verification. 195 | ERROR | $_REQUEST data not unslashed before sanitization. | | Use wp_unslash() or similar 195 | ERROR | Detected usage of a non-sanitized input variable: | | $_REQUEST['order'] 207 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 209 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 218 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 224 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 227 | ERROR | Empty line required before block comment 228 | WARNING | Found precision alignment of 1 spaces. 245 | ERROR | You must use "/**" style comments for a function | | comment 245 | ERROR | Visibility must be declared on method "single_row" 249 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '""'. 257 | WARNING | Not using strict comparison for in_array; supply | | true for third argument. 266 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$this'. 266 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 270 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '""'. 271 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$post'. 272 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$this'. 272 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$column_name'. 272 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$primary'. 276 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '""'. 277 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found 'the_author_meta'. 281 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '""'. 286 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '""'. 295 | ERROR | Doc comment for parameter "$post" missing 298 | ERROR | Missing parameter name 301 | ERROR | Visibility must be declared on method "column_cb" 303 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$post'. 305 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '__'. 305 | ERROR | A gettext call containing placeholders was found, | | but was not accompanied by a "translators:" comment | | on the line above to clarify the meaning of the | | placeholders. 305 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '_draft_or_post_title'. 308 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$post'. 313 | ERROR | Doc comment for parameter "$item" missing 313 | ERROR | Doc comment for parameter "$column_name" missing 313 | ERROR | Doc comment for parameter "$primary" missing 322 | ERROR | Doc comment for parameter "$which" missing ---------------------------------------------------------------------- FILE: ...ns/link-roundups/inc/link-roundups/class-save-to-site-button.php ---------------------------------------------------------------------- FOUND 59 ERRORS AND 7 WARNINGS AFFECTING 38 LINES ---------------------------------------------------------------------- 10 | ERROR | Missing @package tag in file comment 22 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 26 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 27 | ERROR | Variable "$URL" is not in valid snake_case format, | | try "$u_r_l" 27 | WARNING | parse_url() is discouraged because of inconsistency | | in the output across PHP versions; use | | wp_parse_url() instead. 27 | ERROR | Detected usage of a possibly undefined superglobal | | array index: $_SERVER['REQUEST_URI']. Use isset() or | | empty() to check the index exists before using it 27 | ERROR | $_SERVER data not unslashed before sanitization. Use | | wp_unslash() or similar 27 | ERROR | Detected usage of a non-sanitized input variable: | | $_SERVER['REQUEST_URI'] 28 | ERROR | Variable "$newURL" is not in valid snake_case | | format, try "$new_u_r_l" 28 | ERROR | Variable "$URL" is not in valid snake_case format, | | try "$u_r_l" 30 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 31 | ERROR | Variable "$newURL" is not in valid snake_case | | format, try "$new_u_r_l" 34 | ERROR | Missing doc comment for class Save_To_Site_Button 36 | ERROR | Missing member variable doc comment 37 | ERROR | Missing member variable doc comment 38 | ERROR | Missing member variable doc comment 39 | ERROR | Missing member variable doc comment 40 | ERROR | Member variable "$imgUrl" is not in valid snake_case | | format, try "$img_url" 40 | ERROR | Missing member variable doc comment 41 | ERROR | Class constants must be uppercase; expected | | PLUGIN_DOMAIN but found plugin_domain 49 | WARNING | Processing form data without nonce verification. 77 | WARNING | get_shortcut_link() has been deprecated since | | WordPress version 4.9.0. 102 | ERROR | Visibility must be declared on method "load" 103 | ERROR | Detected usage of a possibly undefined superglobal | | array index: $_POST['_meta']. Use isset() or empty() | | to check the index exists before using it 103 | ERROR | $_POST data not unslashed before sanitization. Use | | wp_unslash() or similar 103 | ERROR | Detected usage of a non-sanitized input variable: | | $_POST['_meta'] 103 | ERROR | Processing form data without nonce verification. 104 | ERROR | Detected usage of a possibly undefined superglobal | | array index: $_POST['_links']. Use isset() or | | empty() to check the index exists before using it 104 | ERROR | $_POST data not unslashed before sanitization. Use | | wp_unslash() or similar 104 | ERROR | Detected usage of a non-sanitized input variable: | | $_POST['_links'] 104 | ERROR | Processing form data without nonce verification. 105 | ERROR | Detected usage of a possibly undefined superglobal | | array index: $_POST['_images']. Use isset() or | | empty() to check the index exists before using it 105 | ERROR | $_POST data not unslashed before sanitization. Use | | wp_unslash() or similar 105 | ERROR | Detected usage of a non-sanitized input variable: | | $_POST['_images'] 105 | ERROR | Processing form data without nonce verification. 106 | ERROR | Detected usage of a possibly undefined superglobal | | array index: $_POST['_embeds']. Use isset() or | | empty() to check the index exists before using it 106 | ERROR | $_POST data not unslashed before sanitization. Use | | wp_unslash() or similar 106 | ERROR | Detected usage of a non-sanitized input variable: | | $_POST['_embeds'] 106 | ERROR | Processing form data without nonce verification. 108 | WARNING | Processing form data without nonce verification. 108 | WARNING | Processing form data without nonce verification. 108 | ERROR | $_GET data not unslashed before sanitization. Use | | wp_unslash() or similar 108 | ERROR | Detected usage of a non-sanitized input variable: | | $_GET['u'] 111 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 116 | ERROR | Processing form data without nonce verification. 116 | WARNING | strip_tags() is discouraged. Use the more | | comprehensive wp_strip_all_tags() instead. 116 | ERROR | $_POST data not unslashed before sanitization. Use | | wp_unslash() or similar 116 | ERROR | Detected usage of a non-sanitized input variable: | | $_POST['t'] 116 | ERROR | Processing form data without nonce verification. 120 | ERROR | Processing form data without nonce verification. 121 | ERROR | $_POST data not unslashed before sanitization. Use | | wp_unslash() or similar 121 | ERROR | Detected usage of a non-sanitized input variable: | | $_POST['s'] 121 | ERROR | Processing form data without nonce verification. 125 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 133 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 138 | WARNING | parse_url() is discouraged because of inconsistency | | in the output across PHP versions; use | | wp_parse_url() instead. 142 | ERROR | Object property "$imgUrl" is not in valid snake_case | | format, try "$img_url" 144 | ERROR | Object property "$imgUrl" is not in valid snake_case | | format, try "$img_url" 171 | ERROR | Doc comment for parameter "$title" missing 182 | ERROR | Doc comment for parameter "$description" missing 193 | ERROR | Doc comment for parameter "$link" missing 204 | ERROR | Doc comment for parameter "$source" missing 215 | ERROR | Doc comment for parameter "$imgUrl" missing 222 | ERROR | Method name "default_imgUrl" in class | | Save_To_Site_Button is not in snake case format, try | | "default_img_url" 222 | ERROR | Variable "$imgUrl" is not in valid snake_case | | format, try "$img_url" 223 | ERROR | Object property "$imgUrl" is not in valid snake_case | | format, try "$img_url" ---------------------------------------------------------------------- FILE: .../plugins/link-roundups/inc/link-roundups/class-link-roundups.php ---------------------------------------------------------------------- FOUND 48 ERRORS AND 4 WARNINGS AFFECTING 35 LINES ---------------------------------------------------------------------- 1 | ERROR | Class file names should be based on the class name | | with "class-" prepended. Expected | | class-linkroundups.php, but found | | class-link-roundups.php. 14 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 15 | ERROR | You must use "/**" style comments for a function | | comment 17 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 20 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 23 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 34 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 38 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 40 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 41 | ERROR | You must use "/**" style comments for a function | | comment 42 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 53 | WARNING | Not using strict comparison for in_array; supply | | true for third argument. 54 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 58 | ERROR | Use Yoda Condition checks, you must. 59 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 63 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 127 | WARNING | Found: !=. Use strict comparisons (=== or !==). 127 | ERROR | Use Yoda Condition checks, you must. 138 | ERROR | You must use "/**" style comments for a function | | comment 144 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 154 | ERROR | You must use "/**" style comments for a function | | comment 155 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 203 | ERROR | Doc comment for parameter "$post_id" missing 213 | ERROR | Empty IF statement detected 213 | ERROR | Processing form data without nonce verification. 214 | WARNING | This comment is 74% valid code; is this commented | | out code? 214 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 216 | ERROR | Processing form data without nonce verification. 217 | ERROR | Processing form data without nonce verification. 217 | ERROR | Detected usage of a possibly undefined superglobal | | array index: $_POST['post_ID']. Use isset() or | | empty() to check the index exists before using it 217 | ERROR | $_POST data not unslashed before sanitization. Use | | wp_unslash() or similar 217 | ERROR | Detected usage of a non-sanitized input variable: | | $_POST['post_ID'] 217 | ERROR | Processing form data without nonce verification. 217 | ERROR | $_POST data not unslashed before sanitization. Use | | wp_unslash() or similar 217 | ERROR | Detected usage of a non-sanitized input variable: | | $_POST['lr_url'] 217 | ERROR | Processing form data without nonce verification. 219 | ERROR | Processing form data without nonce verification. 220 | ERROR | Processing form data without nonce verification. 220 | ERROR | Detected usage of a possibly undefined superglobal | | array index: $_POST['post_ID']. Use isset() or | | empty() to check the index exists before using it 220 | ERROR | $_POST data not unslashed before sanitization. Use | | wp_unslash() or similar 220 | ERROR | Detected usage of a non-sanitized input variable: | | $_POST['post_ID'] 220 | ERROR | Processing form data without nonce verification. 220 | ERROR | $_POST data not unslashed before sanitization. Use | | wp_unslash() or similar 220 | ERROR | Detected usage of a non-sanitized input variable: | | $_POST['lr_desc'] 220 | ERROR | Processing form data without nonce verification. 239 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 243 | ERROR | Missing doc comment for function | | register_mysettings() 244 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 252 | ERROR | Missing doc comment for function | | build_lroundups_options_page() 253 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 259 | WARNING | Processing form data without nonce verification. 263 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks ---------------------------------------------------------------------- FILE: ...s/link-roundups/inc/link-roundups/class-link-roundups-widget.php ---------------------------------------------------------------------- FOUND 50 ERRORS AND 4 WARNINGS AFFECTING 30 LINES ---------------------------------------------------------------------- 1 | ERROR | Missing file doc comment 6 | ERROR | Class name must begin with a capital letter 6 | ERROR | Class name is not valid; consider | | Link_Roundups_Widget instead 8 | ERROR | Missing doc comment for function __construct() 8 | ERROR | Visibility must be declared on method "__construct" 17 | ERROR | Missing doc comment for function widget() 17 | ERROR | Visibility must be declared on method "widget" 18 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 21 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$args'. 24 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$args'. 24 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$title'. 24 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$args'. 34 | WARNING | Found: !=. Use strict comparisons (=== or !==). 34 | ERROR | Use Yoda Condition checks, you must. 45 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 47 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 49 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 51 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$output'. 58 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 61 | WARNING | Found: !=. Use strict comparisons (=== or !==). 61 | ERROR | Use Yoda Condition checks, you must. 63 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$instance'. 63 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$instance'. 67 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$args'. 70 | ERROR | Missing doc comment for function update() 70 | ERROR | Visibility must be declared on method "update" 72 | WARNING | strip_tags() is discouraged. Use the more | | comprehensive wp_strip_all_tags() instead. 73 | WARNING | strip_tags() is discouraged. Use the more | | comprehensive wp_strip_all_tags() instead. 80 | ERROR | Missing doc comment for function form() 80 | ERROR | Visibility must be declared on method "form" 93 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$this'. 93 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 94 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$this'. 94 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$this'. 94 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$instance'. 98 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$this'. 98 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 99 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$this'. 99 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$this'. 99 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$instance'. 103 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$this'. 103 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 118 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 118 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 120 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$this'. 120 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 121 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$this'. 121 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$this'. 121 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$instance'. 125 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$this'. 125 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 126 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$this'. 126 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$this'. 126 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '$instance'. ---------------------------------------------------------------------- FILE: ...s/link-roundups/inc/link-roundups/class-link-roundups-editor.php ---------------------------------------------------------------------- FOUND 40 ERRORS AND 49 WARNINGS AFFECTING 76 LINES ---------------------------------------------------------------------- 1 | ERROR | Class file names should be based on the class name | | with "class-" prepended. Expected | | class-linkroundupseditor.php, but found | | class-link-roundups-editor.php. 1 | ERROR | Missing file doc comment 3 | ERROR | Missing doc comment for class LinkRoundupsEditor 5 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 6 | ERROR | You must use "/**" style comments for a function | | comment 16 | ERROR | Doc comment for parameter "$attrs" missing 41 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 79 | ERROR | Doc comment for parameter "$plugins" missing 97 | ERROR | Resource version not set in call to | | wp_register_style(). This means new versions of the | | style will not always be loaded due to browser | | caching. 100 | WARNING | In footer ($in_footer) is not set explicitly | | wp_register_script; It is recommended to load | | scripts in the footer. Please set this value to | | `true` to load it in the footer, or explicitly | | `false` if it should be loaded in the header. 100 | ERROR | Resource version not set in call to | | wp_register_script(). This means new versions of the | | script will not always be loaded due to browser | | caching. 104 | WARNING | In footer ($in_footer) is not set explicitly | | wp_register_script; It is recommended to load | | scripts in the footer. Please set this value to | | `true` to load it in the footer, or explicitly | | `false` if it should be loaded in the header. 104 | ERROR | Resource version not set in call to | | wp_register_script(). This means new versions of the | | script will not always be loaded due to browser | | caching. 126 | WARNING | Found: ==. Use strict comparisons (=== or !==). 126 | ERROR | Use Yoda Condition checks, you must. 126 | WARNING | Found: ==. Use strict comparisons (=== or !==). 126 | ERROR | Use Yoda Condition checks, you must. 131 | WARNING | json_encode() is discouraged. Use wp_json_encode() | | instead. 148 | WARNING | Possible use of ASP style short opening tags | | detected; found: <%= content %><% } %>
| | 151 | WARNING | Possible use of ASP style opening tags detected; | | found: <% _.each(actions, function(v, k) { %> | | 152 | WARNING | Possible use of ASP style short opening tags | | detected; found: <%= k %> button button-primary"><%= | | k %> | | 158 | WARNING | Possible use of ASP style short opening tags | | detected; found: <%= name %> | | 159 | WARNING | Possible use of ASP style short opening tags | | detected; found: <%= name %>" block.

| | 165 | WARNING | Possible use of ASP style opening tags detected; | | found: <% if (hasPosts) { %>loading<% } else { %>... 166 | WARNING | Possible use of ASP style opening tags detected; | | found: <% if (hasPosts) { %>Loading...<% } else {... 184 | WARNING | Possible use of ASP style opening tags detected; | | found: <% posts.each(function(post, idx) { %> | | 185 | WARNING | Possible use of ASP style short opening tags | | detected; found: <%= post.get('ID') %>"> | | 186 | WARNING | Possible use of ASP style short opening tags | | detected; found: <%= post.get('post_title') %> | | 187 | WARNING | Possible use of ASP style short opening tags | | detected; found: <%= post.getStatus() %>
| | 190 | WARNING | Possible use of ASP style short opening tags | | detected; found: <%= post.get('ID') %>" | | href="#">Edit | ... 193 | WARNING | Possible use of ASP style short opening tags | | detected; found: <%= post.get('ID') %>" | | href="#">Add | | 197 | WARNING | Possible use of ASP style opening tags detected; | | found: <% }); %> | | 202 | WARNING | Possible use of ASP style short opening tags | | detected; found: <%= post_title %> | | 205 | WARNING | Possible use of ASP style short opening tags | | detected; found: <%= post_title %>"/> | | 209 | WARNING | Possible use of ASP style opening tags detected; | | found: <% if (custom_fields.lr_subhed) { %> | | 210 | WARNING | Possible use of ASP style short opening tags | | detected; found: <%= custom_fields.lr_subhed %>"/> | | 211 | WARNING | Possible use of ASP style opening tags detected; | | found: <% } else { %> | | 212 | WARNING | Possible use of ASP style short opening tags | | detected; found: <%= custom_fields.lr_subhed %>"/> | | 213 | WARNING | Possible use of ASP style opening tags detected; | | found: <% } %> | | 217 | WARNING | Possible use of ASP style opening tags detected; | | found: <% if (custom_fields.lr_url) { %> | | 218 | WARNING | Possible use of ASP style short opening tags | | detected; found: <%= custom_fields.lr_url %>" /> | | 219 | WARNING | Possible use of ASP style opening tags detected; | | found: <% } else if (post_permalink) { %> | | 220 | WARNING | Possible use of ASP style short opening tags | | detected; found: <%= post_permalink %>" /> | | 221 | WARNING | Possible use of ASP style opening tags detected; | | found: <% } else { %> | | 223 | WARNING | Possible use of ASP style opening tags detected; | | found: <% } %> | | 227 | WARNING | Possible use of ASP style opening tags detected; | | found: <% if (custom_fields.lr_desc) { %> | | 228 | WARNING | Possible use of ASP style short opening tags | | detected; found: <%= custom_fields.lr_desc | | %> | | 229 | WARNING | Possible use of ASP style opening tags detected; | | found: <% } else if (post_excerpt) { %> | | 230 | WARNING | Possible use of ASP style short opening tags | | detected; found: <%= post_excerpt %> | | 231 | WARNING | Possible use of ASP style opening tags detected; | | found: <% } else { %> | | 233 | WARNING | Possible use of ASP style opening tags detected; | | found: <% } %> | | 237 | WARNING | Possible use of ASP style opening tags detected; | | found: <% if (custom_fields.lr_source) { %> | | 238 | WARNING | Possible use of ASP style short opening tags | | detected; found: <%= custom_fields.lr_source %>" /> | | 239 | WARNING | Possible use of ASP style opening tags detected; | | found: <% } else if (source) { %> | | 240 | WARNING | Possible use of ASP style short opening tags | | detected; found: <%= source %>" /> | | 241 | WARNING | Possible use of ASP style opening tags detected; | | found: <% } else { %> | | 243 | WARNING | Possible use of ASP style opening tags detected; | | found: <% } %> | | 249 | ERROR | Doc comment for parameter "$add" missing 275 | ERROR | You must use "/**" style comments for a function | | comment 283 | ERROR | $_POST data not unslashed before sanitization. Use | | wp_unslash() or similar 283 | ERROR | Detected usage of a non-sanitized input variable: | | $_POST['post'] 292 | WARNING | json_encode() is discouraged. Use wp_json_encode() | | instead. 304 | WARNING | json_encode() is discouraged. Use wp_json_encode() | | instead. 309 | ERROR | Missing doc comment for function | | roundup_block_posts_query() 310 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 334 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 337 | ERROR | Variable "$exisitingIds" is not in valid snake_case | | format, try "$exisiting_ids" 345 | ERROR | Variable "$foundIds" is not in valid snake_case | | format, try "$found_ids" 345 | ERROR | split() has been deprecated since PHP 5.3 and | | removed in PHP 7.0, please use explode(), | | str_split() or preg_split() instead. 346 | ERROR | Variable "$foundIds" is not in valid snake_case | | format, try "$found_ids" 347 | ERROR | Variable "$exisitingIds" is not in valid snake_case | | format, try "$exisiting_ids" 355 | ERROR | Processing form data without nonce verification. 356 | ERROR | Variable "$exisitingIds" is not in valid snake_case | | format, try "$exisiting_ids" 356 | ERROR | $_POST data not unslashed before sanitization. Use | | wp_unslash() or similar 356 | ERROR | Detected usage of a non-sanitized input variable: | | $_POST['existingIds'] 356 | ERROR | Processing form data without nonce verification. 360 | ERROR | Variable "$exisitingIds" is not in valid snake_case | | format, try "$exisiting_ids" 360 | ERROR | Variable "$exisitingId" is not in valid snake_case | | format, try "$exisiting_id" 361 | WARNING | Not using strict comparison for in_array; supply | | true for third argument. 361 | ERROR | Variable "$exisitingId" is not in valid snake_case | | format, try "$exisiting_id" 362 | ERROR | Variable "$exisitingId" is not in valid snake_case | | format, try "$exisiting_id" 376 | ERROR | Overriding WordPress globals is prohibited. Found | | assignment to $post 390 | ERROR | You must use "/**" style comments for a function | | comment 393 | WARNING | json_encode() is discouraged. Use wp_json_encode() | | instead. 400 | ERROR | Parameter comment must end with a full stop 401 | ERROR | Parameter comment must end with a full stop 402 | ERROR | Parameter comment must end with a full stop 409 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks ---------------------------------------------------------------------- FILE: ...largo/wp-content/plugins/link-roundups/inc/updates/functions.php ---------------------------------------------------------------------- FOUND 14 ERRORS AND 6 WARNINGS AFFECTING 11 LINES ---------------------------------------------------------------------- 1 | ERROR | Missing file doc comment 3 | ERROR | Doc comment for parameter "$to" missing 3 | ERROR | Doc comment for parameter "$from" missing 34 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 54 | ERROR | Doc comment for parameter "$to" missing 54 | ERROR | Doc comment for parameter "$from" missing 81 | ERROR | Doc comment for parameter "$to" missing 81 | ERROR | Doc comment for parameter "$from" missing 106 | ERROR | Doc comment for parameter "$old_post_type" missing 106 | ERROR | Doc comment for parameter "$new_post_type" missing 113 | WARNING | Usage of a direct database call is discouraged. 113 | WARNING | Direct database call without caching detected. | | Consider using wp_cache_get() / wp_cache_set() or | | wp_cache_delete(). 124 | ERROR | Doc comment for parameter "$old_meta" missing 124 | ERROR | Doc comment for parameter "$new_meta" missing 131 | WARNING | Usage of a direct database call is discouraged. 131 | WARNING | Direct database call without caching detected. | | Consider using wp_cache_get() / wp_cache_set() or | | wp_cache_delete(). 142 | ERROR | Doc comment for parameter "$old_tax" missing 142 | ERROR | Doc comment for parameter "$new_tax" missing 149 | WARNING | Usage of a direct database call is discouraged. 149 | WARNING | Direct database call without caching detected. | | Consider using wp_cache_get() / wp_cache_set() or | | wp_cache_delete(). ---------------------------------------------------------------------- FILE: ...tes/largo/wp-content/plugins/link-roundups/inc/updates/index.php ---------------------------------------------------------------------- FOUND 21 ERRORS AND 14 WARNINGS AFFECTING 27 LINES ---------------------------------------------------------------------- 6 | ERROR | Missing @package tag in file comment 41 | WARNING | Words in hook names should be separated using | | underscores. Expected: 'lroundups_update_0_3', but | | found: 'lroundups_update_0.3'. 53 | WARNING | Words in hook names should be separated using | | underscores. Expected: 'lroundups_update_0_3_2', | | but found: 'lroundups_update_0.3.2'. 86 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 91 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 92 | WARNING | Found: ==. Use strict comparisons (=== or !==). 92 | ERROR | Use Yoda Condition checks, you must. 93 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 94 | WARNING | Found: ==. Use strict comparisons (=== or !==). 120 | WARNING | Processing form data without nonce verification. 120 | WARNING | Processing form data without nonce verification. 120 | WARNING | Found: ==. Use strict comparisons (=== or !==). 120 | ERROR | Use Yoda Condition checks, you must. 127 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '__'. 127 | ERROR | A gettext call containing placeholders was found, | | but was not accompanied by a "translators:" comment | | on the line above to clarify the meaning of the | | placeholders. 128 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found 'admin_url'. 132 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found '__'. 133 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found 'admin_url'. 212 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 216 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 217 | ERROR | All output should be run through an escaping | | function (see the Security sections in the WordPress | | Developer Handbooks), found 'lroundups_version'. 221 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 222 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 223 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 225 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 227 | ERROR | All output should be run through an escaping | | function (like esc_html_e() or esc_attr_e()), found | | '_e'. 243 | WARNING | Processing form data without nonce verification. 243 | WARNING | Processing form data without nonce verification. 243 | WARNING | Found: ==. Use strict comparisons (=== or !==). 243 | ERROR | Use Yoda Condition checks, you must. 244 | ERROR | Version parameter is not explicitly set or has been | | set to an equivalent of "false" for | | wp_enqueue_script; This means that the WordPress | | core version will be used which is not recommended | | for plugin or theme development. 262 | WARNING | json_encode() is discouraged. Use wp_json_encode() | | instead. 272 | WARNING | json_encode() is discouraged. Use wp_json_encode() | | instead. 284 | WARNING | json_encode() is discouraged. Use wp_json_encode() | | instead. 292 | WARNING | json_encode() is discouraged. Use wp_json_encode() | | instead. ---------------------------------------------------------------------- FILE: ...tes/largo/wp-content/plugins/link-roundups/inc/compatibility.php ---------------------------------------------------------------------- FOUND 26 ERRORS AND 1 WARNING AFFECTING 11 LINES ---------------------------------------------------------------------- 1 | ERROR | Missing file doc comment 13 | ERROR | Variable "$pageURL" is not in valid snake_case | | format, try "$page_u_r_l" 16 | ERROR | Variable "$pageURL" is not in valid snake_case | | format, try "$page_u_r_l" 19 | ERROR | Variable "$pageURL" is not in valid snake_case | | format, try "$page_u_r_l" 21 | WARNING | Found: !=. Use strict comparisons (=== or !==). 21 | ERROR | Use Yoda Condition checks, you must. 22 | ERROR | Variable "$pageURL" is not in valid snake_case | | format, try "$page_u_r_l" 22 | ERROR | Detected usage of a possibly undefined superglobal | | array index: $_SERVER['SERVER_NAME']. Use isset() or | | empty() to check the index exists before using it 22 | ERROR | $_SERVER data not unslashed before sanitization. Use | | wp_unslash() or similar 22 | ERROR | Detected usage of a non-sanitized input variable: | | $_SERVER['SERVER_NAME'] 22 | ERROR | $_SERVER data not unslashed before sanitization. Use | | wp_unslash() or similar 22 | ERROR | Detected usage of a non-sanitized input variable: | | $_SERVER['SERVER_PORT'] 22 | ERROR | Detected usage of a possibly undefined superglobal | | array index: $_SERVER['REQUEST_URI']. Use isset() or | | empty() to check the index exists before using it 22 | ERROR | $_SERVER data not unslashed before sanitization. Use | | wp_unslash() or similar 22 | ERROR | Detected usage of a non-sanitized input variable: | | $_SERVER['REQUEST_URI'] 24 | ERROR | Variable "$pageURL" is not in valid snake_case | | format, try "$page_u_r_l" 24 | ERROR | Detected usage of a possibly undefined superglobal | | array index: $_SERVER['SERVER_NAME']. Use isset() or | | empty() to check the index exists before using it 24 | ERROR | $_SERVER data not unslashed before sanitization. Use | | wp_unslash() or similar 24 | ERROR | Detected usage of a non-sanitized input variable: | | $_SERVER['SERVER_NAME'] 24 | ERROR | Detected usage of a possibly undefined superglobal | | array index: $_SERVER['REQUEST_URI']. Use isset() or | | empty() to check the index exists before using it 24 | ERROR | $_SERVER data not unslashed before sanitization. Use | | wp_unslash() or similar 24 | ERROR | Detected usage of a non-sanitized input variable: | | $_SERVER['REQUEST_URI'] 27 | ERROR | Variable "$pageURL" is not in valid snake_case | | format, try "$page_u_r_l" 28 | ERROR | Variable "$newURL" is not in valid snake_case format, | | try "$new_u_r_l" 28 | ERROR | Variable "$pageURL" is not in valid snake_case | | format, try "$page_u_r_l" 30 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 31 | ERROR | Variable "$newURL" is not in valid snake_case format, | | try "$new_u_r_l" ---------------------------------------------------------------------- FILE: ...k/sites/largo/wp-content/plugins/link-roundups/link-roundups.php ---------------------------------------------------------------------- FOUND 8 ERRORS AND 5 WARNINGS AFFECTING 6 LINES ---------------------------------------------------------------------- 2 | ERROR | You must use "/**" style comments for a file comment 2 | ERROR | Empty line required before block comment 30 | WARNING | error_log() found. Debug code should not normally be | | used in production. 45 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 119 | ERROR | Resource version not set in call to | | wp_register_style(). This means new versions of the | | style will not always be loaded due to browser | | caching. 122 | WARNING | Found: ==. Use strict comparisons (=== or !==). 122 | ERROR | Use Yoda Condition checks, you must. 122 | WARNING | Found: ==. Use strict comparisons (=== or !==). 122 | ERROR | Use Yoda Condition checks, you must. 122 | WARNING | Found: ==. Use strict comparisons (=== or !==). 122 | ERROR | Use Yoda Condition checks, you must. 127 | WARNING | Found: ==. Use strict comparisons (=== or !==). 127 | ERROR | Use Yoda Condition checks, you must. ---------------------------------------------------------------------- FILE: ...tes/largo/wp-content/plugins/link-roundups/templates/options.php ---------------------------------------------------------------------- FOUND 39 ERRORS AND 2 WARNINGS AFFECTING 34 LINES ---------------------------------------------------------------------- 2 | ERROR | Missing file doc comment 2 | ERROR | All output should be run through an escaping function | | (like esc_html_e() or esc_attr_e()), found '_e'. 6 | ERROR | All output should be run through an escaping function | | (like esc_html_e() or esc_attr_e()), found '_e'. 10 | ERROR | All output should be run through an escaping function | | (see the Security sections in the WordPress Developer | | Handbooks), found '__'. 10 | ERROR | A gettext call containing placeholders was found, but | | was not accompanied by a "translators:" comment on | | the line above to clarify the meaning of the | | placeholders. 15 | ERROR | All output should be run through an escaping function | | (like esc_html_e() or esc_attr_e()), found '_e'. 15 | ERROR | All output should be run through an escaping function | | (like esc_html_e() or esc_attr_e()), found '_e'. 21 | ERROR | All output should be run through an escaping function | | (like esc_html_e() or esc_attr_e()), found '_e'. 22 | ERROR | All output should be run through an escaping function | | (like esc_html_e() or esc_attr_e()), found '_e'. 25 | ERROR | All output should be run through an escaping function | | (see the Security sections in the WordPress Developer | | Handbooks), found '__'. 25 | ERROR | A gettext call containing placeholders was found, but | | was not accompanied by a "translators:" comment on | | the line above to clarify the meaning of the | | placeholders. 29 | ERROR | All output should be run through an escaping function | | (like esc_html_e() or esc_attr_e()), found '_e'. 30 | ERROR | All output should be run through an escaping function | | (like esc_html_e() or esc_attr_e()), found '_e'. 31 | ERROR | All output should be run through an escaping function | | (see the Security sections in the WordPress Developer | | Handbooks), found 'get_option'. 32 | ERROR | All output should be run through an escaping function | | (like esc_html_e() or esc_attr_e()), found '_e'. 33 | ERROR | All output should be run through an escaping function | | (see the Security sections in the WordPress Developer | | Handbooks), found 'get_option'. 35 | ERROR | All output should be run through an escaping function | | (like esc_html_e() or esc_attr_e()), found '_e'. 36 | ERROR | All output should be run through an escaping function | | (like esc_html_e() or esc_attr_e()), found '_e'. 38 | ERROR | All output should be run through an escaping function | | (see the Security sections in the WordPress Developer | | Handbooks), found 'get_site_url'. 44 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 46 | ERROR | Inline comments must end in full-stops, exclamation | | marks, or question marks 48 | ERROR | All output should be run through an escaping function | | (see the Security sections in the WordPress Developer | | Handbooks), found '$current_slug'. 52 | ERROR | All output should be run through an escaping function | | (see the Security sections in the WordPress Developer | | Handbooks), found '$custom_slug'. 53 | ERROR | All output should be run through an escaping function | | (like esc_html_e() or esc_attr_e()), found '_e'. 56 | ERROR | All output should be run through an escaping function | | (see the Security sections in the WordPress Developer | | Handbooks), found '__'. 56 | ERROR | A gettext call containing placeholders was found, but | | was not accompanied by a "translators:" comment on | | the line above to clarify the meaning of the | | placeholders. 57 | ERROR | All output should be run through an escaping function | | (see the Security sections in the WordPress Developer | | Handbooks), found 'admin_url'. 62 | ERROR | All output should be run through an escaping function | | (like esc_html_e() or esc_attr_e()), found '_e'. 63 | ERROR | All output should be run through an escaping function | | (like esc_html_e() or esc_attr_e()), found '_e'. 64 | WARNING | Found: !=. Use strict comparisons (=== or !==). 64 | ERROR | All output should be run through an escaping function | | (see the Security sections in the WordPress Developer | | Handbooks), found 'get_option'. 64 | ERROR | All output should be run through an escaping function | | (see the Security sections in the WordPress Developer | | Handbooks), found 'SavedLinks'. 68 | WARNING | json_encode() is discouraged. Use wp_json_encode() | | instead. 71 | ERROR | All output should be run through an escaping function | | (like esc_html_e() or esc_attr_e()), found '_e'. 77 | ERROR | All output should be run through an escaping function | | (like esc_html_e() or esc_attr_e()), found '_e'. 78 | ERROR | All output should be run through an escaping function | | (like esc_html_e() or esc_attr_e()), found '_e'. 81 | 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 '__'. 84 | ERROR | All output should be run through an escaping function | | (see the Security sections in the WordPress Developer | | Handbooks), found '__'. 85 | ERROR | All output should be run through an escaping function | | (see the Security sections in the WordPress Developer | | Handbooks), found '__'. 90 | ERROR | All output should be run through an escaping function | | (like esc_html_e() or esc_attr_e()), found '_e'. ---------------------------------------------------------------------- Time: 1.18 secs; Memory: 20MB ```
benlk commented 5 years ago

FILE: ...rgo/wp-content/plugins/link-roundups/inc/compatibility-largo.php
----------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
----------------------------------------------------------------------
 7 | ERROR | [ ] Content missing for @package tag in file comment
 7 | ERROR | [x] Whitespace found at end of line
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

FILE: ...ugins/link-roundups/inc/saved-links/class-saved-links-widget.php
----------------------------------------------------------------------
FOUND 10 ERRORS AFFECTING 9 LINES
----------------------------------------------------------------------
   1 | ERROR | [ ] Missing file doc comment
   7 | ERROR | [ ] Class name must begin with a capital letter
   7 | ERROR | [ ] Class name is not valid; consider
     |       |     Saved_Links_Widget instead
  65 | ERROR | [x] Line indented incorrectly; expected 6 tabs, found
     |       |     7
  70 | ERROR | [x] Line indented incorrectly; expected 6 tabs, found
     |       |     8
  72 | ERROR | [x] Line indented incorrectly; expected 6 tabs, found
     |       |     8
  74 | ERROR | [x] Line indented incorrectly; expected 6 tabs, found
     |       |     7
  76 | ERROR | [x] Line indented incorrectly; expected 6 tabs, found
     |       |     7
  77 | ERROR | [ ] All output should be run through an escaping
     |       |     function (see the Security sections in the
     |       |     WordPress Developer Handbooks), found '$output'.
 112 | ERROR | [ ] All output should be run through an escaping
     |       |     function (see the Security sections in the
     |       |     WordPress Developer Handbooks), found
     |       |     '$lr_source'.
----------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

FILE: ...tent/plugins/link-roundups/inc/saved-links/class-saved-links.php
----------------------------------------------------------------------
FOUND 130 ERRORS AND 17 WARNINGS AFFECTING 101 LINES
----------------------------------------------------------------------
   1 | ERROR   | Class file names should be based on the class name
     |         | with "class-" prepended. Expected
     |         | class-savedlinks.php, but found
     |         | class-saved-links.php.
   1 | ERROR   | Missing file doc comment
  11 | ERROR   | Missing member variable doc comment
  23 | ERROR   | Comment closer must be on a new line
  89 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
  98 | ERROR   | Missing doc comment for function
     |         | change_publish_button()
 102 | WARNING | Found: ==. Use strict comparisons (=== or !==).
 102 | ERROR   | Use Yoda Condition checks, you must.
 103 | WARNING | Found: ==. Use strict comparisons (=== or !==).
 103 | ERROR   | Use Yoda Condition checks, you must.
 180 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
 181 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$link_url'.
 185 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
 199 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
 200 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$link_source'.
 204 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
 205 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$link_img_src'.
 206 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$link_img_src'.
 207 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
 213 | ERROR   | Doc comment for parameter "$post_id" missing
 220 | ERROR   | Processing form data without nonce verification.
 221 | ERROR   | Processing form data without nonce verification.
 221 | ERROR   | $_POST data not unslashed before sanitization. Use
     |         | wp_unslash() or similar
 221 | ERROR   | Detected usage of a non-sanitized input variable:
     |         | $_POST['post_ID']
 221 | ERROR   | Processing form data without nonce verification.
 221 | ERROR   | $_POST data not unslashed before sanitization. Use
     |         | wp_unslash() or similar
 221 | ERROR   | Detected usage of a non-sanitized input variable:
     |         | $_POST['lr_url']
 221 | ERROR   | Processing form data without nonce verification.
 224 | ERROR   | Processing form data without nonce verification.
 225 | ERROR   | Processing form data without nonce verification.
 225 | ERROR   | $_POST data not unslashed before sanitization. Use
     |         | wp_unslash() or similar
 225 | ERROR   | Detected usage of a non-sanitized input variable:
     |         | $_POST['post_ID']
 225 | ERROR   | Processing form data without nonce verification.
 225 | ERROR   | $_POST data not unslashed before sanitization. Use
     |         | wp_unslash() or similar
 225 | ERROR   | Detected usage of a non-sanitized input variable:
     |         | $_POST['lr_desc']
 225 | ERROR   | Processing form data without nonce verification.
 228 | ERROR   | Processing form data without nonce verification.
 229 | ERROR   | Processing form data without nonce verification.
 229 | ERROR   | $_POST data not unslashed before sanitization. Use
     |         | wp_unslash() or similar
 229 | ERROR   | Detected usage of a non-sanitized input variable:
     |         | $_POST['post_ID']
 229 | ERROR   | Processing form data without nonce verification.
 229 | ERROR   | $_POST data not unslashed before sanitization. Use
     |         | wp_unslash() or similar
 229 | ERROR   | Detected usage of a non-sanitized input variable:
     |         | $_POST['lr_source']
 229 | ERROR   | Processing form data without nonce verification.
 232 | ERROR   | Processing form data without nonce verification.
 232 | ERROR   | $_POST data not unslashed before sanitization. Use
     |         | wp_unslash() or similar
 232 | ERROR   | Detected usage of a non-sanitized input variable:
     |         | $_POST['lr_img']
 232 | ERROR   | Processing form data without nonce verification.
 233 | ERROR   | Detected usage of a possibly undefined superglobal
     |         | array index: $_POST['argo_link_img_url']. Use
     |         | isset() or empty() to check the index exists before
     |         | using it
 233 | ERROR   | $_POST data not unslashed before sanitization. Use
     |         | wp_unslash() or similar
 233 | ERROR   | Detected usage of a non-sanitized input variable:
     |         | $_POST['argo_link_img_url']
 233 | ERROR   | Processing form data without nonce verification.
 235 | ERROR   | Processing form data without nonce verification.
 235 | ERROR   | $_POST data not unslashed before sanitization. Use
     |         | wp_unslash() or similar
 235 | ERROR   | Detected usage of a non-sanitized input variable:
     |         | $_POST['post_ID']
 235 | ERROR   | Processing form data without nonce verification.
 245 | ERROR   | Parameter comment must end with a full stop
 246 | ERROR   | Parameter comment must end with a full stop
 247 | ERROR   | Parameter comment must end with a full stop
 270 | WARNING | Silencing errors is strongly discouraged. Use proper
     |         | error checking instead. Found: @unlink(
     |         | $file_array[...
 277 | ERROR   | Doc comment for parameter "$columns" missing
 295 | ERROR   | Doc comment for parameter "$column" missing
 308 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$custom'.
 314 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$custom'.
 326 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$term_links'.
 373 | ERROR   | Content missing for @see tag in function comment
 380 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
 384 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
 385 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
 389 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
 400 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found 'add_query_arg'.
 413 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '__'.
 425 | ERROR   | Content missing for @see tag in function comment
 433 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
 438 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
 439 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
 440 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
 444 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
 445 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
 446 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
 449 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found 'Save_To_Site_Button'.
 449 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
 452 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
 458 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
 465 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
 466 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
 469 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found 'Save_To_Site_Button'.
 469 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
 497 | ERROR   | Missing doc comment for function
     |         | add_saved_links_widget()
 501 | ERROR   | Missing doc comment for function
     |         | add_link_roundups_widget()
 505 | ERROR   | Doc comment for parameter "$url" missing
 505 | ERROR   | Doc comment for parameter "$post" missing
 513 | ERROR   | Doc comment for parameter $content does not match
     |         | actual variable name $url
 518 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
 520 | ERROR   | Variable "$remoteUrl" is not in valid snake_case
     |         | format, try "$remote_url"
 522 | ERROR   | Variable "$remoteUrl" is not in valid snake_case
     |         | format, try "$remote_url"
 522 | WARNING | Found: ==. Use strict comparisons (=== or !==).
 529 | ERROR   | Variable "$remoteUrl" is not in valid snake_case
     |         | format, try "$remote_url"
 532 | ERROR   | Doc comment for parameter "$author" missing
 541 | ERROR   | Doc comment for parameter $content does not match
     |         | actual variable name $author
 544 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
 552 | WARNING | Found: ==. Use strict comparisons (=== or !==).
 560 | ERROR   | Doc comment for parameter "$link" missing
 565 | ERROR   | Doc comment for parameter $content does not match
     |         | actual variable name $link
 570 | WARNING | Found: ==. Use strict comparisons (=== or !==).
 575 | WARNING | This comment is 72% valid code; is this commented
     |         | out code?
 600 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
 611 | WARNING | Found: ==. Use strict comparisons (=== or !==).
 631 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
 632 | WARNING | Found: ==. Use strict comparisons (=== or !==).
 639 | ERROR   | Doc comment for parameter "$post" missing
 639 | ERROR   | Doc comment for parameter "$link_class" missing
 639 | ERROR   | Doc comment for parameter "$attrs" missing
 647 | ERROR   | Doc comment for parameter $content does not match
     |         | actual variable name $post
 658 | WARNING | Found: ==. Use strict comparisons (=== or !==).
 658 | ERROR   | Use Yoda Condition checks, you must.
 663 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
 705 | WARNING | Found: ==. Use strict comparisons (=== or !==).
 705 | ERROR   | Use Yoda Condition checks, you must.
 724 | ERROR   | Doc comment for parameter "$atts" missing
 741 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
 742 | WARNING | Found: !=. Use strict comparisons (=== or !==).
 742 | ERROR   | Use Yoda Condition checks, you must.
 743 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
 749 | ERROR   | Doc comment for parameter "$post" missing
 758 | ERROR   | Doc comment for parameter $content does not match
     |         | actual variable name $post
 766 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$custom'.
 768 | WARNING | Found: !=. Use strict comparisons (=== or !==).
 768 | ERROR   | Use Yoda Condition checks, you must.
 769 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '__'.
 770 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$custom'.
 770 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$custom'.
 770 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$custom'.
 783 | ERROR   | You must use "/**" style comments for a function
     |         | comment
 790 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
 791 | WARNING | wp_reset_query() is discouraged. Use the
     |         | wp_reset_postdata() instead.
 796 | ERROR   | Doc comment for parameter "$type" missing
 796 | ERROR   | Doc comment for parameter "$message" missing
 802 | WARNING | urlencode() should only be used when dealing with
     |         | legacy applications rawurlencode() should now be
     |         | used instead. See
     |         | http://php.net/manual/en/function.rawurlencode.php
     |         | and http://www.faqs.org/rfcs/rfc3986.html
 806 | ERROR   | Doc comment for parameter "$location" missing
 824 | WARNING | Processing form data without nonce verification.
 828 | WARNING | Processing form data without nonce verification.
 828 | ERROR   | $_GET data not unslashed before sanitization. Use
     |         | wp_unslash() or similar
 828 | ERROR   | Detected usage of a non-sanitized input variable:
     |         | $_GET['lroundups_notices']
 830 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$notice'.
 830 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found 'urldecode'.
 835 | ERROR   | Missing doc comment for function
     |         | lroundups_default_link_html()
----------------------------------------------------------------------

FILE: ...s/link-roundups/inc/saved-links/class-saved-links-list-table.php
----------------------------------------------------------------------
FOUND 66 ERRORS AND 14 WARNINGS AFFECTING 59 LINES
----------------------------------------------------------------------
   9 | ERROR   | There must be exactly one blank line after the file
     |         | comment
  35 | ERROR   | Visibility must be declared on method "__construct"
  53 | ERROR   | Visibility must be declared on method "bulk_actions"
  54 | WARNING | Processing form data without nonce verification.
  59 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
  61 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
  64 | ERROR   | Use Yoda Condition checks, you must.
  65 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
  69 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
  71 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
  72 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
  73 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
  74 | 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 (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
  89 | ERROR   | Use Yoda Condition checks, you must.
  93 | WARNING | strip_tags() is discouraged. Use the more
     |         | comprehensive wp_strip_all_tags() instead.
  93 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found 'strip_tags'.
 106 | ERROR   | Visibility must be declared on method "get_columns"
 107 | ERROR   | Assignments must be the first block of code on a
     |         | line
 108 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
 122 | ERROR   | Visibility must be declared on method
     |         | "get_sortable_columns"
 123 | ERROR   | Assignments must be the first block of code on a
     |         | line
 137 | ERROR   | Visibility must be declared on method
     |         | "prepare_items"
 139 | ERROR   | Empty line not required before block comment
 143 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
 144 | WARNING | Processing form data without nonce verification.
 144 | WARNING | Processing form data without nonce verification.
 144 | ERROR   | $_REQUEST data not unslashed before sanitization.
     |         | Use wp_unslash() or similar
 144 | ERROR   | Detected usage of a non-sanitized input variable:
     |         | $_REQUEST['posts_per_page']
 145 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
 146 | WARNING | Processing form data without nonce verification.
 146 | WARNING | Processing form data without nonce verification.
 146 | ERROR   | $_REQUEST data not unslashed before sanitization.
     |         | Use wp_unslash() or similar
 146 | ERROR   | Detected usage of a non-sanitized input variable:
     |         | $_REQUEST['lroundups_page']
 153 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
 159 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
 160 | WARNING | Processing form data without nonce verification.
 161 | WARNING | Processing form data without nonce verification.
 191 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
 194 | WARNING | Processing form data without nonce verification.
 194 | WARNING | Processing form data without nonce verification.
 194 | ERROR   | $_REQUEST data not unslashed before sanitization.
     |         | Use wp_unslash() or similar
 194 | ERROR   | Detected usage of a non-sanitized input variable:
     |         | $_REQUEST['orderby']
 195 | WARNING | Processing form data without nonce verification.
 195 | WARNING | Processing form data without nonce verification.
 195 | ERROR   | $_REQUEST data not unslashed before sanitization.
     |         | Use wp_unslash() or similar
 195 | ERROR   | Detected usage of a non-sanitized input variable:
     |         | $_REQUEST['order']
 207 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
 209 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
 218 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
 224 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
 227 | ERROR   | Empty line required before block comment
 228 | WARNING | Found precision alignment of 1 spaces.
 245 | ERROR   | You must use "/**" style comments for a function
     |         | comment
 245 | ERROR   | Visibility must be declared on method "single_row"
 249 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '"<tr class='$classes'
     |         | data-post-id='$post->ID'>"'.
 257 | WARNING | Not using strict comparison for in_array; supply
     |         | true for third argument.
 266 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$this'.
 266 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
 270 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '"<td $attributes>"'.
 271 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$post'.
 272 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$this'.
 272 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$column_name'.
 272 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$primary'.
 276 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '"<td $attributes>"'.
 277 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found 'the_author_meta'.
 281 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '"<td $attributes>"'.
 286 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '"<td $attributes>"'.
 295 | ERROR   | Doc comment for parameter "$post" missing
 298 | ERROR   | Missing parameter name
 301 | ERROR   | Visibility must be declared on method "column_cb"
 303 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$post'.
 305 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '__'.
 305 | ERROR   | A gettext call containing placeholders was found,
     |         | but was not accompanied by a "translators:" comment
     |         | on the line above to clarify the meaning of the
     |         | placeholders.
 305 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '_draft_or_post_title'.
 308 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$post'.
 313 | ERROR   | Doc comment for parameter "$item" missing
 313 | ERROR   | Doc comment for parameter "$column_name" missing
 313 | ERROR   | Doc comment for parameter "$primary" missing
 322 | ERROR   | Doc comment for parameter "$which" missing
----------------------------------------------------------------------

FILE: ...ns/link-roundups/inc/link-roundups/class-save-to-site-button.php
----------------------------------------------------------------------
FOUND 58 ERRORS AND 7 WARNINGS AFFECTING 37 LINES
----------------------------------------------------------------------
  10 | ERROR   | Missing @package tag in file comment
  22 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
  26 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
  27 | ERROR   | Variable "$URL" is not in valid snake_case format,
     |         | try "$u_r_l"
  27 | WARNING | parse_url() is discouraged because of inconsistency
     |         | in the output across PHP versions; use
     |         | wp_parse_url() instead.
  27 | ERROR   | Detected usage of a possibly undefined superglobal
     |         | array index: $_SERVER['REQUEST_URI']. Use isset() or
     |         | empty() to check the index exists before using it
  27 | ERROR   | $_SERVER data not unslashed before sanitization. Use
     |         | wp_unslash() or similar
  27 | ERROR   | Detected usage of a non-sanitized input variable:
     |         | $_SERVER['REQUEST_URI']
  28 | ERROR   | Variable "$newURL" is not in valid snake_case
     |         | format, try "$new_u_r_l"
  28 | ERROR   | Variable "$URL" is not in valid snake_case format,
     |         | try "$u_r_l"
  30 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
  31 | ERROR   | Variable "$newURL" is not in valid snake_case
     |         | format, try "$new_u_r_l"
  34 | ERROR   | Missing doc comment for class Save_To_Site_Button
  36 | ERROR   | Missing member variable doc comment
  37 | ERROR   | Missing member variable doc comment
  38 | ERROR   | Missing member variable doc comment
  39 | ERROR   | Missing member variable doc comment
  40 | ERROR   | Member variable "$imgUrl" is not in valid snake_case
     |         | format, try "$img_url"
  40 | ERROR   | Missing member variable doc comment
  41 | ERROR   | Class constants must be uppercase; expected
     |         | PLUGIN_DOMAIN but found plugin_domain
  49 | WARNING | Processing form data without nonce verification.
  77 | WARNING | get_shortcut_link() has been deprecated since
     |         | WordPress version 4.9.0.
 105 | ERROR   | Processing form data without nonce verification.
 105 | ERROR   | $_POST data not unslashed before sanitization. Use
     |         | wp_unslash() or similar
 105 | ERROR   | Detected usage of a non-sanitized input variable:
     |         | $_POST['_meta']
 105 | ERROR   | Processing form data without nonce verification.
 106 | ERROR   | Processing form data without nonce verification.
 106 | ERROR   | $_POST data not unslashed before sanitization. Use
     |         | wp_unslash() or similar
 106 | ERROR   | Detected usage of a non-sanitized input variable:
     |         | $_POST['_links']
 106 | ERROR   | Processing form data without nonce verification.
 107 | ERROR   | Processing form data without nonce verification.
 107 | ERROR   | $_POST data not unslashed before sanitization. Use
     |         | wp_unslash() or similar
 107 | ERROR   | Detected usage of a non-sanitized input variable:
     |         | $_POST['_images']
 107 | ERROR   | Processing form data without nonce verification.
 108 | ERROR   | Processing form data without nonce verification.
 108 | ERROR   | $_POST data not unslashed before sanitization. Use
     |         | wp_unslash() or similar
 108 | ERROR   | Detected usage of a non-sanitized input variable:
     |         | $_POST['_embeds']
 108 | ERROR   | Processing form data without nonce verification.
 110 | WARNING | Processing form data without nonce verification.
 110 | WARNING | Processing form data without nonce verification.
 110 | ERROR   | $_GET data not unslashed before sanitization. Use
     |         | wp_unslash() or similar
 110 | ERROR   | Detected usage of a non-sanitized input variable:
     |         | $_GET['u']
 113 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
 118 | ERROR   | Processing form data without nonce verification.
 118 | WARNING | strip_tags() is discouraged. Use the more
     |         | comprehensive wp_strip_all_tags() instead.
 118 | ERROR   | $_POST data not unslashed before sanitization. Use
     |         | wp_unslash() or similar
 118 | ERROR   | Detected usage of a non-sanitized input variable:
     |         | $_POST['t']
 118 | ERROR   | Processing form data without nonce verification.
 122 | ERROR   | Processing form data without nonce verification.
 123 | ERROR   | $_POST data not unslashed before sanitization. Use
     |         | wp_unslash() or similar
 123 | ERROR   | Detected usage of a non-sanitized input variable:
     |         | $_POST['s']
 123 | ERROR   | Processing form data without nonce verification.
 127 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
 135 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
 140 | WARNING | parse_url() is discouraged because of inconsistency
     |         | in the output across PHP versions; use
     |         | wp_parse_url() instead.
 144 | ERROR   | Object property "$imgUrl" is not in valid snake_case
     |         | format, try "$img_url"
 146 | ERROR   | Object property "$imgUrl" is not in valid snake_case
     |         | format, try "$img_url"
 173 | ERROR   | Doc comment for parameter "$title" missing
 184 | ERROR   | Doc comment for parameter "$description" missing
 195 | ERROR   | Doc comment for parameter "$link" missing
 206 | ERROR   | Doc comment for parameter "$source" missing
 217 | ERROR   | Doc comment for parameter "$imgUrl" missing
 224 | ERROR   | Method name "default_imgUrl" in class
     |         | Save_To_Site_Button is not in snake case format, try
     |         | "default_img_url"
 224 | ERROR   | Variable "$imgUrl" is not in valid snake_case
     |         | format, try "$img_url"
 225 | ERROR   | Object property "$imgUrl" is not in valid snake_case
     |         | format, try "$img_url"
----------------------------------------------------------------------

FILE: .../plugins/link-roundups/inc/link-roundups/class-link-roundups.php
----------------------------------------------------------------------
FOUND 48 ERRORS AND 4 WARNINGS AFFECTING 35 LINES
----------------------------------------------------------------------
   1 | ERROR   | Class file names should be based on the class name
     |         | with "class-" prepended. Expected
     |         | class-linkroundups.php, but found
     |         | class-link-roundups.php.
  14 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
  15 | ERROR   | You must use "/**" style comments for a function
     |         | comment
  17 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
  20 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
  23 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
  34 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
  38 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
  40 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
  41 | ERROR   | You must use "/**" style comments for a function
     |         | comment
  42 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
  53 | WARNING | Not using strict comparison for in_array; supply
     |         | true for third argument.
  54 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
  58 | ERROR   | Use Yoda Condition checks, you must.
  59 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
  63 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
 127 | WARNING | Found: !=. Use strict comparisons (=== or !==).
 127 | ERROR   | Use Yoda Condition checks, you must.
 138 | ERROR   | You must use "/**" style comments for a function
     |         | comment
 144 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
 154 | ERROR   | You must use "/**" style comments for a function
     |         | comment
 155 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
 203 | ERROR   | Doc comment for parameter "$post_id" missing
 213 | ERROR   | Empty IF statement detected
 213 | ERROR   | Processing form data without nonce verification.
 214 | WARNING | This comment is 74% valid code; is this commented
     |         | out code?
 214 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
 216 | ERROR   | Processing form data without nonce verification.
 217 | ERROR   | Processing form data without nonce verification.
 217 | ERROR   | Detected usage of a possibly undefined superglobal
     |         | array index: $_POST['post_ID']. Use isset() or
     |         | empty() to check the index exists before using it
 217 | ERROR   | $_POST data not unslashed before sanitization. Use
     |         | wp_unslash() or similar
 217 | ERROR   | Detected usage of a non-sanitized input variable:
     |         | $_POST['post_ID']
 217 | ERROR   | Processing form data without nonce verification.
 217 | ERROR   | $_POST data not unslashed before sanitization. Use
     |         | wp_unslash() or similar
 217 | ERROR   | Detected usage of a non-sanitized input variable:
     |         | $_POST['lr_url']
 217 | ERROR   | Processing form data without nonce verification.
 219 | ERROR   | Processing form data without nonce verification.
 220 | ERROR   | Processing form data without nonce verification.
 220 | ERROR   | Detected usage of a possibly undefined superglobal
     |         | array index: $_POST['post_ID']. Use isset() or
     |         | empty() to check the index exists before using it
 220 | ERROR   | $_POST data not unslashed before sanitization. Use
     |         | wp_unslash() or similar
 220 | ERROR   | Detected usage of a non-sanitized input variable:
     |         | $_POST['post_ID']
 220 | ERROR   | Processing form data without nonce verification.
 220 | ERROR   | $_POST data not unslashed before sanitization. Use
     |         | wp_unslash() or similar
 220 | ERROR   | Detected usage of a non-sanitized input variable:
     |         | $_POST['lr_desc']
 220 | ERROR   | Processing form data without nonce verification.
 239 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
 243 | ERROR   | Missing doc comment for function
     |         | register_mysettings()
 244 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
 252 | ERROR   | Missing doc comment for function
     |         | build_lroundups_options_page()
 253 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
 259 | WARNING | Processing form data without nonce verification.
 263 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
----------------------------------------------------------------------

FILE: ...s/link-roundups/inc/link-roundups/class-link-roundups-widget.php
----------------------------------------------------------------------
FOUND 50 ERRORS AND 4 WARNINGS AFFECTING 30 LINES
----------------------------------------------------------------------
   1 | ERROR   | Missing file doc comment
   6 | ERROR   | Class name must begin with a capital letter
   6 | ERROR   | Class name is not valid; consider
     |         | Link_Roundups_Widget instead
   8 | ERROR   | Missing doc comment for function __construct()
   8 | ERROR   | Visibility must be declared on method "__construct"
  17 | ERROR   | Missing doc comment for function widget()
  17 | ERROR   | Visibility must be declared on method "widget"
  18 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
  21 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$args'.
  24 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$args'.
  24 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$title'.
  24 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$args'.
  34 | WARNING | Found: !=. Use strict comparisons (=== or !==).
  34 | ERROR   | Use Yoda Condition checks, you must.
  45 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
  47 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
  49 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
  51 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$output'.
  58 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
  61 | WARNING | Found: !=. Use strict comparisons (=== or !==).
  61 | ERROR   | Use Yoda Condition checks, you must.
  63 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$instance'.
  63 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$instance'.
  67 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$args'.
  70 | ERROR   | Missing doc comment for function update()
  70 | ERROR   | Visibility must be declared on method "update"
  72 | WARNING | strip_tags() is discouraged. Use the more
     |         | comprehensive wp_strip_all_tags() instead.
  73 | WARNING | strip_tags() is discouraged. Use the more
     |         | comprehensive wp_strip_all_tags() instead.
  80 | ERROR   | Missing doc comment for function form()
  80 | ERROR   | Visibility must be declared on method "form"
  93 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$this'.
  93 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
  94 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$this'.
  94 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$this'.
  94 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$instance'.
  98 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$this'.
  98 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
  99 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$this'.
  99 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$this'.
  99 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$instance'.
 103 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$this'.
 103 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
 118 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
 118 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
 120 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$this'.
 120 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
 121 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$this'.
 121 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$this'.
 121 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$instance'.
 125 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$this'.
 125 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
 126 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$this'.
 126 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$this'.
 126 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '$instance'.
----------------------------------------------------------------------

FILE: ...s/link-roundups/inc/link-roundups/class-link-roundups-editor.php
----------------------------------------------------------------------
FOUND 40 ERRORS AND 49 WARNINGS AFFECTING 76 LINES
----------------------------------------------------------------------
   1 | ERROR   | Class file names should be based on the class name
     |         | with "class-" prepended. Expected
     |         | class-linkroundupseditor.php, but found
     |         | class-link-roundups-editor.php.
   1 | ERROR   | Missing file doc comment
   3 | ERROR   | Missing doc comment for class LinkRoundupsEditor
   5 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
   6 | ERROR   | You must use "/**" style comments for a function
     |         | comment
  16 | ERROR   | Doc comment for parameter "$attrs" missing
  41 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
  79 | ERROR   | Doc comment for parameter "$plugins" missing
  97 | ERROR   | Resource version not set in call to
     |         | wp_register_style(). This means new versions of the
     |         | style will not always be loaded due to browser
     |         | caching.
 100 | WARNING | In footer ($in_footer) is not set explicitly
     |         | wp_register_script; It is recommended to load
     |         | scripts in the footer. Please set this value to
     |         | `true` to load it in the footer, or explicitly
     |         | `false` if it should be loaded in the header.
 100 | ERROR   | Resource version not set in call to
     |         | wp_register_script(). This means new versions of the
     |         | script will not always be loaded due to browser
     |         | caching.
 104 | WARNING | In footer ($in_footer) is not set explicitly
     |         | wp_register_script; It is recommended to load
     |         | scripts in the footer. Please set this value to
     |         | `true` to load it in the footer, or explicitly
     |         | `false` if it should be loaded in the header.
 104 | ERROR   | Resource version not set in call to
     |         | wp_register_script(). This means new versions of the
     |         | script will not always be loaded due to browser
     |         | caching.
 126 | WARNING | Found: ==. Use strict comparisons (=== or !==).
 126 | ERROR   | Use Yoda Condition checks, you must.
 126 | WARNING | Found: ==. Use strict comparisons (=== or !==).
 126 | ERROR   | Use Yoda Condition checks, you must.
 131 | WARNING | json_encode() is discouraged. Use wp_json_encode()
     |         | instead.
 148 | WARNING | Possible use of ASP style short opening tags
     |         | detected; found: <%= content %><% } %></div>
     |         | 
 151 | WARNING | Possible use of ASP style opening tags detected;
     |         | found: <% _.each(actions, function(v, k) { %>
     |         | 
 152 | WARNING | Possible use of ASP style short opening tags
     |         | detected; found: <%= k %> button button-primary"><%=
     |         | k %></a...
 153 | WARNING | Possible use of ASP style opening tags detected;
     |         | found: <% }); %>
     |         | 
 158 | WARNING | Possible use of ASP style short opening tags
     |         | detected; found: <%= name %></h3>
     |         | 
 159 | WARNING | Possible use of ASP style short opening tags
     |         | detected; found: <%= name %>" block.</p>
     |         | 
 165 | WARNING | Possible use of ASP style opening tags detected;
     |         | found: <% if (hasPosts) { %>loading<% } else { %>...
 166 | WARNING | Possible use of ASP style opening tags detected;
     |         | found: <% if (hasPosts) { %>Loading...<% } else {...
 184 | WARNING | Possible use of ASP style opening tags detected;
     |         | found: <% posts.each(function(post, idx) { %>
     |         | 
 185 | WARNING | Possible use of ASP style short opening tags
     |         | detected; found: <%= post.get('ID') %>">
     |         | 
 186 | WARNING | Possible use of ASP style short opening tags
     |         | detected; found: <%= post.get('post_title') %>
     |         | 
 187 | WARNING | Possible use of ASP style short opening tags
     |         | detected; found: <%= post.getStatus() %></em></div>
     |         | 
 190 | WARNING | Possible use of ASP style short opening tags
     |         | detected; found: <%= post.get('ID') %>"
     |         | href="#">Edit</a> | ...
 193 | WARNING | Possible use of ASP style short opening tags
     |         | detected; found: <%= post.get('ID') %>"
     |         | href="#">Add</a>
     |         | 
 197 | WARNING | Possible use of ASP style opening tags detected;
     |         | found: <% }); %>
     |         | 
 202 | WARNING | Possible use of ASP style short opening tags
     |         | detected; found: <%= post_title %></h4>
     |         | 
 205 | WARNING | Possible use of ASP style short opening tags
     |         | detected; found: <%= post_title %>"/>
     |         | 
 209 | WARNING | Possible use of ASP style opening tags detected;
     |         | found: <% if (custom_fields.lr_subhed) { %>
     |         | 
 210 | WARNING | Possible use of ASP style short opening tags
     |         | detected; found: <%= custom_fields.lr_subhed %>"/>
     |         | 
 211 | WARNING | Possible use of ASP style opening tags detected;
     |         | found: <% } else { %>
     |         | 
 212 | WARNING | Possible use of ASP style short opening tags
     |         | detected; found: <%= custom_fields.lr_subhed %>"/>
     |         | 
 213 | WARNING | Possible use of ASP style opening tags detected;
     |         | found: <% } %>
     |         | 
 217 | WARNING | Possible use of ASP style opening tags detected;
     |         | found: <% if (custom_fields.lr_url) { %>
     |         | 
 218 | WARNING | Possible use of ASP style short opening tags
     |         | detected; found: <%= custom_fields.lr_url %>" />
     |         | 
 219 | WARNING | Possible use of ASP style opening tags detected;
     |         | found: <% } else if (post_permalink) { %>
     |         | 
 220 | WARNING | Possible use of ASP style short opening tags
     |         | detected; found: <%= post_permalink %>" />
     |         | 
 221 | WARNING | Possible use of ASP style opening tags detected;
     |         | found: <% } else { %>
     |         | 
 223 | WARNING | Possible use of ASP style opening tags detected;
     |         | found: <% } %>
     |         | 
 227 | WARNING | Possible use of ASP style opening tags detected;
     |         | found: <% if (custom_fields.lr_desc) { %>
     |         | 
 228 | WARNING | Possible use of ASP style short opening tags
     |         | detected; found: <%= custom_fields.lr_desc
     |         | %></textarea>
     |         | 
 229 | WARNING | Possible use of ASP style opening tags detected;
     |         | found: <% } else if (post_excerpt) { %>
     |         | 
 230 | WARNING | Possible use of ASP style short opening tags
     |         | detected; found: <%= post_excerpt %></textarea>
     |         | 
 231 | WARNING | Possible use of ASP style opening tags detected;
     |         | found: <% } else { %>
     |         | 
 233 | WARNING | Possible use of ASP style opening tags detected;
     |         | found: <% } %>
     |         | 
 237 | WARNING | Possible use of ASP style opening tags detected;
     |         | found: <% if (custom_fields.lr_source) { %>
     |         | 
 238 | WARNING | Possible use of ASP style short opening tags
     |         | detected; found: <%= custom_fields.lr_source %>" />
     |         | 
 239 | WARNING | Possible use of ASP style opening tags detected;
     |         | found: <% } else if (source) { %>
     |         | 
 240 | WARNING | Possible use of ASP style short opening tags
     |         | detected; found: <%= source %>" />
     |         | 
 241 | WARNING | Possible use of ASP style opening tags detected;
     |         | found: <% } else { %>
     |         | 
 243 | WARNING | Possible use of ASP style opening tags detected;
     |         | found: <% } %>
     |         | 
 249 | ERROR   | Doc comment for parameter "$add" missing
 275 | ERROR   | You must use "/**" style comments for a function
     |         | comment
 283 | ERROR   | $_POST data not unslashed before sanitization. Use
     |         | wp_unslash() or similar
 283 | ERROR   | Detected usage of a non-sanitized input variable:
     |         | $_POST['post']
 292 | WARNING | json_encode() is discouraged. Use wp_json_encode()
     |         | instead.
 304 | WARNING | json_encode() is discouraged. Use wp_json_encode()
     |         | instead.
 309 | ERROR   | Missing doc comment for function
     |         | roundup_block_posts_query()
 310 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
 334 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
 337 | ERROR   | Variable "$exisitingIds" is not in valid snake_case
     |         | format, try "$exisiting_ids"
 345 | ERROR   | Variable "$foundIds" is not in valid snake_case
     |         | format, try "$found_ids"
 345 | ERROR   | split() has been deprecated since PHP 5.3 and
     |         | removed in PHP 7.0, please use explode(),
     |         | str_split() or preg_split() instead.
 346 | ERROR   | Variable "$foundIds" is not in valid snake_case
     |         | format, try "$found_ids"
 347 | ERROR   | Variable "$exisitingIds" is not in valid snake_case
     |         | format, try "$exisiting_ids"
 355 | ERROR   | Processing form data without nonce verification.
 356 | ERROR   | Variable "$exisitingIds" is not in valid snake_case
     |         | format, try "$exisiting_ids"
 356 | ERROR   | $_POST data not unslashed before sanitization. Use
     |         | wp_unslash() or similar
 356 | ERROR   | Detected usage of a non-sanitized input variable:
     |         | $_POST['existingIds']
 356 | ERROR   | Processing form data without nonce verification.
 360 | ERROR   | Variable "$exisitingIds" is not in valid snake_case
     |         | format, try "$exisiting_ids"
 360 | ERROR   | Variable "$exisitingId" is not in valid snake_case
     |         | format, try "$exisiting_id"
 361 | WARNING | Not using strict comparison for in_array; supply
     |         | true for third argument.
 361 | ERROR   | Variable "$exisitingId" is not in valid snake_case
     |         | format, try "$exisiting_id"
 362 | ERROR   | Variable "$exisitingId" is not in valid snake_case
     |         | format, try "$exisiting_id"
 376 | ERROR   | Overriding WordPress globals is prohibited. Found
     |         | assignment to $post
 390 | ERROR   | You must use "/**" style comments for a function
     |         | comment
 393 | WARNING | json_encode() is discouraged. Use wp_json_encode()
     |         | instead.
 400 | ERROR   | Parameter comment must end with a full stop
 401 | ERROR   | Parameter comment must end with a full stop
 402 | ERROR   | Parameter comment must end with a full stop
 409 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
----------------------------------------------------------------------

FILE: ...largo/wp-content/plugins/link-roundups/inc/updates/functions.php
----------------------------------------------------------------------
FOUND 14 ERRORS AND 6 WARNINGS AFFECTING 11 LINES
----------------------------------------------------------------------
   1 | ERROR   | Missing file doc comment
   3 | ERROR   | Doc comment for parameter "$to" missing
   3 | ERROR   | Doc comment for parameter "$from" missing
  34 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
  54 | ERROR   | Doc comment for parameter "$to" missing
  54 | ERROR   | Doc comment for parameter "$from" missing
  81 | ERROR   | Doc comment for parameter "$to" missing
  81 | ERROR   | Doc comment for parameter "$from" missing
 106 | ERROR   | Doc comment for parameter "$old_post_type" missing
 106 | ERROR   | Doc comment for parameter "$new_post_type" missing
 113 | WARNING | Usage of a direct database call is discouraged.
 113 | WARNING | Direct database call without caching detected.
     |         | Consider using wp_cache_get() / wp_cache_set() or
     |         | wp_cache_delete().
 124 | ERROR   | Doc comment for parameter "$old_meta" missing
 124 | ERROR   | Doc comment for parameter "$new_meta" missing
 131 | WARNING | Usage of a direct database call is discouraged.
 131 | WARNING | Direct database call without caching detected.
     |         | Consider using wp_cache_get() / wp_cache_set() or
     |         | wp_cache_delete().
 142 | ERROR   | Doc comment for parameter "$old_tax" missing
 142 | ERROR   | Doc comment for parameter "$new_tax" missing
 149 | WARNING | Usage of a direct database call is discouraged.
 149 | WARNING | Direct database call without caching detected.
     |         | Consider using wp_cache_get() / wp_cache_set() or
     |         | wp_cache_delete().
----------------------------------------------------------------------

FILE: ...tes/largo/wp-content/plugins/link-roundups/inc/updates/index.php
----------------------------------------------------------------------
FOUND 21 ERRORS AND 14 WARNINGS AFFECTING 27 LINES
----------------------------------------------------------------------
   6 | ERROR   | Missing @package tag in file comment
  41 | WARNING | Words in hook names should be separated using
     |         | underscores. Expected:  'lroundups_update_0_3', but
     |         | found:  'lroundups_update_0.3'.
  53 | WARNING | Words in hook names should be separated using
     |         | underscores. Expected:  'lroundups_update_0_3_2',
     |         | but found:  'lroundups_update_0.3.2'.
  86 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
  91 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
  92 | WARNING | Found: ==. Use strict comparisons (=== or !==).
  92 | ERROR   | Use Yoda Condition checks, you must.
  93 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
  94 | WARNING | Found: ==. Use strict comparisons (=== or !==).
 120 | WARNING | Processing form data without nonce verification.
 120 | WARNING | Processing form data without nonce verification.
 120 | WARNING | Found: ==. Use strict comparisons (=== or !==).
 120 | ERROR   | Use Yoda Condition checks, you must.
 127 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '__'.
 127 | ERROR   | A gettext call containing placeholders was found,
     |         | but was not accompanied by a "translators:" comment
     |         | on the line above to clarify the meaning of the
     |         | placeholders.
 128 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found 'admin_url'.
 132 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found '__'.
 133 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found 'admin_url'.
 212 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
 216 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
 217 | ERROR   | All output should be run through an escaping
     |         | function (see the Security sections in the WordPress
     |         | Developer Handbooks), found 'lroundups_version'.
 221 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
 222 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
 223 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
 225 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
 227 | ERROR   | All output should be run through an escaping
     |         | function (like esc_html_e() or esc_attr_e()), found
     |         | '_e'.
 243 | WARNING | Processing form data without nonce verification.
 243 | WARNING | Processing form data without nonce verification.
 243 | WARNING | Found: ==. Use strict comparisons (=== or !==).
 243 | ERROR   | Use Yoda Condition checks, you must.
 244 | ERROR   | Version parameter is not explicitly set or has been
     |         | set to an equivalent of "false" for
     |         | wp_enqueue_script; This means that the WordPress
     |         | core version will be used which is not recommended
     |         | for plugin or theme development.
 262 | WARNING | json_encode() is discouraged. Use wp_json_encode()
     |         | instead.
 272 | WARNING | json_encode() is discouraged. Use wp_json_encode()
     |         | instead.
 284 | WARNING | json_encode() is discouraged. Use wp_json_encode()
     |         | instead.
 292 | WARNING | json_encode() is discouraged. Use wp_json_encode()
     |         | instead.
----------------------------------------------------------------------

FILE: ...tes/largo/wp-content/plugins/link-roundups/inc/compatibility.php
----------------------------------------------------------------------
FOUND 26 ERRORS AND 1 WARNING AFFECTING 11 LINES
----------------------------------------------------------------------
  1 | ERROR   | Missing file doc comment
 13 | ERROR   | Variable "$pageURL" is not in valid snake_case
    |         | format, try "$page_u_r_l"
 16 | ERROR   | Variable "$pageURL" is not in valid snake_case
    |         | format, try "$page_u_r_l"
 19 | ERROR   | Variable "$pageURL" is not in valid snake_case
    |         | format, try "$page_u_r_l"
 21 | WARNING | Found: !=. Use strict comparisons (=== or !==).
 21 | ERROR   | Use Yoda Condition checks, you must.
 22 | ERROR   | Variable "$pageURL" is not in valid snake_case
    |         | format, try "$page_u_r_l"
 22 | ERROR   | Detected usage of a possibly undefined superglobal
    |         | array index: $_SERVER['SERVER_NAME']. Use isset() or
    |         | empty() to check the index exists before using it
 22 | ERROR   | $_SERVER data not unslashed before sanitization. Use
    |         | wp_unslash() or similar
 22 | ERROR   | Detected usage of a non-sanitized input variable:
    |         | $_SERVER['SERVER_NAME']
 22 | ERROR   | $_SERVER data not unslashed before sanitization. Use
    |         | wp_unslash() or similar
 22 | ERROR   | Detected usage of a non-sanitized input variable:
    |         | $_SERVER['SERVER_PORT']
 22 | ERROR   | Detected usage of a possibly undefined superglobal
    |         | array index: $_SERVER['REQUEST_URI']. Use isset() or
    |         | empty() to check the index exists before using it
 22 | ERROR   | $_SERVER data not unslashed before sanitization. Use
    |         | wp_unslash() or similar
 22 | ERROR   | Detected usage of a non-sanitized input variable:
    |         | $_SERVER['REQUEST_URI']
 24 | ERROR   | Variable "$pageURL" is not in valid snake_case
    |         | format, try "$page_u_r_l"
 24 | ERROR   | Detected usage of a possibly undefined superglobal
    |         | array index: $_SERVER['SERVER_NAME']. Use isset() or
    |         | empty() to check the index exists before using it
 24 | ERROR   | $_SERVER data not unslashed before sanitization. Use
    |         | wp_unslash() or similar
 24 | ERROR   | Detected usage of a non-sanitized input variable:
    |         | $_SERVER['SERVER_NAME']
 24 | ERROR   | Detected usage of a possibly undefined superglobal
    |         | array index: $_SERVER['REQUEST_URI']. Use isset() or
    |         | empty() to check the index exists before using it
 24 | ERROR   | $_SERVER data not unslashed before sanitization. Use
    |         | wp_unslash() or similar
 24 | ERROR   | Detected usage of a non-sanitized input variable:
    |         | $_SERVER['REQUEST_URI']
 27 | ERROR   | Variable "$pageURL" is not in valid snake_case
    |         | format, try "$page_u_r_l"
 28 | ERROR   | Variable "$newURL" is not in valid snake_case format,
    |         | try "$new_u_r_l"
 28 | ERROR   | Variable "$pageURL" is not in valid snake_case
    |         | format, try "$page_u_r_l"
 30 | ERROR   | Inline comments must end in full-stops, exclamation
    |         | marks, or question marks
 31 | ERROR   | Variable "$newURL" is not in valid snake_case format,
    |         | try "$new_u_r_l"
----------------------------------------------------------------------

FILE: ...k/sites/largo/wp-content/plugins/link-roundups/link-roundups.php
----------------------------------------------------------------------
FOUND 8 ERRORS AND 5 WARNINGS AFFECTING 6 LINES
----------------------------------------------------------------------
   2 | ERROR   | You must use "/**" style comments for a file comment
   2 | ERROR   | Empty line required before block comment
  30 | WARNING | error_log() found. Debug code should not normally be
     |         | used in production.
  45 | ERROR   | Inline comments must end in full-stops, exclamation
     |         | marks, or question marks
 119 | ERROR   | Resource version not set in call to
     |         | wp_register_style(). This means new versions of the
     |         | style will not always be loaded due to browser
     |         | caching.
 122 | WARNING | Found: ==. Use strict comparisons (=== or !==).
 122 | ERROR   | Use Yoda Condition checks, you must.
 122 | WARNING | Found: ==. Use strict comparisons (=== or !==).
 122 | ERROR   | Use Yoda Condition checks, you must.
 122 | WARNING | Found: ==. Use strict comparisons (=== or !==).
 122 | ERROR   | Use Yoda Condition checks, you must.
 127 | WARNING | Found: ==. Use strict comparisons (=== or !==).
 127 | ERROR   | Use Yoda Condition checks, you must.
----------------------------------------------------------------------

FILE: ...tes/largo/wp-content/plugins/link-roundups/templates/options.php
----------------------------------------------------------------------
FOUND 39 ERRORS AND 2 WARNINGS AFFECTING 34 LINES
----------------------------------------------------------------------
  2 | ERROR   | Missing file doc comment
  2 | ERROR   | All output should be run through an escaping function
    |         | (like esc_html_e() or esc_attr_e()), found '_e'.
  6 | ERROR   | All output should be run through an escaping function
    |         | (like esc_html_e() or esc_attr_e()), found '_e'.
 10 | ERROR   | All output should be run through an escaping function
    |         | (see the Security sections in the WordPress Developer
    |         | Handbooks), found '__'.
 10 | ERROR   | A gettext call containing placeholders was found, but
    |         | was not accompanied by a "translators:" comment on
    |         | the line above to clarify the meaning of the
    |         | placeholders.
 15 | ERROR   | All output should be run through an escaping function
    |         | (like esc_html_e() or esc_attr_e()), found '_e'.
 15 | ERROR   | All output should be run through an escaping function
    |         | (like esc_html_e() or esc_attr_e()), found '_e'.
 21 | ERROR   | All output should be run through an escaping function
    |         | (like esc_html_e() or esc_attr_e()), found '_e'.
 22 | ERROR   | All output should be run through an escaping function
    |         | (like esc_html_e() or esc_attr_e()), found '_e'.
 25 | ERROR   | All output should be run through an escaping function
    |         | (see the Security sections in the WordPress Developer
    |         | Handbooks), found '__'.
 25 | ERROR   | A gettext call containing placeholders was found, but
    |         | was not accompanied by a "translators:" comment on
    |         | the line above to clarify the meaning of the
    |         | placeholders.
 29 | ERROR   | All output should be run through an escaping function
    |         | (like esc_html_e() or esc_attr_e()), found '_e'.
 30 | ERROR   | All output should be run through an escaping function
    |         | (like esc_html_e() or esc_attr_e()), found '_e'.
 31 | ERROR   | All output should be run through an escaping function
    |         | (see the Security sections in the WordPress Developer
    |         | Handbooks), found 'get_option'.
 32 | ERROR   | All output should be run through an escaping function
    |         | (like esc_html_e() or esc_attr_e()), found '_e'.
 33 | ERROR   | All output should be run through an escaping function
    |         | (see the Security sections in the WordPress Developer
    |         | Handbooks), found 'get_option'.
 35 | ERROR   | All output should be run through an escaping function
    |         | (like esc_html_e() or esc_attr_e()), found '_e'.
 36 | ERROR   | All output should be run through an escaping function
    |         | (like esc_html_e() or esc_attr_e()), found '_e'.
 38 | ERROR   | All output should be run through an escaping function
    |         | (see the Security sections in the WordPress Developer
    |         | Handbooks), found 'get_site_url'.
 44 | ERROR   | Inline comments must end in full-stops, exclamation
    |         | marks, or question marks
 46 | ERROR   | Inline comments must end in full-stops, exclamation
    |         | marks, or question marks
 48 | ERROR   | All output should be run through an escaping function
    |         | (see the Security sections in the WordPress Developer
    |         | Handbooks), found '$current_slug'.
 52 | ERROR   | All output should be run through an escaping function
    |         | (see the Security sections in the WordPress Developer
    |         | Handbooks), found '$custom_slug'.
 53 | ERROR   | All output should be run through an escaping function
    |         | (like esc_html_e() or esc_attr_e()), found '_e'.
 56 | ERROR   | All output should be run through an escaping function
    |         | (see the Security sections in the WordPress Developer
    |         | Handbooks), found '__'.
 56 | ERROR   | A gettext call containing placeholders was found, but
    |         | was not accompanied by a "translators:" comment on
    |         | the line above to clarify the meaning of the
    |         | placeholders.
 57 | ERROR   | All output should be run through an escaping function
    |         | (see the Security sections in the WordPress Developer
    |         | Handbooks), found 'admin_url'.
 62 | ERROR   | All output should be run through an escaping function
    |         | (like esc_html_e() or esc_attr_e()), found '_e'.
 63 | ERROR   | All output should be run through an escaping function
    |         | (like esc_html_e() or esc_attr_e()), found '_e'.
 64 | WARNING | Found: !=. Use strict comparisons (=== or !==).
 64 | ERROR   | All output should be run through an escaping function
    |         | (see the Security sections in the WordPress Developer
    |         | Handbooks), found 'get_option'.
 64 | ERROR   | All output should be run through an escaping function
    |         | (see the Security sections in the WordPress Developer
    |         | Handbooks), found 'SavedLinks'.
 68 | WARNING | json_encode() is discouraged. Use wp_json_encode()
    |         | instead.
 71 | ERROR   | All output should be run through an escaping function
    |         | (like esc_html_e() or esc_attr_e()), found '_e'.
 77 | ERROR   | All output should be run through an escaping function
    |         | (like esc_html_e() or esc_attr_e()), found '_e'.
 78 | ERROR   | All output should be run through an escaping function
    |         | (like esc_html_e() or esc_attr_e()), found '_e'.
 81 | 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 '__'.
 84 | ERROR   | All output should be run through an escaping function
    |         | (see the Security sections in the WordPress Developer
    |         | Handbooks), found '__'.
 85 | ERROR   | All output should be run through an escaping function
    |         | (see the Security sections in the WordPress Developer
    |         | Handbooks), found '__'.
 90 | ERROR   | All output should be run through an escaping function
    |         | (like esc_html_e() or esc_attr_e()), found '_e'.
----------------------------------------------------------------------