rules 2026.10.7-provisional platform PHP: WordPress (plugin header in advanced-custom-post-type.php) advanced-custom-post-type/admin/index.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: not graded NamingConvention: not graded Security: not graded advanced-custom-post-type/admin/templates/app.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on file level code Duplication: 100 (A), based on 29 code lines NamingConvention: 100 (A), based on 4 names Security: not graded 31:21 [warning] security.unescaped_output - echo of `strtoupper(ACPT_SKIN)` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 34:31 [warning] security.unescaped_output - echo of `$footerBg` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 35:26 [warning] security.unescaped_output - echo of `$footerColor` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 39:26 [warning] security.unescaped_output - echo of `$footerLinkColor` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 44:26 [warning] security.unescaped_output - echo of `$footerLinkHoverColor` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 48:39 [warning] security.unescaped_output - echo of `$footerBg` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) advanced-custom-post-type/advanced-custom-post-type.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function and file level code Duplication: 100 (A), based on 40 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/assets/vendor/ not analysed: Dependency advanced-custom-post-type/functions/_inc/settings/blocks.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions and file level code Duplication: 100 (A), based on 55 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/functions/_inc/settings/forms.php (other) CodeLength: not graded 174:14 [warning] length.function - save_acpt_form_field has 67 lines in its body, above 50 CyclomaticComplexity: 94 (A), based on 7 functions and file level code 174:14 [warning] complexity.function - save_acpt_form_field has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 204 code lines 303:1 [warning] duplication.repeated_block - lines 303 to 318 repeat lines 256 to 271 (71 tokens); repeated code has to be fixed in every copy NamingConvention: 96 (A), based on 27 names 277:14 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/functions/_inc/settings/meta.php (other) CodeLength: not graded 138:14 [warning] length.function - save_acpt_meta_box has 64 lines in its body, above 50 375:14 [error] length.function - save_acpt_meta_field has 148 lines in its body, above 100 1:1 [warning] length.file - the file has 741 lines, above 600 for a other CyclomaticComplexity: 75 (C), based on 17 functions and file level code 138:14 [warning] complexity.function - save_acpt_meta_box has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely 375:14 [error] complexity.function - save_acpt_meta_field has a cyclomatic complexity of 27, high risk (above 10): each of its 27 paths needs its own test, which makes it hard to follow and to change safely 10:1 [warning] complexity.file_code - file level code has a cyclomatic complexity of 18, moderate risk (above 10): each of its 18 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 439 code lines 227:1 [warning] duplication.repeated_block - lines 227 to 243 repeat lines 28 to 44 (50 tokens); repeated code has to be fixed in every copy 398:1 [warning] duplication.repeated_block - lines 398 to 412 repeat lines 167 to 175 (58 tokens); repeated code has to be fixed in every copy 511:1 [warning] duplication.repeated_block - lines 511 to 526 repeat lines 190 to 205 (54 tokens); repeated code has to be fixed in every copy NamingConvention: 83 (B), based on 60 names 162:14 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds 280:14 [warning] naming.too_long - function `_acpt_remove_field_by_id_recursive` is 34 characters (limit 30); very long names make code hard to read 311:14 [warning] naming.too_long - function `_acpt_replace_field_by_id_recursive` is 35 characters (limit 30); very long names make code hard to read 345:14 [warning] naming.too_long - function `_acpt_find_field_by_name_recursive` is 34 characters (limit 30); very long names make code hard to read 650:14 [warning] naming.too_long - function `get_acpt_meta_field_advanced_option` is 35 characters (limit 30); very long names make code hard to read 650:58 [warning] naming.inconsistent_style - parameter `box_name` is snake_case, while most variables and parameters in this file are camelCase (21 of 43 names); mixed styles make code harder to scan 650:76 [warning] naming.inconsistent_style - parameter `field_name` is snake_case, while most variables and parameters in this file are camelCase (21 of 43 names); mixed styles make code harder to scan 652:10 [warning] naming.inconsistent_style - variable `field_object` is snake_case, while most variables and parameters in this file are camelCase (21 of 43 names); mixed styles make code harder to scan 683:10 [warning] naming.inconsistent_style - variable `field_object_array` is snake_case, while most variables and parameters in this file are camelCase (21 of 43 names); mixed styles make code harder to scan 711:14 [warning] naming.too_long - function `get_acpt_meta_field_before_and_after` is 36 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/functions/_inc/settings/option_pages.php (other) CodeLength: not graded 34:14 [warning] length.function - register_acpt_option_page has 63 lines in its body, above 50 CyclomaticComplexity: 84 (B), based on 2 functions and file level code 34:14 [warning] complexity.function - register_acpt_option_page has a cyclomatic complexity of 18, moderate risk (above 10): each of its 18 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 64 code lines NamingConvention: 77 (C), based on 13 names 109:46 [warning] naming.inconsistent_style - parameter `page_slug` is snake_case, while most variables and parameters in this file are camelCase (4 of 11 names); mixed styles make code harder to scan 109:63 [warning] naming.inconsistent_style - parameter `delete_options` is snake_case, while most variables and parameters in this file are camelCase (4 of 11 names); mixed styles make code harder to scan 116:14 [warning] naming.inconsistent_style - variable `option_page` is snake_case, while most variables and parameters in this file are camelCase (4 of 11 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/functions/_inc/settings/posts.php (other) CodeLength: not graded 18:14 [warning] length.function - register_acpt_post_type has 59 lines in its body, above 50 CyclomaticComplexity: 82 (B), based on 2 functions and file level code 18:14 [warning] complexity.function - register_acpt_post_type has a cyclomatic complexity of 17, moderate risk (above 10): each of its 17 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 66 code lines NamingConvention: 78 (C), based on 9 names 34:18 [warning] naming.inconsistent_style - variable `defaultsModel` is camelCase, while most variables and parameters in this file are snake_case (2 of 7 names); mixed styles make code harder to scan 56:14 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/functions/_inc/settings/table_groups.php (other) CodeLength: not graded 28:14 [warning] length.function - save_acpt_table_group has 55 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 3 functions and file level code Duplication: 100 (A), based on 69 code lines NamingConvention: 100 (A), based on 11 names Security: not graded advanced-custom-post-type/functions/_inc/settings/tables.php (other) CodeLength: not graded 45:14 [error] length.function - save_acpt_table has 134 lines in its body, above 100 CyclomaticComplexity: 73 (C), based on 7 functions and file level code 45:14 [error] complexity.function - save_acpt_table has a cyclomatic complexity of 27, high risk (above 10): each of its 27 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 193 code lines 315:1 [warning] duplication.repeated_block - lines 315 to 334 repeat lines 182 to 201 (57 tokens); repeated code has to be fixed in every copy 346:1 [warning] duplication.repeated_block - lines 346 to 365 repeat lines 182 to 201 (57 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 24 names Security: not graded advanced-custom-post-type/functions/_inc/settings/tax.php (other) CodeLength: not graded 21:14 [warning] length.function - register_acpt_taxonomy has 88 lines in its body, above 50 CyclomaticComplexity: 87 (B), based on 4 functions and file level code 21:14 [warning] complexity.function - register_acpt_taxonomy has a cyclomatic complexity of 18, moderate risk (above 10): each of its 18 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 144 code lines NamingConvention: 72 (C), based on 18 names 65:18 [warning] naming.inconsistent_style - variable `defaultsModel` is camelCase, while most variables and parameters in this file are snake_case (5 of 14 names); mixed styles make code harder to scan 89:14 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds 146:14 [warning] naming.too_long - function `assoc_acpt_taxonomy_to_acpt_post` is 32 characters (limit 30); very long names make code hard to read 161:14 [warning] naming.inconsistent_style - variable `modelOptions` is camelCase, while most variables and parameters in this file are snake_case (5 of 14 names); mixed styles make code harder to scan 203:14 [warning] naming.too_long - function `remove_assoc_acpt_taxonomy_from_acpt_post` is 41 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/functions/_inc/values/meta_get.php (other) CodeLength: not graded 25:14 [error] length.function - get_acpt_fields has 140 lines in its body, above 100 273:14 [error] length.function - get_acpt_field has 193 lines in its body, above 100 475:14 [error] length.function - get_acpt_child_field has 146 lines in its body, above 100 630:14 [error] length.function - get_acpt_block has 158 lines in its body, above 100 796:14 [error] length.function - get_acpt_block_child_field has 158 lines in its body, above 100 963:14 [error] length.function - acpt_field has 156 lines in its body, above 100 1143:14 [error] length.function - is_acpt_field_visible has 284 lines in its body, above 100 1:1 [error] length.file - the file has 1428 lines, above 1200 for a other CyclomaticComplexity: 30 (F), based on 9 functions and file level code 25:14 [error] complexity.function - get_acpt_fields has a cyclomatic complexity of 24, high risk (above 10): each of its 24 paths needs its own test, which makes it hard to follow and to change safely 178:14 [warning] complexity.function - acpt_field_has_rows has a cyclomatic complexity of 15, moderate risk (above 10): each of its 15 paths needs its own test, which makes it hard to follow and to change safely 223:14 [warning] complexity.function - acpt_field_has_blocks has a cyclomatic complexity of 16, moderate risk (above 10): each of its 16 paths needs its own test, which makes it hard to follow and to change safely 273:14 [error] complexity.function - get_acpt_field has a cyclomatic complexity of 35, high risk (above 10): each of its 35 paths needs its own test, which makes it hard to follow and to change safely 475:14 [error] complexity.function - get_acpt_child_field has a cyclomatic complexity of 37, high risk (above 10): each of its 37 paths needs its own test, which makes it hard to follow and to change safely 630:14 [error] complexity.function - get_acpt_block has a cyclomatic complexity of 42, high risk (above 10): each of its 42 paths needs its own test, which makes it hard to follow and to change safely 796:14 [error] complexity.function - get_acpt_block_child_field has a cyclomatic complexity of 43, high risk (above 10): each of its 43 paths needs its own test, which makes it hard to follow and to change safely 963:14 [error] complexity.function - acpt_field has a cyclomatic complexity of 32, high risk (above 10): each of its 32 paths needs its own test, which makes it hard to follow and to change safely 1143:14 [error] complexity.function - is_acpt_field_visible has a cyclomatic complexity of 69, untestable risk (above 10): each of its 69 paths needs its own test, which makes it hard to follow and to change safely Duplication: 0 (F), based on 1178 code lines 135:1 [warning] duplication.repeated_block - lines 135 to 142 repeat lines 111 to 118 (70 tokens); repeated code has to be fixed in every copy 218:1 [warning] duplication.repeated_block - lines 218 to 239 repeat lines 168 to 193 (150 tokens); repeated code has to be fixed in every copy 274:1 [warning] duplication.repeated_block - lines 274 to 303 repeat lines 26 to 55 (141 tokens); repeated code has to be fixed in every copy 476:1 [warning] duplication.repeated_block - lines 476 to 494 repeat lines 27 to 46 (89 tokens); repeated code has to be fixed in every copy 516:1 [warning] duplication.repeated_block - lines 516 to 535 repeat lines 312 to 331 (89 tokens); repeated code has to be fixed in every copy 564:1 [warning] duplication.repeated_block - lines 564 to 571 repeat lines 555 to 562 (84 tokens); repeated code has to be fixed in every copy 573:1 [warning] duplication.repeated_block - lines 573 to 580 repeat lines 555 to 562 (84 tokens); repeated code has to be fixed in every copy 582:1 [warning] duplication.repeated_block - lines 582 to 589 repeat lines 555 to 562 (84 tokens); repeated code has to be fixed in every copy 591:1 [warning] duplication.repeated_block - lines 591 to 598 repeat lines 555 to 562 (77 tokens); repeated code has to be fixed in every copy 631:1 [warning] duplication.repeated_block - lines 631 to 659 repeat lines 27 to 55 (139 tokens); repeated code has to be fixed in every copy 668:1 [warning] duplication.repeated_block - lines 668 to 687 repeat lines 312 to 331 (89 tokens); repeated code has to be fixed in every copy 702:1 [warning] duplication.repeated_block - lines 702 to 709 repeat lines 551 to 558 (58 tokens); repeated code has to be fixed in every copy 710:1 [warning] duplication.repeated_block - lines 710 to 718 repeat lines 559 to 567 (77 tokens); repeated code has to be fixed in every copy 718:1 [warning] duplication.repeated_block - lines 718 to 722 repeat lines 709 to 713 (53 tokens); repeated code has to be fixed in every copy 722:1 [warning] duplication.repeated_block - lines 722 to 727 repeat lines 571 to 576 (50 tokens); repeated code has to be fixed in every copy 727:1 [warning] duplication.repeated_block - lines 727 to 731 repeat lines 709 to 713 (53 tokens); repeated code has to be fixed in every copy 731:1 [warning] duplication.repeated_block - lines 731 to 736 repeat lines 580 to 585 (50 tokens); repeated code has to be fixed in every copy 736:1 [warning] duplication.repeated_block - lines 736 to 740 repeat lines 709 to 713 (53 tokens); repeated code has to be fixed in every copy 740:1 [warning] duplication.repeated_block - lines 740 to 745 repeat lines 589 to 594 (50 tokens); repeated code has to be fixed in every copy 791:1 [warning] duplication.repeated_block - lines 791 to 816 repeat lines 469 to 494 (102 tokens); repeated code has to be fixed in every copy 816:1 [warning] duplication.repeated_block - lines 816 to 825 repeat lines 46 to 55 (50 tokens); repeated code has to be fixed in every copy 825:1 [warning] duplication.repeated_block - lines 825 to 840 repeat lines 503 to 518 (76 tokens); repeated code has to be fixed in every copy 845:1 [warning] duplication.repeated_block - lines 845 to 876 repeat lines 515 to 546 (130 tokens); repeated code has to be fixed in every copy 878:1 [warning] duplication.repeated_block - lines 878 to 886 repeat lines 700 to 708 (78 tokens); repeated code has to be fixed in every copy 886:1 [warning] duplication.repeated_block - lines 886 to 895 repeat lines 557 to 566 (102 tokens); repeated code has to be fixed in every copy 895:1 [warning] duplication.repeated_block - lines 895 to 900 repeat lines 886 to 891 (66 tokens); repeated code has to be fixed in every copy 902:1 [warning] duplication.repeated_block - lines 902 to 909 repeat lines 884 to 891 (93 tokens); repeated code has to be fixed in every copy 911:1 [warning] duplication.repeated_block - lines 911 to 918 repeat lines 884 to 891 (93 tokens); repeated code has to be fixed in every copy 920:1 [warning] duplication.repeated_block - lines 920 to 927 repeat lines 884 to 891 (86 tokens); repeated code has to be fixed in every copy 964:1 [warning] duplication.repeated_block - lines 964 to 993 repeat lines 27 to 55 (139 tokens); repeated code has to be fixed in every copy 1144:1 [warning] duplication.repeated_block - lines 1144 to 1171 repeat lines 27 to 55 (139 tokens); repeated code has to be fixed in every copy 1183:1 [warning] duplication.repeated_block - lines 1183 to 1197 repeat lines 837 to 851 (74 tokens); repeated code has to be fixed in every copy 1217:1 [warning] duplication.repeated_block - lines 1217 to 1221 repeat lines 1055 to 1059 (61 tokens); repeated code has to be fixed in every copy 1292:1 [warning] duplication.repeated_block - lines 1292 to 1327 repeat lines 1249 to 1284 (209 tokens); repeated code has to be fixed in every copy 1333:1 [warning] duplication.repeated_block - lines 1333 to 1354 repeat lines 1249 to 1266 (132 tokens); repeated code has to be fixed in every copy 1370:1 [warning] duplication.repeated_block - lines 1370 to 1381 repeat lines 1255 to 1266 (115 tokens); repeated code has to be fixed in every copy NamingConvention: 72 (C), based on 74 names 95:14 [warning] naming.inconsistent_style - variable `boxName` is camelCase, while most variables and parameters in this file are snake_case (29 of 65 names); mixed styles make code harder to scan 188:18 [warning] naming.inconsistent_style - variable `tableModel` is camelCase, while most variables and parameters in this file are snake_case (29 of 65 names); mixed styles make code harder to scan 190:22 [warning] naming.inconsistent_style - variable `fieldNameKey` is camelCase, while most variables and parameters in this file are snake_case (29 of 65 names); mixed styles make code harder to scan 412:22 [warning] naming.inconsistent_style - variable `stubGroup` is camelCase, while most variables and parameters in this file are snake_case (29 of 65 names); mixed styles make code harder to scan 414:57 [warning] naming.inconsistent_style - variable `stubBox` is camelCase, while most variables and parameters in this file are snake_case (29 of 65 names); mixed styles make code harder to scan 415:60 [warning] naming.inconsistent_style - variable `stubField` is camelCase, while most variables and parameters in this file are snake_case (29 of 65 names); mixed styles make code harder to scan 435:18 [warning] naming.too_short - variable `r` is 1 character (at least 2); a one letter name hides its meaning 548:10 [warning] naming.inconsistent_style - variable `parentFieldName` is camelCase, while most variables and parameters in this file are snake_case (29 of 65 names); mixed styles make code harder to scan 608:10 [warning] naming.inconsistent_style - variable `fieldName` is camelCase, while most variables and parameters in this file are snake_case (29 of 65 names); mixed styles make code harder to scan 700:10 [warning] naming.inconsistent_style - variable `blockName` is camelCase, while most variables and parameters in this file are snake_case (29 of 65 names); mixed styles make code harder to scan 773:87 [warning] naming.inconsistent_style - variable `nestedBlockName` is camelCase, while most variables and parameters in this file are snake_case (29 of 65 names); mixed styles make code harder to scan 877:10 [warning] naming.inconsistent_style - variable `blockIndex` is camelCase, while most variables and parameters in this file are snake_case (29 of 65 names); mixed styles make code harder to scan 1055:10 [warning] naming.inconsistent_style - variable `shortCode` is camelCase, while most variables and parameters in this file are snake_case (29 of 65 names); mixed styles make code harder to scan 1056:10 [warning] naming.inconsistent_style - variable `postId` is camelCase, while most variables and parameters in this file are snake_case (29 of 65 names); mixed styles make code harder to scan 1057:10 [warning] naming.inconsistent_style - variable `termId` is camelCase, while most variables and parameters in this file are snake_case (29 of 65 names); mixed styles make code harder to scan 1058:10 [warning] naming.inconsistent_style - variable `userId` is camelCase, while most variables and parameters in this file are snake_case (29 of 65 names); mixed styles make code harder to scan 1059:10 [warning] naming.inconsistent_style - variable `wcProductAttribute` is camelCase, while most variables and parameters in this file are snake_case (29 of 65 names); mixed styles make code harder to scan 1060:10 [warning] naming.inconsistent_style - variable `optionPage` is camelCase, while most variables and parameters in this file are snake_case (29 of 65 names); mixed styles make code harder to scan 1063:10 [warning] naming.inconsistent_style - variable `dateFormat` is camelCase, while most variables and parameters in this file are snake_case (29 of 65 names); mixed styles make code harder to scan 1064:10 [warning] naming.inconsistent_style - variable `timeFormat` is camelCase, while most variables and parameters in this file are snake_case (29 of 65 names); mixed styles make code harder to scan 1225:14 [warning] naming.inconsistent_style - variable `belongsTo` is camelCase, while most variables and parameters in this file are snake_case (29 of 65 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/functions/_inc/values/meta_set.php (other) CodeLength: not graded 26:14 [error] length.function - save_acpt_meta_field_value has 145 lines in its body, above 100 183:14 [warning] length.function - append_acpt_meta_field_value has 88 lines in its body, above 50 282:14 [warning] length.function - delete_acpt_meta_field_value has 77 lines in its body, above 50 397:10 [warning] length.function - _acpt_save_cct_field_value has 69 lines in its body, above 50 527:10 [warning] length.function - _acpt_append_cct_field_value has 72 lines in its body, above 50 CyclomaticComplexity: 61 (D), based on 7 functions and file level code 26:14 [error] complexity.function - save_acpt_meta_field_value has a cyclomatic complexity of 26, high risk (above 10): each of its 26 paths needs its own test, which makes it hard to follow and to change safely 183:14 [warning] complexity.function - append_acpt_meta_field_value has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely 397:10 [warning] complexity.function - _acpt_save_cct_field_value has a cyclomatic complexity of 16, moderate risk (above 10): each of its 16 paths needs its own test, which makes it hard to follow and to change safely 471:10 [warning] complexity.function - _acpt_delete_cct_field_value has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely 527:10 [error] complexity.function - _acpt_append_cct_field_value has a cyclomatic complexity of 21, high risk (above 10): each of its 21 paths needs its own test, which makes it hard to follow and to change safely Duplication: 0 (F), based on 427 code lines 174:1 [warning] duplication.repeated_block - lines 174 to 225 repeat lines 15 to 72 (219 tokens); repeated code has to be fixed in every copy 238:1 [warning] duplication.repeated_block - lines 238 to 245 repeat lines 94 to 101 (60 tokens); repeated code has to be fixed in every copy 274:1 [warning] duplication.repeated_block - lines 274 to 322 repeat lines 15 to 66 (210 tokens); repeated code has to be fixed in every copy 323:1 [warning] duplication.repeated_block - lines 323 to 336 repeat lines 228 to 241 (93 tokens); repeated code has to be fixed in every copy 481:1 [warning] duplication.repeated_block - lines 481 to 495 repeat lines 419 to 433 (74 tokens); repeated code has to be fixed in every copy 508:1 [warning] duplication.repeated_block - lines 508 to 530 repeat lines 460 to 474 (77 tokens); repeated code has to be fixed in every copy 533:1 [warning] duplication.repeated_block - lines 533 to 549 repeat lines 403 to 419 (65 tokens); repeated code has to be fixed in every copy 549:1 [warning] duplication.repeated_block - lines 549 to 565 repeat lines 419 to 439 (72 tokens); repeated code has to be fixed in every copy 573:1 [warning] duplication.repeated_block - lines 573 to 599 repeat lines 433 to 466 (128 tokens); repeated code has to be fixed in every copy NamingConvention: 83 (B), based on 30 names 30:14 [warning] naming.inconsistent_style - variable `mandatory_keys` is snake_case, while most variables and parameters in this file are camelCase (7 of 23 names); mixed styles make code harder to scan 87:14 [warning] naming.inconsistent_style - variable `forged_by` is snake_case, while most variables and parameters in this file are camelCase (7 of 23 names); mixed styles make code harder to scan 94:14 [warning] naming.inconsistent_style - variable `meta_field_model` is snake_case, while most variables and parameters in this file are camelCase (7 of 23 names); mixed styles make code harder to scan 114:14 [warning] naming.inconsistent_style - variable `skip_validation` is snake_case, while most variables and parameters in this file are camelCase (7 of 23 names); mixed styles make code harder to scan 439:6 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/functions/_inc/wp_all_export/wpae_acpt_export_all_fields.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function and file level code Duplication: 100 (A), based on 15 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/functions/_inc/wp_all_export/wpae_acpt_export_all_table_records.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function and file level code Duplication: 100 (A), based on 23 code lines NamingConvention: 86 (B), based on 7 names 24:14 [warning] naming.too_long - function `wpae_acpt_export_all_table_records` is 34 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/functions/_inc/wp_all_export/wpae_acpt_export_all_tax_fields.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function and file level code Duplication: 100 (A), based on 19 code lines NamingConvention: 83 (B), based on 6 names 20:14 [warning] naming.too_long - function `wpae_acpt_export_all_tax_fields` is 31 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/functions/_inc/wp_all_export/wpae_acpt_export_all_tax_table_records.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function and file level code Duplication: 100 (A), based on 27 code lines NamingConvention: 88 (B), based on 8 names 24:14 [warning] naming.too_long - function `wpae_acpt_export_all_tax_table_records` is 38 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/functions/_inc/wp_all_export/wpae_acpt_export_all_user_fields.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function and file level code Duplication: 100 (A), based on 13 code lines NamingConvention: 75 (C), based on 4 names 20:14 [warning] naming.too_long - function `wpae_acpt_export_all_user_fields` is 32 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/functions/_inc/wp_all_export/wpae_acpt_export_all_user_table_records.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function and file level code Duplication: 100 (A), based on 19 code lines NamingConvention: 83 (B), based on 6 names 24:14 [warning] naming.too_long - function `wpae_acpt_export_all_user_table_records` is 39 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/functions/acpt_functions.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on file level code Duplication: 100 (A), based on 10 code lines NamingConvention: not graded Security: not graded advanced-custom-post-type/functions/polyfills.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions and file level code Duplication: 100 (A), based on 33 code lines NamingConvention: 90 (A), based on 10 names 71:35 [warning] naming.too_short - variable `v` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/index.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: not graded NamingConvention: not graded Security: not graded advanced-custom-post-type/init/bootstrap.php (other) CodeLength: not graded 33:10 [warning] length.function - activateLicenseFromCredentials has 74 lines in its body, above 50 175:10 [warning] length.function - checkForACPTPluginUpgrades has 75 lines in its body, above 50 CyclomaticComplexity: 90 (A), based on 6 functions 175:10 [warning] complexity.function - checkForACPTPluginUpgrades has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 156 code lines NamingConvention: 92 (A), based on 26 names 150:32 [warning] naming.inconsistent_style - parameter `old_version` is snake_case, while most variables and parameters in this file are camelCase (7 of 20 names); mixed styles make code harder to scan 185:4 [warning] naming.inconsistent_style - variable `current_version` is snake_case, while most variables and parameters in this file are camelCase (7 of 20 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/migrations/202209011000_create_custom_post_type_table.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 22 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/migrations/202209021000_create_meta_box_table.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 22 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/migrations/202209031000_create_meta_field_table.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 22 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/migrations/202209041000_create_meta_option_table.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 22 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/migrations/202209051000_create_meta_advanced_option_table.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 22 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/migrations/202209061000_create_meta_relation_table.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 22 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/migrations/202209071000_create_import_table.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 22 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/migrations/202209081000_create_taxonomy_table.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 27 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/migrations/202209091000_create_template_table.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 22 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/migrations/202209101000_create_settings_table.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 22 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/migrations/202209111000_create_wp_pd_table.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 22 code lines NamingConvention: 75 (C), based on 4 names 6:7 [warning] naming.too_long - class `CreateWooCommerceProductDataTable` is 33 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/migrations/202209121000_create_wp_pd_field_table.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 22 code lines NamingConvention: 75 (C), based on 4 names 6:7 [warning] naming.too_long - class `CreateWooCommerceProductDataFieldTable` is 38 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/migrations/202209131000_create_wp_pd_option_table.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 22 code lines NamingConvention: 75 (C), based on 4 names 6:7 [warning] naming.too_long - class `CreateWooCommerceProductDataOptionTable` is 39 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/migrations/202209141000_create_api_key_table.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 22 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/migrations/202209151000_create_user_meta_box_table.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 22 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/migrations/202209161000_create_user_meta_field_table.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 22 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/migrations/202209171000_create_user_meta_option_table.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 22 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/migrations/202209181000_create_meta_visibility_table.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 22 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/migrations/202209191000_create_tax_meta_box_table.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 22 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/migrations/202209201000_create_option_page_table.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 22 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/migrations/202209211000_create_op_meta_box_table.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 22 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/migrations/202209221000_create_meta_block_table.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 22 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/migrations/202209231000_add_native_to_taxonomy_table.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 30 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/migrations/202209241000_add_parent_id_to_cpt_table.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 52 code lines NamingConvention: 80 (B), based on 5 names 6:7 [warning] naming.too_long - class `AddParentIdToCustomPostTypeTable` is 32 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/migrations/202209251000_add_meta_field_id_to_template_table.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 40 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/migrations/202209261000_add_meta_box_label.php (other) CodeLength: not graded CyclomaticComplexity: 78 (C), based on 3 functions 11:18 [warning] complexity.function - AddMetaBoxLabel::up has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely Duplication: 0 (F), based on 61 code lines 25:1 [warning] duplication.repeated_block - lines 25 to 33 repeat lines 15 to 23 (101 tokens); repeated code has to be fixed in every copy 35:1 [warning] duplication.repeated_block - lines 35 to 53 repeat lines 15 to 33 (202 tokens); repeated code has to be fixed in every copy 68:1 [warning] duplication.repeated_block - lines 68 to 71 repeat lines 64 to 67 (58 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/migrations/202209271000_change_icon.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 40 (F), based on 31 code lines 21:1 [warning] duplication.repeated_block - lines 21 to 25 repeat lines 15 to 19 (58 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/migrations/202209281000_change_related_post_type.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 24 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/migrations/202308011000_create_validation_rules_table.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 23 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/migrations/202308020900_create_meta_group_table.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 27 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/migrations/202308021000_add_group_id_to_meta_box.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 19 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/migrations/202308022000_add_label_to_meta_field.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 28 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/migrations/202308031000_migrate_meta.php (other) CodeLength: not graded 19:18 [warning] length.function - MigrateMeta::up has 84 lines in its body, above 50 177:19 [warning] length.function - MigrateMeta::copyTaxonomyBoxes has 66 lines in its body, above 50 250:19 [warning] length.function - MigrateMeta::copyOptionPageBoxes has 66 lines in its body, above 50 321:19 [warning] length.function - MigrateMeta::copyUserBoxes has 61 lines in its body, above 50 389:19 [warning] length.function - MigrateMeta::saveMetaGroup has 86 lines in its body, above 50 13:7 [warning] length.class - MigrateMeta has 551 lines, above 500 for a other CyclomaticComplexity: 95 (A), based on 12 functions 19:18 [warning] complexity.function - MigrateMeta::up has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 0 (F), based on 329 code lines 39:1 [warning] duplication.repeated_block - lines 39 to 41 repeat lines 35 to 37 (53 tokens); repeated code has to be fixed in every copy 43:1 [warning] duplication.repeated_block - lines 43 to 49 repeat lines 35 to 41 (106 tokens); repeated code has to be fixed in every copy 51:1 [warning] duplication.repeated_block - lines 51 to 65 repeat lines 35 to 49 (212 tokens); repeated code has to be fixed in every copy 77:1 [warning] duplication.repeated_block - lines 77 to 80 repeat lines 74 to 77 (51 tokens); repeated code has to be fixed in every copy 80:1 [warning] duplication.repeated_block - lines 80 to 87 repeat lines 74 to 79 (76 tokens); repeated code has to be fixed in every copy 94:1 [warning] duplication.repeated_block - lines 94 to 99 repeat lines 89 to 94 (60 tokens); repeated code has to be fixed in every copy 170:1 [warning] duplication.repeated_block - lines 170 to 196 repeat lines 138 to 164 (117 tokens); repeated code has to be fixed in every copy 242:1 [warning] duplication.repeated_block - lines 242 to 269 repeat lines 169 to 196 (131 tokens); repeated code has to be fixed in every copy 269:1 [warning] duplication.repeated_block - lines 269 to 304 repeat lines 196 to 231 (59 tokens); repeated code has to be fixed in every copy 547:1 [warning] duplication.repeated_block - lines 547 to 549 repeat lines 545 to 547 (60 tokens); repeated code has to be fixed in every copy 549:1 [warning] duplication.repeated_block - lines 549 to 552 repeat lines 545 to 548 (92 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 37 names Security: not graded advanced-custom-post-type/migrations/202309023000_alter_relationship.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 25 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/migrations/202309023002_migrate_relationship.php (other) CodeLength: not graded 44:19 [warning] length.function - MigrateRelationshipTable::migrateRelations has 52 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 7 functions Duplication: 100 (A), based on 96 code lines NamingConvention: 93 (A), based on 15 names 110:6 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/migrations/202309023022_alter_templates.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 36 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/migrations/202312023022_create_form_tables.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 30 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/migrations/202401290000_alter_advanced_option.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 22 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/migrations/202402020000_alter_meta_visibilty_table.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 25 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/migrations/202402070000_alter_meta_option_table.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 22 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/migrations/202403110000_alter_meta_group_table.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 22 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/migrations/202404110000_fix_migration_from_v1.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 5 functions Duplication: 100 (A), based on 63 code lines NamingConvention: 100 (A), based on 16 names Security: not graded advanced-custom-post-type/migrations/202404300000_create_dataset.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 24 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/migrations/202405300000_delete_templates.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 23 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/migrations/202405310000_alter_post_icon.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 19 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/migrations/202407200000_alter_meta_group.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 25 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/migrations/202408080000_alter_varchar_to_255.php (other) CodeLength: not graded 11:18 [warning] length.function - AlterVarcharTo255::up has 61 lines in its body, above 50 CyclomaticComplexity: 78 (C), based on 3 functions 11:18 [warning] complexity.function - AlterVarcharTo255::up has a cyclomatic complexity of 15, moderate risk (above 10): each of its 15 paths needs its own test, which makes it hard to follow and to change safely Duplication: 0 (F), based on 73 code lines 48:1 [warning] duplication.repeated_block - lines 48 to 55 repeat lines 24 to 31 (62 tokens); repeated code has to be fixed in every copy 55:1 [warning] duplication.repeated_block - lines 55 to 69 repeat lines 39 to 53 (156 tokens); repeated code has to be fixed in every copy 89:1 [warning] duplication.repeated_block - lines 89 to 93 repeat lines 85 to 89 (68 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/migrations/202409170000_create_permission_table.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 20 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/migrations/202411080000_create_form_submission_table.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 20 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/migrations/202503110000_create_block_table.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 23 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/migrations/202505140000_alter_meta_box.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 21 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/migrations/202506120000_create_meta_box_visibility_conditions.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 20 code lines NamingConvention: 75 (C), based on 4 names 6:7 [warning] naming.too_long - class `CreateMetaBoxVisibilityConditions` is 33 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/migrations/202510210000_alter_meta_field.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 21 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/migrations/202511190000_alter_form_field_parent_fields.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 24 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/migrations/202602050000_create_cct_table.php (other) CodeLength: not graded 11:18 [warning] length.function - CreateCustomContentTypeTables::up has 78 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 32 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/migrations/202604010000_create_table_record_location.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 20 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/migrations/202604010001_migrate_location_data_to_junction.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 51 code lines NamingConvention: 100 (A), based on 11 names Security: not graded 76:22 [warning] security.sql_interpolated - query `$wpdb->get_results` builds its SQL from `$prefixedName`; pass values through prepare with placeholders to prevent SQL injection 92:11 [warning] security.sql_interpolated - query `$wpdb->query` builds its SQL from `$prefixedName`; pass values through prepare with placeholders to prevent SQL injection 93:11 [warning] security.sql_interpolated - query `$wpdb->query` builds its SQL from `$prefixedName`; pass values through prepare with placeholders to prevent SQL injection advanced-custom-post-type/migrations/202604240000_alter_cct_table_add_group_id.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 24 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/migrations/202606240000_alter_cct_table_add_settings.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 21 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/migrations/202607020000_alter_table_record_location_unique_key.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 36 code lines NamingConvention: 71 (C), based on 7 names 18:7 [warning] naming.too_long - class `AlterTableRecordLocationUniqueKey` is 33 characters (limit 30); very long names make code hard to read 60:22 [warning] naming.too_long - method `uniqueKeyAlreadyIncludesRecordId` is 32 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/migrations/202608310000_add_parent_slug_to_option_pages.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 21 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Admin/ACPT_Admin.php (other) CodeLength: not graded 166:22 [error] length.function - ACPT_Admin::setPages has 175 lines in its body, above 100 398:21 [warning] length.function - ACPT_Admin::enqueueAssets has 54 lines in its body, above 50 543:22 [error] length.function - ACPT_Admin::setAdminAssets has 186 lines in its body, above 100 907:22 [error] length.function - ACPT_Admin::registerCustomPostTypesAndTaxonomies has 117 lines in its body, above 100 1320:21 [error] length.function - ACPT_Admin::run has 184 lines in its body, above 100 91:7 [error] length.class - ACPT_Admin has 1415 lines, above 1000 for a other 1:1 [error] length.file - the file has 1505 lines, above 1200 for a other CyclomaticComplexity: 80 (B), based on 41 functions 166:22 [warning] complexity.function - ACPT_Admin::setPages has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely 398:21 [warning] complexity.function - ACPT_Admin::enqueueAssets has a cyclomatic complexity of 16, moderate risk (above 10): each of its 16 paths needs its own test, which makes it hard to follow and to change safely 543:22 [warning] complexity.function - ACPT_Admin::setAdminAssets has a cyclomatic complexity of 14, moderate risk (above 10): each of its 14 paths needs its own test, which makes it hard to follow and to change safely 907:22 [warning] complexity.function - ACPT_Admin::registerCustomPostTypesAndTaxonomies has a cyclomatic complexity of 19, moderate risk (above 10): each of its 19 paths needs its own test, which makes it hard to follow and to change safely 1269:21 [warning] complexity.function - ACPT_Admin::displayNotice has a cyclomatic complexity of 17, moderate risk (above 10): each of its 17 paths needs its own test, which makes it hard to follow and to change safely 1320:21 [warning] complexity.function - ACPT_Admin::run has a cyclomatic complexity of 14, moderate risk (above 10): each of its 14 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 963 code lines 1080:1 [warning] duplication.repeated_block - lines 1080 to 1096 repeat lines 1056 to 1072 (53 tokens); repeated code has to be fixed in every copy NamingConvention: 93 (A), based on 148 names 497:21 [warning] naming.too_long - method `invalidateMediaLibraryMonthsCache` is 33 characters (limit 30); very long names make code hard to read 751:49 [warning] naming.inconsistent_style - parameter `new_status` is snake_case, while most variables and parameters in this file are camelCase (51 of 97 names); mixed styles make code harder to scan 751:69 [warning] naming.inconsistent_style - parameter `old_status` is snake_case, while most variables and parameters in this file are camelCase (51 of 97 names); mixed styles make code harder to scan 811:60 [warning] naming.inconsistent_style - parameter `plugin_file` is snake_case, while most variables and parameters in this file are camelCase (51 of 97 names); mixed styles make code harder to scan 828:47 [warning] naming.inconsistent_style - parameter `block_categories` is snake_case, while most variables and parameters in this file are camelCase (51 of 97 names); mixed styles make code harder to scan 828:92 [warning] naming.inconsistent_style - parameter `block_editor_context` is snake_case, while most variables and parameters in this file are camelCase (51 of 97 names); mixed styles make code harder to scan 834:10 [warning] naming.inconsistent_style - variable `category_slugs` is snake_case, while most variables and parameters in this file are camelCase (51 of 97 names); mixed styles make code harder to scan 907:22 [warning] naming.too_long - method `registerCustomPostTypesAndTaxonomies` is 36 characters (limit 30); very long names make code hard to read 1000:66 [warning] naming.inconsistent_style - parameter `post_after` is snake_case, while most variables and parameters in this file are camelCase (51 of 97 names); mixed styles make code harder to scan 1000:79 [warning] naming.inconsistent_style - parameter `post_before` is snake_case, while most variables and parameters in this file are camelCase (51 of 97 names); mixed styles make code harder to scan 1047:22 [warning] naming.too_long - method `addCustomPostTypeColumnsToAdminPanel` is 36 characters (limit 30); very long names make code hard to read Security: not graded 379:21 [warning] security.include_variable - require_once of `$template` builds the file path from data; a crafted path can load another file 390:21 [warning] security.include_variable - require_once of `$template` builds the file path from data; a crafted path can load another file 548:34 [warning] security.unsanitized_input - read of `$_GET['page']` with no sanitizer around it; sanitize request input where you read it 549:28 [warning] security.unsanitized_input - read of `$_GET['action']` with no sanitizer around it; sanitize request input where you read it 1277:29 [warning] security.unsanitized_input - read of `$_SERVER['REQUEST_URI']` with no sanitizer around it; sanitize request input where you read it 1294:49 [warning] security.unescaped_output - echo of `Strings::generateRandomId()` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) advanced-custom-post-type/src/Admin/ACPT_Admin_Bar_Menu.php (other) CodeLength: not graded 66:28 [error] length.function - ACPT_Admin_Bar_Menu::getMenuTree has 124 lines in its body, above 100 CyclomaticComplexity: 49 (F), based on 4 functions 66:28 [error] complexity.function - ACPT_Admin_Bar_Menu::getMenuTree has a cyclomatic complexity of 23, high risk (above 10): each of its 23 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 127 code lines NamingConvention: 96 (A), based on 27 names 195:29 [warning] naming.inconsistent_style - method `ACPTLogo` is PascalCase, while most methods in this file are camelCase (2 of 4 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Admin/ACPT_Admin_Bar_Menu_Item.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 30 code lines NamingConvention: 100 (A), based on 14 names Security: not graded advanced-custom-post-type/src/Admin/ACPT_Ajax.php (other) CodeLength: not graded 57:21 [error] length.function - ACPT_Ajax::routes has 192 lines in its body, above 100 CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 179 code lines NamingConvention: 100 (A), based on 16 names Security: not graded advanced-custom-post-type/src/Admin/ACPT_Api.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 13 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Admin/ACPT_Api_Auth.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 63 code lines NamingConvention: 100 (A), based on 18 names Security: not graded advanced-custom-post-type/src/Admin/ACPT_Api_Rest_Fields.php (other) CodeLength: not graded 103:21 [warning] length.function - ACPT_Api_Rest_Fields::updateCallback has 84 lines in its body, above 50 194:21 [warning] length.function - ACPT_Api_Rest_Fields::updateUserCallback has 57 lines in its body, above 50 CyclomaticComplexity: 87 (B), based on 10 functions 103:21 [warning] complexity.function - ACPT_Api_Rest_Fields::updateCallback has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely 266:21 [warning] complexity.function - ACPT_Api_Rest_Fields::validateCallback has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 0 (F), based on 240 code lines 42:1 [warning] duplication.repeated_block - lines 42 to 51 repeat lines 25 to 34 (53 tokens); repeated code has to be fixed in every copy 187:1 [warning] duplication.repeated_block - lines 187 to 229 repeat lines 96 to 138 (160 tokens); repeated code has to be fixed in every copy 229:1 [warning] duplication.repeated_block - lines 229 to 245 repeat lines 138 to 154 (80 tokens); repeated code has to be fixed in every copy NamingConvention: 93 (A), based on 40 names 83:58 [warning] naming.inconsistent_style - parameter `field_name` is snake_case, while most variables and parameters in this file are camelCase (10 of 29 names); mixed styles make code harder to scan 194:57 [warning] naming.inconsistent_style - parameter `user_object` is snake_case, while most variables and parameters in this file are camelCase (10 of 29 names); mixed styles make code harder to scan 302:51 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Admin/ACPT_Api_V1.php (other) CodeLength: not graded 36:21 [error] length.function - ACPT_Api_V1::registerRestRoutes has 112 lines in its body, above 100 CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 120 code lines NamingConvention: 100 (A), based on 15 names Security: not graded advanced-custom-post-type/src/Admin/ACPT_Block_Bindings.php (other) CodeLength: not graded CyclomaticComplexity: 72 (C), based on 5 functions 50:21 [warning] complexity.function - ACPT_Block_Bindings::getValueCallback has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely 139:28 [error] complexity.function - ACPT_Block_Bindings::extractAttributeValue has a cyclomatic complexity of 27, high risk (above 10): each of its 27 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 118 code lines 162:1 [warning] duplication.repeated_block - lines 162 to 171 repeat lines 146 to 155 (67 tokens); repeated code has to be fixed in every copy NamingConvention: 89 (B), based on 19 names 50:46 [warning] naming.inconsistent_style - parameter `source_args` is snake_case, while most variables and parameters in this file are camelCase (7 of 13 names); mixed styles make code harder to scan 50:70 [warning] naming.inconsistent_style - parameter `block_instance` is snake_case, while most variables and parameters in this file are camelCase (7 of 13 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Admin/ACPT_Key_Value_Storage.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 35 code lines NamingConvention: 100 (A), based on 9 names Security: not graded advanced-custom-post-type/src/Admin/ACPT_License_Manager.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 12 functions Duplication: 100 (A), based on 171 code lines NamingConvention: 100 (A), based on 40 names Security: not graded advanced-custom-post-type/src/Admin/ACPT_Permissions.php (other) CodeLength: not graded 48:22 [error] length.function - ACPT_Permissions::setPostPermissions has 203 lines in its body, above 100 278:22 [warning] length.function - ACPT_Permissions::setOptionPagePermissions has 66 lines in its body, above 50 350:22 [warning] length.function - ACPT_Permissions::setTaxonomyPermissions has 96 lines in its body, above 50 452:22 [warning] length.function - ACPT_Permissions::setMetaFieldsPermissions has 75 lines in its body, above 50 532:22 [warning] length.function - ACPT_Permissions::setTablePermissions has 63 lines in its body, above 50 600:22 [warning] length.function - ACPT_Permissions::setTableGroupPermissions has 55 lines in its body, above 50 15:7 [warning] length.class - ACPT_Permissions has 642 lines, above 500 for a other 1:1 [warning] length.file - the file has 656 lines, above 600 for a other CyclomaticComplexity: 58 (F), based on 8 functions 48:22 [error] complexity.function - ACPT_Permissions::setPostPermissions has a cyclomatic complexity of 25, high risk (above 10): each of its 25 paths needs its own test, which makes it hard to follow and to change safely 278:22 [warning] complexity.function - ACPT_Permissions::setOptionPagePermissions has a cyclomatic complexity of 14, moderate risk (above 10): each of its 14 paths needs its own test, which makes it hard to follow and to change safely 350:22 [warning] complexity.function - ACPT_Permissions::setTaxonomyPermissions has a cyclomatic complexity of 19, moderate risk (above 10): each of its 19 paths needs its own test, which makes it hard to follow and to change safely 452:22 [warning] complexity.function - ACPT_Permissions::setMetaFieldsPermissions has a cyclomatic complexity of 16, moderate risk (above 10): each of its 16 paths needs its own test, which makes it hard to follow and to change safely 532:22 [warning] complexity.function - ACPT_Permissions::setTablePermissions has a cyclomatic complexity of 17, moderate risk (above 10): each of its 17 paths needs its own test, which makes it hard to follow and to change safely 600:22 [warning] complexity.function - ACPT_Permissions::setTableGroupPermissions has a cyclomatic complexity of 15, moderate risk (above 10): each of its 15 paths needs its own test, which makes it hard to follow and to change safely Duplication: 0 (F), based on 467 code lines 215:1 [warning] duplication.repeated_block - lines 215 to 220 repeat lines 199 to 204 (70 tokens); repeated code has to be fixed in every copy 226:1 [warning] duplication.repeated_block - lines 226 to 233 repeat lines 210 to 217 (100 tokens); repeated code has to be fixed in every copy 234:1 [warning] duplication.repeated_block - lines 234 to 238 repeat lines 218 to 222 (59 tokens); repeated code has to be fixed in every copy 282:1 [warning] duplication.repeated_block - lines 282 to 291 repeat lines 59 to 69 (53 tokens); repeated code has to be fixed in every copy 352:1 [warning] duplication.repeated_block - lines 352 to 370 repeat lines 50 to 69 (105 tokens); repeated code has to be fixed in every copy 400:1 [warning] duplication.repeated_block - lines 400 to 414 repeat lines 305 to 319 (71 tokens); repeated code has to be fixed in every copy 462:1 [warning] duplication.repeated_block - lines 462 to 473 repeat lines 57 to 69 (72 tokens); repeated code has to be fixed in every copy 473:1 [warning] duplication.repeated_block - lines 473 to 526 repeat lines 291 to 344 (225 tokens); repeated code has to be fixed in every copy 534:1 [warning] duplication.repeated_block - lines 534 to 548 repeat lines 459 to 473 (82 tokens); repeated code has to be fixed in every copy 579:1 [warning] duplication.repeated_block - lines 579 to 616 repeat lines 511 to 548 (121 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 48 names Security: not graded advanced-custom-post-type/src/Admin/ACPT_Updater.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 13 functions Duplication: 100 (A), based on 254 code lines NamingConvention: 96 (A), based on 49 names 211:52 [warning] naming.inconsistent_style - parameter `hook_extra` is snake_case, while most variables and parameters in this file are camelCase (12 of 32 names); mixed styles make code harder to scan 215:10 [warning] naming.inconsistent_style - variable `install_directory` is snake_case, while most variables and parameters in this file are camelCase (12 of 32 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Constants/Address.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 5 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Constants/BelongsTo.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 28 code lines NamingConvention: 100 (A), based on 10 names Security: not graded advanced-custom-post-type/src/Constants/Capabilities.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 46 code lines NamingConvention: 100 (A), based on 22 names Security: not graded advanced-custom-post-type/src/Constants/Cookies.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 5 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Constants/Dashicons.php (other) CodeLength: not graded 5:7 [warning] length.class - Dashicons has 690 lines, above 500 for a other 1:1 [warning] length.file - the file has 694 lines, above 600 for a other CyclomaticComplexity: not graded Duplication: 0 (F), based on 690 code lines 364:1 [warning] duplication.repeated_block - lines 364 to 376 repeat lines 351 to 363 (52 tokens); repeated code has to be fixed in every copy 377:1 [warning] duplication.repeated_block - lines 377 to 402 repeat lines 351 to 376 (104 tokens); repeated code has to be fixed in every copy 403:1 [warning] duplication.repeated_block - lines 403 to 454 repeat lines 351 to 402 (208 tokens); repeated code has to be fixed in every copy 455:1 [warning] duplication.repeated_block - lines 455 to 558 repeat lines 351 to 454 (416 tokens); repeated code has to be fixed in every copy 559:1 [warning] duplication.repeated_block - lines 559 to 692 repeat lines 351 to 484 (536 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 344 names Security: not graded advanced-custom-post-type/src/Constants/ExtraFields.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 38 code lines NamingConvention: 100 (A), based on 18 names Security: not graded advanced-custom-post-type/src/Constants/FormAction.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 20 code lines NamingConvention: 100 (A), based on 9 names Security: not graded advanced-custom-post-type/src/Constants/FormatterFormat.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 16 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Constants/HTMLTag.php (other) CodeLength: not graded 5:7 [warning] length.class - HTMLTag has 688 lines, above 500 for a other 1:1 [warning] length.file - the file has 692 lines, above 600 for a other CyclomaticComplexity: not graded Duplication: 40 (F), based on 654 code lines 153:1 [warning] duplication.repeated_block - lines 153 to 161 repeat lines 87 to 95 (55 tokens); repeated code has to be fixed in every copy 257:1 [warning] duplication.repeated_block - lines 257 to 266 repeat lines 190 to 199 (62 tokens); repeated code has to be fixed in every copy 288:1 [warning] duplication.repeated_block - lines 288 to 297 repeat lines 190 to 199 (62 tokens); repeated code has to be fixed in every copy 404:1 [warning] duplication.repeated_block - lines 404 to 413 repeat lines 190 to 199 (62 tokens); repeated code has to be fixed in every copy 465:1 [warning] duplication.repeated_block - lines 465 to 474 repeat lines 190 to 199 (62 tokens); repeated code has to be fixed in every copy 487:1 [warning] duplication.repeated_block - lines 487 to 496 repeat lines 190 to 199 (62 tokens); repeated code has to be fixed in every copy 534:1 [warning] duplication.repeated_block - lines 534 to 544 repeat lines 175 to 185 (64 tokens); repeated code has to be fixed in every copy 572:1 [warning] duplication.repeated_block - lines 572 to 581 repeat lines 190 to 199 (62 tokens); repeated code has to be fixed in every copy 647:1 [warning] duplication.repeated_block - lines 647 to 654 repeat lines 175 to 182 (54 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Constants/Logic.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 12 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Constants/MetaBox.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 11 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Constants/MetaGroupDisplay.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 8 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Constants/MetaTypes.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 33 code lines NamingConvention: 100 (A), based on 15 names Security: not graded advanced-custom-post-type/src/Constants/Operator.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 38 code lines NamingConvention: 100 (A), based on 18 names Security: not graded advanced-custom-post-type/src/Constants/Permissions.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 7 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Constants/RelationCostants.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 7 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Constants/Relationships.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 12 code lines NamingConvention: 100 (A), based on 9 names Security: not graded advanced-custom-post-type/src/Constants/ReservedTerms.php (other) CodeLength: not graded 10:28 [warning] length.function - ReservedTerms::list has 89 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 94 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Constants/TableField.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 5 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Constants/TaxonomyField.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 5 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Constants/Visibility.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 6 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Core/API/AJAX/Controllers/AbstractController.php (other) CodeLength: not graded 136:24 [error] length.function - AbstractController::parseLocationContext has 335 lines in its body, above 100 11:7 [warning] length.class - AbstractController has 539 lines, above 500 for a other CyclomaticComplexity: 22 (F), based on 11 functions 136:24 [error] complexity.function - AbstractController::parseLocationContext has a cyclomatic complexity of 51, untestable risk (above 10): each of its 51 paths needs its own test, which makes it hard to follow and to change safely 483:24 [warning] complexity.function - AbstractController::fetchedLocationValuesToBeExcluded has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 395 code lines 209:1 [warning] duplication.repeated_block - lines 209 to 217 repeat lines 195 to 203 (67 tokens); repeated code has to be fixed in every copy 253:1 [warning] duplication.repeated_block - lines 253 to 262 repeat lines 206 to 215 (59 tokens); repeated code has to be fixed in every copy 287:1 [warning] duplication.repeated_block - lines 287 to 295 repeat lines 207 to 215 (55 tokens); repeated code has to be fixed in every copy 301:1 [warning] duplication.repeated_block - lines 301 to 312 repeat lines 217 to 228 (66 tokens); repeated code has to be fixed in every copy 359:1 [warning] duplication.repeated_block - lines 359 to 369 repeat lines 240 to 250 (60 tokens); repeated code has to be fixed in every copy 385:1 [warning] duplication.repeated_block - lines 385 to 397 repeat lines 269 to 281 (65 tokens); repeated code has to be fixed in every copy 435:1 [warning] duplication.repeated_block - lines 435 to 446 repeat lines 327 to 339 (64 tokens); repeated code has to be fixed in every copy NamingConvention: 91 (A), based on 47 names 78:10 [warning] naming.too_short - variable `m` is 1 character (at least 2); a one letter name hides its meaning 112:42 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds 148:48 [warning] naming.too_short - variable `v` is 1 character (at least 2); a one letter name hides its meaning 483:24 [warning] naming.too_long - method `fetchedLocationValuesToBeExcluded` is 33 characters (limit 30); very long names make code hard to read Security: not graded 200:66 [info] security.sql_interpolated - query `$wpdb->prepare` builds its SQL from `$placeholders`; pass values through prepare with placeholders to prevent SQL injection (suppressed by `phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared`) 214:66 [info] security.sql_interpolated - query `$wpdb->prepare` builds its SQL from `$placeholders`; pass values through prepare with placeholders to prevent SQL injection (suppressed by `phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared`) 227:66 [info] security.sql_interpolated - query `$wpdb->prepare` builds its SQL from `$placeholders`; pass values through prepare with placeholders to prevent SQL injection (suppressed by `phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared`) 261:66 [info] security.sql_interpolated - query `$wpdb->prepare` builds its SQL from `$placeholders`; pass values through prepare with placeholders to prevent SQL injection (suppressed by `phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared`) 294:66 [info] security.sql_interpolated - query `$wpdb->prepare` builds its SQL from `$placeholders`; pass values through prepare with placeholders to prevent SQL injection (suppressed by `phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared`) 311:66 [info] security.sql_interpolated - query `$wpdb->prepare` builds its SQL from `$placeholders`; pass values through prepare with placeholders to prevent SQL injection (suppressed by `phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared`) advanced-custom-post-type/src/Core/API/AJAX/Controllers/ApiKeysController.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 79 code lines NamingConvention: 93 (A), based on 14 names 16:14 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/API/AJAX/Controllers/BulkActionController.php (other) CodeLength: not graded 31:21 [error] length.function - BulkActionController::bulkActionsAction has 286 lines in its body, above 100 319:21 [warning] length.function - BulkActionController::duplicateAction has 73 lines in its body, above 50 CyclomaticComplexity: 14 (F), based on 2 functions 31:21 [error] complexity.function - BulkActionController::bulkActionsAction has a cyclomatic complexity of 61, untestable risk (above 10): each of its 61 paths needs its own test, which makes it hard to follow and to change safely 319:21 [warning] complexity.function - BulkActionController::duplicateAction has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 299 code lines 270:1 [warning] duplication.repeated_block - lines 270 to 285 repeat lines 226 to 241 (57 tokens); repeated code has to be fixed in every copy 341:1 [warning] duplication.repeated_block - lines 341 to 360 repeat lines 255 to 274 (69 tokens); repeated code has to be fixed in every copy 360:1 [warning] duplication.repeated_block - lines 360 to 375 repeat lines 226 to 241 (59 tokens); repeated code has to be fixed in every copy NamingConvention: 96 (A), based on 27 names 34:14 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/API/AJAX/Controllers/CacheController.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 93 code lines NamingConvention: 92 (A), based on 12 names 17:14 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/API/AJAX/Controllers/CustomPostTypeController.php (other) CodeLength: not graded 82:21 [warning] length.function - CustomPostTypeController::createPostAndLinkItAction has 71 lines in its body, above 50 303:21 [warning] length.function - CustomPostTypeController::saveCustomPostTypeAction has 73 lines in its body, above 50 CyclomaticComplexity: 91 (A), based on 10 functions 202:21 [warning] complexity.function - CustomPostTypeController::fetchCustomPostTypesAction has a cyclomatic complexity of 15, moderate risk (above 10): each of its 15 paths needs its own test, which makes it hard to follow and to change safely 303:21 [warning] complexity.function - CustomPostTypeController::saveCustomPostTypeAction has a cyclomatic complexity of 15, moderate risk (above 10): each of its 15 paths needs its own test, which makes it hard to follow and to change safely Duplication: 0 (F), based on 317 code lines 53:1 [warning] duplication.repeated_block - lines 53 to 59 repeat lines 21 to 27 (55 tokens); repeated code has to be fixed in every copy 62:1 [warning] duplication.repeated_block - lines 62 to 85 repeat lines 30 to 56 (116 tokens); repeated code has to be fixed in every copy 140:1 [warning] duplication.repeated_block - lines 140 to 161 repeat lines 35 to 56 (92 tokens); repeated code has to be fixed in every copy 176:1 [warning] duplication.repeated_block - lines 176 to 189 repeat lines 34 to 47 (55 tokens); repeated code has to be fixed in every copy 234:1 [warning] duplication.repeated_block - lines 234 to 244 repeat lines 80 to 87 (53 tokens); repeated code has to be fixed in every copy 254:1 [warning] duplication.repeated_block - lines 254 to 266 repeat lines 78 to 87 (56 tokens); repeated code has to be fixed in every copy 375:1 [warning] duplication.repeated_block - lines 375 to 386 repeat lines 233 to 244 (55 tokens); repeated code has to be fixed in every copy 403:1 [warning] duplication.repeated_block - lines 403 to 415 repeat lines 364 to 376 (52 tokens); repeated code has to be fixed in every copy NamingConvention: 97 (A), based on 36 names 24:14 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/API/AJAX/Controllers/DatasetController.php (other) CodeLength: not graded CyclomaticComplexity: 94 (A), based on 4 functions 55:21 [warning] complexity.function - DatasetController::fetchDatasetsAction has a cyclomatic complexity of 14, moderate risk (above 10): each of its 14 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 128 code lines NamingConvention: 94 (A), based on 18 names 19:14 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/API/AJAX/Controllers/FileController.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 79 code lines NamingConvention: 88 (B), based on 8 names 24:10 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/API/AJAX/Controllers/FormController.php (other) CodeLength: not graded 66:21 [warning] length.function - FormController::emailTemplatePreviewAction has 51 lines in its body, above 50 325:21 [warning] length.function - FormController::saveFormAction has 54 lines in its body, above 50 430:21 [warning] length.function - FormController::saveFormSubmissionAction has 53 lines in its body, above 50 CyclomaticComplexity: 94 (A), based on 11 functions 66:21 [warning] complexity.function - FormController::emailTemplatePreviewAction has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely 219:21 [warning] complexity.function - FormController::fetchFormsAction has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 337 code lines 408:1 [warning] duplication.repeated_block - lines 408 to 431 repeat lines 363 to 385 (81 tokens); repeated code has to be fixed in every copy 470:1 [warning] duplication.repeated_block - lines 470 to 483 repeat lines 366 to 379 (57 tokens); repeated code has to be fixed in every copy NamingConvention: 98 (A), based on 58 names 30:14 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/API/AJAX/Controllers/GlobalsController.php (other) CodeLength: not graded 23:21 [warning] length.function - GlobalsController::globalSettingsAction has 68 lines in its body, above 50 108:21 [warning] length.function - GlobalsController::healthCheckAction has 58 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 131 code lines NamingConvention: 96 (A), based on 24 names 172:14 [warning] naming.inconsistent_style - variable `current_version` is snake_case, while most variables and parameters in this file are camelCase (14 of 20 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/API/AJAX/Controllers/IntegrationController.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 6 functions Duplication: 100 (A), based on 73 code lines NamingConvention: 90 (A), based on 10 names 62:22 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/API/AJAX/Controllers/LicenseController.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 6 functions Duplication: 100 (A), based on 133 code lines NamingConvention: 90 (A), based on 20 names 129:14 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds 159:21 [warning] naming.too_long - method `installMissingDependenciesAction` is 32 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/API/AJAX/Controllers/MetaController.php (other) CodeLength: not graded 646:21 [warning] length.function - MetaController::fetchMetaAction has 62 lines in its body, above 50 932:21 [warning] length.function - MetaController::generateFlexibleBlockAction has 70 lines in its body, above 50 1007:21 [warning] length.function - MetaController::generateFlexibleGroupedFieldsAction has 95 lines in its body, above 50 1138:21 [error] length.function - MetaController::generateGroupedFieldsAction has 103 lines in its body, above 100 1313:21 [warning] length.function - MetaController::generateRelationalFieldOptionsAction has 67 lines in its body, above 50 1585:21 [warning] length.function - MetaController::saveBlockBindingValuesAction has 75 lines in its body, above 50 44:7 [error] length.class - MetaController has 1618 lines, above 1000 for a other 1:1 [error] length.file - the file has 1661 lines, above 1200 for a other CyclomaticComplexity: 90 (A), based on 42 functions 470:21 [warning] complexity.function - MetaController::fetchBlockBindingValuesAction has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely 516:21 [warning] complexity.function - MetaController::fetchAllMetaAction has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely 646:21 [warning] complexity.function - MetaController::fetchMetaAction has a cyclomatic complexity of 16, moderate risk (above 10): each of its 16 paths needs its own test, which makes it hard to follow and to change safely 769:21 [warning] complexity.function - MetaController::fetchMetaKeysAction has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely 932:21 [warning] complexity.function - MetaController::generateFlexibleBlockAction has a cyclomatic complexity of 16, moderate risk (above 10): each of its 16 paths needs its own test, which makes it hard to follow and to change safely 1007:21 [warning] complexity.function - MetaController::generateFlexibleGroupedFieldsAction has a cyclomatic complexity of 17, moderate risk (above 10): each of its 17 paths needs its own test, which makes it hard to follow and to change safely 1313:21 [warning] complexity.function - MetaController::generateRelationalFieldOptionsAction has a cyclomatic complexity of 18, moderate risk (above 10): each of its 18 paths needs its own test, which makes it hard to follow and to change safely 1585:21 [warning] complexity.function - MetaController::saveBlockBindingValuesAction has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 0 (F), based on 1190 code lines 166:1 [warning] duplication.repeated_block - lines 166 to 182 repeat lines 124 to 140 (89 tokens); repeated code has to be fixed in every copy 184:1 [warning] duplication.repeated_block - lines 184 to 207 repeat lines 117 to 140 (116 tokens); repeated code has to be fixed in every copy 227:1 [warning] duplication.repeated_block - lines 227 to 246 repeat lines 121 to 140 (100 tokens); repeated code has to be fixed in every copy 248:1 [warning] duplication.repeated_block - lines 248 to 277 repeat lines 117 to 146 (142 tokens); repeated code has to be fixed in every copy 289:1 [warning] duplication.repeated_block - lines 289 to 317 repeat lines 157 to 182 (124 tokens); repeated code has to be fixed in every copy 326:1 [warning] duplication.repeated_block - lines 326 to 345 repeat lines 115 to 134 (72 tokens); repeated code has to be fixed in every copy 420:1 [warning] duplication.repeated_block - lines 420 to 430 repeat lines 202 to 209 (53 tokens); repeated code has to be fixed in every copy 563:1 [warning] duplication.repeated_block - lines 563 to 578 repeat lines 200 to 209 (56 tokens); repeated code has to be fixed in every copy 753:1 [warning] duplication.repeated_block - lines 753 to 771 repeat lines 628 to 648 (62 tokens); repeated code has to be fixed in every copy 804:1 [warning] duplication.repeated_block - lines 804 to 815 repeat lines 419 to 430 (55 tokens); repeated code has to be fixed in every copy 842:1 [warning] duplication.repeated_block - lines 842 to 855 repeat lines 200 to 209 (56 tokens); repeated code has to be fixed in every copy 895:1 [warning] duplication.repeated_block - lines 895 to 904 repeat lines 842 to 855 (57 tokens); repeated code has to be fixed in every copy 928:1 [warning] duplication.repeated_block - lines 928 to 937 repeat lines 842 to 855 (57 tokens); repeated code has to be fixed in every copy 1001:1 [warning] duplication.repeated_block - lines 1001 to 1012 repeat lines 419 to 430 (55 tokens); repeated code has to be fixed in every copy 1026:1 [warning] duplication.repeated_block - lines 1026 to 1032 repeat lines 955 to 961 (121 tokens); repeated code has to be fixed in every copy 1052:1 [warning] duplication.repeated_block - lines 1052 to 1072 repeat lines 963 to 983 (70 tokens); repeated code has to be fixed in every copy 1086:1 [warning] duplication.repeated_block - lines 1086 to 1102 repeat lines 986 to 1002 (71 tokens); repeated code has to be fixed in every copy 1132:1 [warning] duplication.repeated_block - lines 1132 to 1143 repeat lines 419 to 430 (54 tokens); repeated code has to be fixed in every copy 1226:1 [warning] duplication.repeated_block - lines 1226 to 1251 repeat lines 987 to 1012 (119 tokens); repeated code has to be fixed in every copy 1264:1 [warning] duplication.repeated_block - lines 1264 to 1286 repeat lines 987 to 1012 (118 tokens); repeated code has to be fixed in every copy 1374:1 [warning] duplication.repeated_block - lines 1374 to 1387 repeat lines 996 to 1012 (75 tokens); repeated code has to be fixed in every copy 1413:1 [warning] duplication.repeated_block - lines 1413 to 1434 repeat lines 987 to 1008 (74 tokens); repeated code has to be fixed in every copy 1647:1 [warning] duplication.repeated_block - lines 1647 to 1660 repeat lines 1528 to 1541 (51 tokens); repeated code has to be fixed in every copy NamingConvention: 96 (A), based on 129 names 48:10 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds 749:21 [warning] naming.too_long - method `fetchMetaFieldsFromBelongsToAction` is 34 characters (limit 30); very long names make code hard to read 1007:21 [warning] naming.too_long - method `generateFlexibleGroupedFieldsAction` is 35 characters (limit 30); very long names make code hard to read 1246:21 [warning] naming.too_long - method `generateGutenbergTemplateAction` is 31 characters (limit 30); very long names make code hard to read 1313:21 [warning] naming.too_long - method `generateRelationalFieldOptionsAction` is 36 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/API/AJAX/Controllers/OptionPageController.php (other) CodeLength: not graded CyclomaticComplexity: 97 (A), based on 8 functions 173:21 [warning] complexity.function - OptionPageController::fetchOptionPagesAction has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely Duplication: 0 (F), based on 198 code lines 69:1 [warning] duplication.repeated_block - lines 69 to 86 repeat lines 24 to 41 (64 tokens); repeated code has to be fixed in every copy 88:1 [warning] duplication.repeated_block - lines 88 to 103 repeat lines 22 to 37 (58 tokens); repeated code has to be fixed in every copy 105:1 [warning] duplication.repeated_block - lines 105 to 110 repeat lines 40 to 45 (52 tokens); repeated code has to be fixed in every copy 118:1 [warning] duplication.repeated_block - lines 118 to 134 repeat lines 21 to 37 (63 tokens); repeated code has to be fixed in every copy 139:1 [warning] duplication.repeated_block - lines 139 to 152 repeat lines 102 to 110 (55 tokens); repeated code has to be fixed in every copy NamingConvention: 96 (A), based on 23 names 18:14 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/API/AJAX/Controllers/PermissionController.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 40 (F), based on 68 code lines 81:1 [warning] duplication.repeated_block - lines 81 to 97 repeat lines 52 to 68 (61 tokens); repeated code has to be fixed in every copy NamingConvention: 90 (A), based on 10 names 15:14 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/API/AJAX/Controllers/TableController.php (other) CodeLength: not graded 232:21 [warning] length.function - TableController::fetchTablesAction has 52 lines in its body, above 50 CyclomaticComplexity: 90 (A), based on 13 functions 186:21 [warning] complexity.function - TableController::fetchTableRecordsAction has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely 232:21 [warning] complexity.function - TableController::fetchTablesAction has a cyclomatic complexity of 14, moderate risk (above 10): each of its 14 paths needs its own test, which makes it hard to follow and to change safely 313:21 [warning] complexity.function - TableController::saveTableAction has a cyclomatic complexity of 19, moderate risk (above 10): each of its 19 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 361 code lines 48:1 [warning] duplication.repeated_block - lines 48 to 53 repeat lines 25 to 30 (52 tokens); repeated code has to be fixed in every copy 102:1 [warning] duplication.repeated_block - lines 102 to 118 repeat lines 67 to 83 (64 tokens); repeated code has to be fixed in every copy 158:1 [warning] duplication.repeated_block - lines 158 to 178 repeat lines 63 to 83 (83 tokens); repeated code has to be fixed in every copy 178:1 [warning] duplication.repeated_block - lines 178 to 196 repeat lines 118 to 136 (84 tokens); repeated code has to be fixed in every copy 216:1 [warning] duplication.repeated_block - lines 216 to 233 repeat lines 143 to 153 (79 tokens); repeated code has to be fixed in every copy 362:1 [warning] duplication.repeated_block - lines 362 to 379 repeat lines 119 to 136 (81 tokens); repeated code has to be fixed in every copy 398:1 [warning] duplication.repeated_block - lines 398 to 410 repeat lines 144 to 156 (111 tokens); repeated code has to be fixed in every copy NamingConvention: 94 (A), based on 34 names 28:14 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds 320:14 [warning] naming.too_short - variable `d` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Core/API/AJAX/Controllers/TableGroupController.php (other) CodeLength: not graded CyclomaticComplexity: 77 (C), based on 3 functions 12:21 [warning] complexity.function - TableGroupController::fetchTableGroupsAction has a cyclomatic complexity of 17, moderate risk (above 10): each of its 17 paths needs its own test, which makes it hard to follow and to change safely 60:21 [warning] complexity.function - TableGroupController::saveTableGroupAction has a cyclomatic complexity of 16, moderate risk (above 10): each of its 16 paths needs its own test, which makes it hard to follow and to change safely Duplication: 0 (F), based on 99 code lines 38:1 [warning] duplication.repeated_block - lines 38 to 43 repeat lines 30 to 35 (55 tokens); repeated code has to be fixed in every copy 96:1 [warning] duplication.repeated_block - lines 96 to 106 repeat lines 58 to 68 (66 tokens); repeated code has to be fixed in every copy 110:1 [warning] duplication.repeated_block - lines 110 to 112 repeat lines 69 to 71 (51 tokens); repeated code has to be fixed in every copy 116:1 [warning] duplication.repeated_block - lines 116 to 123 repeat lines 88 to 96 (61 tokens); repeated code has to be fixed in every copy NamingConvention: 87 (B), based on 15 names 21:14 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds 76:14 [warning] naming.too_short - variable `d` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Core/API/AJAX/Controllers/TaxonomyController.php (other) CodeLength: not graded 140:21 [warning] length.function - TaxonomyController::fetchTermsAction has 58 lines in its body, above 50 245:21 [warning] length.function - TaxonomyController::saveTaxonomyAction has 66 lines in its body, above 50 CyclomaticComplexity: 84 (B), based on 9 functions 104:21 [warning] complexity.function - TaxonomyController::fetchTaxonomiesAction has a cyclomatic complexity of 15, moderate risk (above 10): each of its 15 paths needs its own test, which makes it hard to follow and to change safely 140:21 [warning] complexity.function - TaxonomyController::fetchTermsAction has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely 245:21 [warning] complexity.function - TaxonomyController::saveTaxonomyAction has a cyclomatic complexity of 14, moderate risk (above 10): each of its 14 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 255 code lines 39:1 [warning] duplication.repeated_block - lines 39 to 44 repeat lines 16 to 21 (52 tokens); repeated code has to be fixed in every copy 135:1 [warning] duplication.repeated_block - lines 135 to 149 repeat lines 34 to 48 (76 tokens); repeated code has to be fixed in every copy 197:1 [warning] duplication.repeated_block - lines 197 to 211 repeat lines 134 to 148 (75 tokens); repeated code has to be fixed in every copy 310:1 [warning] duplication.repeated_block - lines 310 to 318 repeat lines 134 to 145 (55 tokens); repeated code has to be fixed in every copy 335:1 [warning] duplication.repeated_block - lines 335 to 347 repeat lines 299 to 311 (52 tokens); repeated code has to be fixed in every copy NamingConvention: 94 (A), based on 32 names 19:14 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds 81:21 [warning] naming.too_long - method `fetchRegisteredTaxonomiesAction` is 31 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/API/AJAX/Controllers/WordPressController.php (other) CodeLength: not graded 299:21 [warning] length.function - WordPressController::fetchPostTypePostsAction has 63 lines in its body, above 50 16:7 [warning] length.class - WordPressController has 532 lines, above 500 for a other CyclomaticComplexity: 93 (A), based on 17 functions 165:21 [warning] complexity.function - WordPressController::fetchBlocksAction has a cyclomatic complexity of 15, moderate risk (above 10): each of its 15 paths needs its own test, which makes it hard to follow and to change safely 299:21 [warning] complexity.function - WordPressController::fetchPostTypePostsAction has a cyclomatic complexity of 17, moderate risk (above 10): each of its 17 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 339 code lines 46:1 [warning] duplication.repeated_block - lines 46 to 51 repeat lines 21 to 26 (52 tokens); repeated code has to be fixed in every copy 58:1 [warning] duplication.repeated_block - lines 58 to 74 repeat lines 33 to 51 (73 tokens); repeated code has to be fixed in every copy 89:1 [warning] duplication.repeated_block - lines 89 to 103 repeat lines 37 to 51 (57 tokens); repeated code has to be fixed in every copy 281:1 [warning] duplication.repeated_block - lines 281 to 300 repeat lines 238 to 256 (50 tokens); repeated code has to be fixed in every copy 301:1 [warning] duplication.repeated_block - lines 301 to 308 repeat lines 48 to 55 (67 tokens); repeated code has to be fixed in every copy 333:1 [warning] duplication.repeated_block - lines 333 to 342 repeat lines 324 to 333 (57 tokens); repeated code has to be fixed in every copy 342:1 [warning] duplication.repeated_block - lines 342 to 351 repeat lines 324 to 333 (56 tokens); repeated code has to be fixed in every copy 382:1 [warning] duplication.repeated_block - lines 382 to 397 repeat lines 243 to 258 (53 tokens); repeated code has to be fixed in every copy NamingConvention: 97 (A), based on 69 names 24:14 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds 426:14 [warning] naming.too_short - variable `d` is 1 character (at least 2); a one letter name hides its meaning Security: not graded 267:55 [info] security.sql_interpolated - query `$wpdb->prepare` builds its SQL from `$placeholders`; pass values through prepare with placeholders to prevent SQL injection (suppressed by `phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared`) advanced-custom-post-type/src/Core/API/AJAX/Middleware/AbstractMiddleware.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 5 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Core/API/AJAX/Middleware/AdminPermissionsMiddleware.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 10 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Core/API/AJAX/Middleware/AjaxNonceVerifierMiddleware.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 13 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Core/API/AJAX/Middleware/EditorPermissionsMiddleware.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 10 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Core/API/Exceptions/NotFoundException.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 4 code lines NamingConvention: 100 (A), based on 1 name Security: not graded advanced-custom-post-type/src/Core/API/Exceptions/UnauthorizedException.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 4 code lines NamingConvention: 100 (A), based on 1 name Security: not graded advanced-custom-post-type/src/Core/API/V1/Controllers/AbstractController.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 12 functions Duplication: 100 (A), based on 80 code lines NamingConvention: 96 (A), based on 28 names 51:38 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/API/V1/Controllers/BlocksController.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 7 functions Duplication: 100 (A), based on 98 code lines NamingConvention: 95 (A), based on 21 names 103:10 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/API/V1/Controllers/CustomPostTypeController.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 5 functions Duplication: 40 (F), based on 145 code lines 161:1 [warning] duplication.repeated_block - lines 161 to 173 repeat lines 104 to 117 (89 tokens); repeated code has to be fixed in every copy 173:1 [warning] duplication.repeated_block - lines 173 to 192 repeat lines 117 to 136 (78 tokens); repeated code has to be fixed in every copy NamingConvention: 95 (A), based on 21 names 79:10 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/API/V1/Controllers/FilterQueryController.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 31 code lines NamingConvention: 100 (A), based on 11 names Security: not graded advanced-custom-post-type/src/Core/API/V1/Controllers/FormController.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 7 functions Duplication: 100 (A), based on 102 code lines NamingConvention: 95 (A), based on 20 names 101:10 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/API/V1/Controllers/FormSubmissionController.php (other) CodeLength: not graded 13:21 [warning] length.function - FormSubmissionController::submit has 75 lines in its body, above 50 94:22 [warning] length.function - FormSubmissionController::redirectUrl has 81 lines in its body, above 50 CyclomaticComplexity: 70 (C), based on 2 functions 13:21 [warning] complexity.function - FormSubmissionController::submit has a cyclomatic complexity of 15, moderate risk (above 10): each of its 15 paths needs its own test, which makes it hard to follow and to change safely 94:22 [warning] complexity.function - FormSubmissionController::redirectUrl has a cyclomatic complexity of 17, moderate risk (above 10): each of its 17 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 118 code lines NamingConvention: 100 (A), based on 25 names Security: not graded advanced-custom-post-type/src/Core/API/V1/Controllers/LicenseController.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 26 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Core/API/V1/Controllers/MetaController.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 7 functions Duplication: 70 (C), based on 98 code lines 126:1 [warning] duplication.repeated_block - lines 126 to 144 repeat lines 39 to 56 (54 tokens); repeated code has to be fixed in every copy NamingConvention: 95 (A), based on 21 names 103:10 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/API/V1/Controllers/OptionPageController.php (other) CodeLength: not graded 77:21 [warning] length.function - OptionPageController::create has 53 lines in its body, above 50 137:21 [warning] length.function - OptionPageController::update has 55 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 5 functions Duplication: 40 (F), based on 148 code lines 166:1 [warning] duplication.repeated_block - lines 166 to 176 repeat lines 104 to 114 (143 tokens); repeated code has to be fixed in every copy 182:1 [warning] duplication.repeated_block - lines 182 to 200 repeat lines 120 to 138 (69 tokens); repeated code has to be fixed in every copy NamingConvention: 95 (A), based on 20 names 79:10 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/API/V1/Controllers/SchemaController.php (other) CodeLength: not graded 85:22 [warning] length.function - SchemaController::getTags has 83 lines in its body, above 50 189:22 [error] length.function - SchemaController::getPaths has 2377 lines in its body, above 100 2573:22 [warning] length.function - SchemaController::getModelDefinitions has 56 lines in its body, above 50 28:7 [error] length.class - SchemaController has 2872 lines, above 1000 for a other 1:1 [error] length.file - the file has 2899 lines, above 1200 for a other CyclomaticComplexity: 40 (F), based on 20 functions 189:22 [error] complexity.function - SchemaController::getPaths has a cyclomatic complexity of 23, high risk (above 10): each of its 23 paths needs its own test, which makes it hard to follow and to change safely Duplication: 0 (F), based on 2724 code lines 317:1 [warning] duplication.repeated_block - lines 317 to 331 repeat lines 280 to 294 (70 tokens); repeated code has to be fixed in every copy 338:1 [warning] duplication.repeated_block - lines 338 to 353 repeat lines 293 to 308 (66 tokens); repeated code has to be fixed in every copy 368:1 [warning] duplication.repeated_block - lines 368 to 388 repeat lines 280 to 300 (98 tokens); repeated code has to be fixed in every copy 388:1 [warning] duplication.repeated_block - lines 388 to 404 repeat lines 345 to 361 (66 tokens); repeated code has to be fixed in every copy 416:1 [warning] duplication.repeated_block - lines 416 to 445 repeat lines 201 to 230 (156 tokens); repeated code has to be fixed in every copy 455:1 [warning] duplication.repeated_block - lines 455 to 466 repeat lines 240 to 251 (51 tokens); repeated code has to be fixed in every copy 468:1 [warning] duplication.repeated_block - lines 468 to 488 repeat lines 253 to 273 (78 tokens); repeated code has to be fixed in every copy 495:1 [warning] duplication.repeated_block - lines 495 to 506 repeat lines 280 to 291 (51 tokens); repeated code has to be fixed in every copy 532:1 [warning] duplication.repeated_block - lines 532 to 543 repeat lines 280 to 291 (51 tokens); repeated code has to be fixed in every copy 553:1 [warning] duplication.repeated_block - lines 553 to 568 repeat lines 508 to 523 (66 tokens); repeated code has to be fixed in every copy 583:1 [warning] duplication.repeated_block - lines 583 to 594 repeat lines 280 to 291 (51 tokens); repeated code has to be fixed in every copy 594:1 [warning] duplication.repeated_block - lines 594 to 620 repeat lines 379 to 405 (115 tokens); repeated code has to be fixed in every copy 628:1 [warning] duplication.repeated_block - lines 628 to 639 repeat lines 280 to 291 (51 tokens); repeated code has to be fixed in every copy 665:1 [warning] duplication.repeated_block - lines 665 to 681 repeat lines 345 to 361 (64 tokens); repeated code has to be fixed in every copy 693:1 [warning] duplication.repeated_block - lines 693 to 722 repeat lines 201 to 230 (156 tokens); repeated code has to be fixed in every copy 732:1 [warning] duplication.repeated_block - lines 732 to 743 repeat lines 240 to 251 (51 tokens); repeated code has to be fixed in every copy 745:1 [warning] duplication.repeated_block - lines 745 to 765 repeat lines 253 to 273 (78 tokens); repeated code has to be fixed in every copy 772:1 [warning] duplication.repeated_block - lines 772 to 783 repeat lines 280 to 291 (51 tokens); repeated code has to be fixed in every copy 809:1 [warning] duplication.repeated_block - lines 809 to 820 repeat lines 280 to 291 (51 tokens); repeated code has to be fixed in every copy 830:1 [warning] duplication.repeated_block - lines 830 to 845 repeat lines 785 to 800 (66 tokens); repeated code has to be fixed in every copy 860:1 [warning] duplication.repeated_block - lines 860 to 871 repeat lines 280 to 291 (51 tokens); repeated code has to be fixed in every copy 871:1 [warning] duplication.repeated_block - lines 871 to 900 repeat lines 379 to 408 (120 tokens); repeated code has to be fixed in every copy 908:1 [warning] duplication.repeated_block - lines 908 to 937 repeat lines 201 to 230 (156 tokens); repeated code has to be fixed in every copy 953:1 [warning] duplication.repeated_block - lines 953 to 964 repeat lines 240 to 251 (51 tokens); repeated code has to be fixed in every copy 1031:1 [warning] duplication.repeated_block - lines 1031 to 1046 repeat lines 993 to 1008 (78 tokens); repeated code has to be fixed in every copy 1057:1 [warning] duplication.repeated_block - lines 1057 to 1070 repeat lines 971 to 984 (59 tokens); repeated code has to be fixed in every copy 1077:1 [warning] duplication.repeated_block - lines 1077 to 1098 repeat lines 993 to 1014 (106 tokens); repeated code has to be fixed in every copy 1098:1 [warning] duplication.repeated_block - lines 1098 to 1118 repeat lines 388 to 408 (74 tokens); repeated code has to be fixed in every copy 1126:1 [warning] duplication.repeated_block - lines 1126 to 1155 repeat lines 201 to 230 (156 tokens); repeated code has to be fixed in every copy 1171:1 [warning] duplication.repeated_block - lines 1171 to 1182 repeat lines 240 to 251 (51 tokens); repeated code has to be fixed in every copy 1184:1 [warning] duplication.repeated_block - lines 1184 to 1204 repeat lines 966 to 986 (78 tokens); repeated code has to be fixed in every copy 1211:1 [warning] duplication.repeated_block - lines 1211 to 1222 repeat lines 993 to 1004 (51 tokens); repeated code has to be fixed in every copy 1222:1 [warning] duplication.repeated_block - lines 1222 to 1232 repeat lines 1004 to 1014 (54 tokens); repeated code has to be fixed in every copy 1249:1 [warning] duplication.repeated_block - lines 1249 to 1260 repeat lines 993 to 1004 (51 tokens); repeated code has to be fixed in every copy 1260:1 [warning] duplication.repeated_block - lines 1260 to 1270 repeat lines 1042 to 1052 (61 tokens); repeated code has to be fixed in every copy 1270:1 [warning] duplication.repeated_block - lines 1270 to 1291 repeat lines 1052 to 1073 (84 tokens); repeated code has to be fixed in every copy 1295:1 [warning] duplication.repeated_block - lines 1295 to 1306 repeat lines 993 to 1004 (51 tokens); repeated code has to be fixed in every copy 1306:1 [warning] duplication.repeated_block - lines 1306 to 1324 repeat lines 1222 to 1240 (90 tokens); repeated code has to be fixed in every copy 1344:1 [warning] duplication.repeated_block - lines 1344 to 1373 repeat lines 201 to 230 (156 tokens); repeated code has to be fixed in every copy 1389:1 [warning] duplication.repeated_block - lines 1389 to 1400 repeat lines 240 to 251 (51 tokens); repeated code has to be fixed in every copy 1402:1 [warning] duplication.repeated_block - lines 1402 to 1422 repeat lines 966 to 986 (78 tokens); repeated code has to be fixed in every copy 1429:1 [warning] duplication.repeated_block - lines 1429 to 1440 repeat lines 993 to 1004 (51 tokens); repeated code has to be fixed in every copy 1440:1 [warning] duplication.repeated_block - lines 1440 to 1450 repeat lines 1004 to 1014 (54 tokens); repeated code has to be fixed in every copy 1467:1 [warning] duplication.repeated_block - lines 1467 to 1478 repeat lines 993 to 1004 (51 tokens); repeated code has to be fixed in every copy 1488:1 [warning] duplication.repeated_block - lines 1488 to 1509 repeat lines 1052 to 1073 (84 tokens); repeated code has to be fixed in every copy 1513:1 [warning] duplication.repeated_block - lines 1513 to 1524 repeat lines 993 to 1004 (51 tokens); repeated code has to be fixed in every copy 1524:1 [warning] duplication.repeated_block - lines 1524 to 1534 repeat lines 1440 to 1450 (55 tokens); repeated code has to be fixed in every copy 1534:1 [warning] duplication.repeated_block - lines 1534 to 1554 repeat lines 388 to 408 (74 tokens); repeated code has to be fixed in every copy 1574:1 [warning] duplication.repeated_block - lines 1574 to 1584 repeat lines 219 to 229 (51 tokens); repeated code has to be fixed in every copy 1661:1 [warning] duplication.repeated_block - lines 1661 to 1672 repeat lines 1629 to 1640 (76 tokens); repeated code has to be fixed in every copy 1707:1 [warning] duplication.repeated_block - lines 1707 to 1723 repeat lines 1629 to 1645 (104 tokens); repeated code has to be fixed in every copy 1726:1 [warning] duplication.repeated_block - lines 1726 to 1742 repeat lines 1686 to 1702 (103 tokens); repeated code has to be fixed in every copy 1749:1 [warning] duplication.repeated_block - lines 1749 to 1765 repeat lines 1629 to 1645 (104 tokens); repeated code has to be fixed in every copy 1765:1 [warning] duplication.repeated_block - lines 1765 to 1776 repeat lines 1645 to 1656 (63 tokens); repeated code has to be fixed in every copy 1783:1 [warning] duplication.repeated_block - lines 1783 to 1799 repeat lines 1629 to 1645 (104 tokens); repeated code has to be fixed in every copy 1799:1 [warning] duplication.repeated_block - lines 1799 to 1812 repeat lines 1723 to 1736 (86 tokens); repeated code has to be fixed in every copy 1835:1 [warning] duplication.repeated_block - lines 1835 to 1860 repeat lines 1560 to 1585 (155 tokens); repeated code has to be fixed in every copy 1885:1 [warning] duplication.repeated_block - lines 1885 to 1896 repeat lines 1645 to 1656 (62 tokens); repeated code has to be fixed in every copy 1944:1 [warning] duplication.repeated_block - lines 1944 to 1954 repeat lines 1870 to 1880 (95 tokens); repeated code has to be fixed in every copy 1955:1 [warning] duplication.repeated_block - lines 1955 to 1964 repeat lines 1908 to 1917 (69 tokens); repeated code has to be fixed in every copy 1968:1 [warning] duplication.repeated_block - lines 1968 to 1986 repeat lines 1921 to 1939 (73 tokens); repeated code has to be fixed in every copy 1990:1 [warning] duplication.repeated_block - lines 1990 to 2006 repeat lines 1869 to 1885 (138 tokens); repeated code has to be fixed in every copy 2006:1 [warning] duplication.repeated_block - lines 2006 to 2025 repeat lines 1723 to 1742 (117 tokens); repeated code has to be fixed in every copy 2038:1 [warning] duplication.repeated_block - lines 2038 to 2067 repeat lines 201 to 230 (156 tokens); repeated code has to be fixed in every copy 2077:1 [warning] duplication.repeated_block - lines 2077 to 2088 repeat lines 240 to 251 (51 tokens); repeated code has to be fixed in every copy 2090:1 [warning] duplication.repeated_block - lines 2090 to 2110 repeat lines 253 to 273 (78 tokens); repeated code has to be fixed in every copy 2117:1 [warning] duplication.repeated_block - lines 2117 to 2128 repeat lines 993 to 1004 (51 tokens); repeated code has to be fixed in every copy 2128:1 [warning] duplication.repeated_block - lines 2128 to 2138 repeat lines 1004 to 1014 (54 tokens); repeated code has to be fixed in every copy 2155:1 [warning] duplication.repeated_block - lines 2155 to 2166 repeat lines 993 to 1004 (51 tokens); repeated code has to be fixed in every copy 2177:1 [warning] duplication.repeated_block - lines 2177 to 2192 repeat lines 2131 to 2146 (66 tokens); repeated code has to be fixed in every copy 2207:1 [warning] duplication.repeated_block - lines 2207 to 2218 repeat lines 993 to 1004 (51 tokens); repeated code has to be fixed in every copy 2218:1 [warning] duplication.repeated_block - lines 2218 to 2228 repeat lines 2128 to 2138 (55 tokens); repeated code has to be fixed in every copy 2228:1 [warning] duplication.repeated_block - lines 2228 to 2245 repeat lines 388 to 405 (69 tokens); repeated code has to be fixed in every copy 2253:1 [warning] duplication.repeated_block - lines 2253 to 2264 repeat lines 993 to 1004 (51 tokens); repeated code has to be fixed in every copy 2264:1 [warning] duplication.repeated_block - lines 2264 to 2274 repeat lines 2128 to 2138 (51 tokens); repeated code has to be fixed in every copy 2294:1 [warning] duplication.repeated_block - lines 2294 to 2305 repeat lines 240 to 251 (51 tokens); repeated code has to be fixed in every copy 2333:1 [warning] duplication.repeated_block - lines 2333 to 2344 repeat lines 240 to 251 (51 tokens); repeated code has to be fixed in every copy 2352:1 [warning] duplication.repeated_block - lines 2352 to 2366 repeat lines 2313 to 2327 (60 tokens); repeated code has to be fixed in every copy 2372:1 [warning] duplication.repeated_block - lines 2372 to 2383 repeat lines 993 to 1004 (51 tokens); repeated code has to be fixed in every copy 2383:1 [warning] duplication.repeated_block - lines 2383 to 2393 repeat lines 2128 to 2138 (55 tokens); repeated code has to be fixed in every copy 2393:1 [warning] duplication.repeated_block - lines 2393 to 2410 repeat lines 388 to 405 (69 tokens); repeated code has to be fixed in every copy 2418:1 [warning] duplication.repeated_block - lines 2418 to 2429 repeat lines 993 to 1004 (51 tokens); repeated code has to be fixed in every copy 2429:1 [warning] duplication.repeated_block - lines 2429 to 2439 repeat lines 1004 to 1014 (54 tokens); repeated code has to be fixed in every copy 2456:1 [warning] duplication.repeated_block - lines 2456 to 2467 repeat lines 993 to 1004 (51 tokens); repeated code has to be fixed in every copy 2475:1 [warning] duplication.repeated_block - lines 2475 to 2485 repeat lines 1004 to 1014 (54 tokens); repeated code has to be fixed in every copy 2485:1 [warning] duplication.repeated_block - lines 2485 to 2505 repeat lines 388 to 408 (74 tokens); repeated code has to be fixed in every copy 2518:1 [warning] duplication.repeated_block - lines 2518 to 2529 repeat lines 240 to 251 (51 tokens); repeated code has to be fixed in every copy 2541:1 [warning] duplication.repeated_block - lines 2541 to 2557 repeat lines 214 to 230 (89 tokens); repeated code has to be fixed in every copy 2797:1 [warning] duplication.repeated_block - lines 2797 to 2819 repeat lines 2701 to 2725 (81 tokens); repeated code has to be fixed in every copy NamingConvention: 97 (A), based on 33 names 2768:22 [warning] naming.too_long - method `getWooCommerceFieldsCreateResponse` is 34 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/API/V1/Controllers/TableController.php (other) CodeLength: not graded 156:21 [warning] length.function - TableController::sync has 52 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 9 functions Duplication: 0 (F), based on 189 code lines 109:1 [warning] duplication.repeated_block - lines 109 to 128 repeat lines 88 to 107 (67 tokens); repeated code has to be fixed in every copy 140:1 [warning] duplication.repeated_block - lines 140 to 160 repeat lines 69 to 86 (62 tokens); repeated code has to be fixed in every copy 162:1 [warning] duplication.repeated_block - lines 162 to 173 repeat lines 56 to 67 (60 tokens); repeated code has to be fixed in every copy 203:1 [warning] duplication.repeated_block - lines 203 to 233 repeat lines 41 to 69 (109 tokens); repeated code has to be fixed in every copy NamingConvention: 96 (A), based on 27 names 250:10 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/API/V1/Controllers/TableRecordController.php (other) CodeLength: not graded 69:21 [error] length.function - TableRecordController::list has 155 lines in its body, above 100 486:22 [warning] length.function - TableRecordController::syncBidirectionalRelations has 61 lines in its body, above 50 852:22 [warning] length.function - TableRecordController::normalizeFlexibleContentFields has 72 lines in its body, above 50 934:22 [warning] length.function - TableRecordController::sanitize has 62 lines in its body, above 50 1090:22 [error] length.function - TableRecordController::normalizeDateFields has 114 lines in its body, above 100 39:7 [error] length.class - TableRecordController has 1223 lines, above 1000 for a other 1:1 [error] length.file - the file has 1261 lines, above 1200 for a other CyclomaticComplexity: 69 (D), based on 24 functions 69:21 [error] complexity.function - TableRecordController::list has a cyclomatic complexity of 44, high risk (above 10): each of its 44 paths needs its own test, which makes it hard to follow and to change safely 486:22 [warning] complexity.function - TableRecordController::syncBidirectionalRelations has a cyclomatic complexity of 17, moderate risk (above 10): each of its 17 paths needs its own test, which makes it hard to follow and to change safely 566:22 [warning] complexity.function - TableRecordController::normalizeRelIds has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely 852:22 [error] complexity.function - TableRecordController::normalizeFlexibleContentFields has a cyclomatic complexity of 24, high risk (above 10): each of its 24 paths needs its own test, which makes it hard to follow and to change safely 934:22 [warning] complexity.function - TableRecordController::sanitize has a cyclomatic complexity of 14, moderate risk (above 10): each of its 14 paths needs its own test, which makes it hard to follow and to change safely 1090:22 [error] complexity.function - TableRecordController::normalizeDateFields has a cyclomatic complexity of 45, high risk (above 10): each of its 45 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 722 code lines 394:1 [warning] duplication.repeated_block - lines 394 to 420 repeat lines 367 to 387 (50 tokens); repeated code has to be fixed in every copy 837:1 [warning] duplication.repeated_block - lines 837 to 861 repeat lines 771 to 796 (69 tokens); repeated code has to be fixed in every copy 995:1 [warning] duplication.repeated_block - lines 995 to 1015 repeat lines 836 to 861 (62 tokens); repeated code has to be fixed in every copy 1152:1 [warning] duplication.repeated_block - lines 1152 to 1161 repeat lines 1143 to 1152 (53 tokens); repeated code has to be fixed in every copy 1161:1 [warning] duplication.repeated_block - lines 1161 to 1171 repeat lines 1143 to 1152 (53 tokens); repeated code has to be fixed in every copy NamingConvention: 95 (A), based on 132 names 78:10 [warning] naming.too_short - variable `s` is 1 character (at least 2); a one letter name hides its meaning 87:22 [warning] naming.too_short - parameter `c` is 1 character (at least 2); a one letter name hides its meaning 252:54 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds 536:71 [warning] naming.too_short - parameter `v` is 1 character (at least 2); a one letter name hides its meaning 908:30 [warning] naming.generic - variable `val` is a generic name; it says nothing about what it holds 1134:41 [warning] naming.too_short - parameter `a` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Core/API/V1/Controllers/TableRecordHttpAdapter.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 9 functions Duplication: 100 (A), based on 102 code lines NamingConvention: 95 (A), based on 21 names 59:14 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/API/V1/Controllers/TaxonomyController.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 6 functions Duplication: 40 (F), based on 159 code lines 159:1 [warning] duplication.repeated_block - lines 159 to 171 repeat lines 104 to 116 (74 tokens); repeated code has to be fixed in every copy 171:1 [warning] duplication.repeated_block - lines 171 to 189 repeat lines 116 to 134 (78 tokens); repeated code has to be fixed in every copy 203:1 [warning] duplication.repeated_block - lines 203 to 220 repeat lines 62 to 79 (55 tokens); repeated code has to be fixed in every copy NamingConvention: 96 (A), based on 23 names 79:10 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/API/V1/Controllers/WooCommerceController.php (other) CodeLength: not graded 150:21 [warning] length.function - WooCommerceController::update has 52 lines in its body, above 50 230:21 [error] length.function - WooCommerceController::createFields has 103 lines in its body, above 100 341:21 [error] length.function - WooCommerceController::updateFields has 103 lines in its body, above 100 CyclomaticComplexity: 93 (A), based on 11 functions 341:21 [warning] complexity.function - WooCommerceController::updateFields has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 0 (F), based on 327 code lines 114:1 [warning] duplication.repeated_block - lines 114 to 132 repeat lines 40 to 58 (53 tokens); repeated code has to be fixed in every copy 136:1 [warning] duplication.repeated_block - lines 136 to 152 repeat lines 40 to 55 (50 tokens); repeated code has to be fixed in every copy 192:1 [warning] duplication.repeated_block - lines 192 to 214 repeat lines 110 to 132 (81 tokens); repeated code has to be fixed in every copy 216:1 [warning] duplication.repeated_block - lines 216 to 233 repeat lines 136 to 153 (54 tokens); repeated code has to be fixed in every copy 327:1 [warning] duplication.repeated_block - lines 327 to 343 repeat lines 40 to 55 (50 tokens); repeated code has to be fixed in every copy 344:1 [warning] duplication.repeated_block - lines 344 to 358 repeat lines 233 to 247 (63 tokens); repeated code has to be fixed in every copy 360:1 [warning] duplication.repeated_block - lines 360 to 379 repeat lines 249 to 268 (69 tokens); repeated code has to be fixed in every copy 379:1 [warning] duplication.repeated_block - lines 379 to 392 repeat lines 268 to 281 (101 tokens); repeated code has to be fixed in every copy 395:1 [warning] duplication.repeated_block - lines 395 to 408 repeat lines 371 to 383 (68 tokens); repeated code has to be fixed in every copy 408:1 [warning] duplication.repeated_block - lines 408 to 434 repeat lines 301 to 327 (129 tokens); repeated code has to be fixed in every copy 434:1 [warning] duplication.repeated_block - lines 434 to 456 repeat lines 192 to 214 (82 tokens); repeated code has to be fixed in every copy 456:1 [warning] duplication.repeated_block - lines 456 to 476 repeat lines 132 to 153 (71 tokens); repeated code has to be fixed in every copy 479:1 [warning] duplication.repeated_block - lines 479 to 497 repeat lines 214 to 233 (63 tokens); repeated code has to be fixed in every copy NamingConvention: 97 (A), based on 38 names 81:10 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/API/V1/Helpers/TableRecordFileHandler.php (other) CodeLength: not graded 228:29 [warning] length.function - TableRecordFileHandler::validateFile has 68 lines in its body, above 50 CyclomaticComplexity: 78 (C), based on 8 functions 92:29 [warning] complexity.function - TableRecordFileHandler::resolveSingle has a cyclomatic complexity of 17, moderate risk (above 10): each of its 17 paths needs its own test, which makes it hard to follow and to change safely 153:29 [warning] complexity.function - TableRecordFileHandler::resolveMulti has a cyclomatic complexity of 15, moderate risk (above 10): each of its 15 paths needs its own test, which makes it hard to follow and to change safely 228:29 [warning] complexity.function - TableRecordFileHandler::validateFile has a cyclomatic complexity of 17, moderate risk (above 10): each of its 17 paths needs its own test, which makes it hard to follow and to change safely 374:29 [warning] complexity.function - TableRecordFileHandler::normalizeMultipleFiles has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 220 code lines NamingConvention: 97 (A), based on 32 names 42:63 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/API/V1/Helpers/TableRecordRepresenter.php (other) CodeLength: not graded 184:29 [error] length.function - TableRecordRepresenter::castValueForUI has 167 lines in its body, above 100 CyclomaticComplexity: 29 (F), based on 6 functions 184:29 [error] complexity.function - TableRecordRepresenter::castValueForUI has a cyclomatic complexity of 90, untestable risk (above 10): each of its 90 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 225 code lines 41:1 [warning] duplication.repeated_block - lines 41 to 54 repeat lines 24 to 37 (57 tokens); repeated code has to be fixed in every copy 146:1 [warning] duplication.repeated_block - lines 146 to 164 repeat lines 68 to 85 (62 tokens); repeated code has to be fixed in every copy 299:1 [warning] duplication.repeated_block - lines 299 to 307 repeat lines 286 to 295 (58 tokens); repeated code has to be fixed in every copy NamingConvention: 97 (A), based on 32 names 235:22 [warning] naming.generic - variable `val` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/Ability/AbilityRegistry.php (other) CodeLength: not graded 74:28 [warning] length.function - AbilityRegistry::all has 61 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 1 function Duplication: 0 (F), based on 66 code lines 90:1 [warning] duplication.repeated_block - lines 90 to 102 repeat lines 77 to 89 (52 tokens); repeated code has to be fixed in every copy 103:1 [warning] duplication.repeated_block - lines 103 to 128 repeat lines 77 to 102 (104 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Core/Ability/AbstractAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 14 functions Duplication: 100 (A), based on 139 code lines NamingConvention: 88 (B), based on 32 names 48:37 [warning] naming.inconsistent_style - method `input_schema` is snake_case, while most methods in this file are camelCase (5 of 21 names); mixed styles make code harder to scan 53:37 [warning] naming.inconsistent_style - method `output_schema` is snake_case, while most methods in this file are camelCase (5 of 21 names); mixed styles make code harder to scan 151:28 [warning] naming.inconsistent_style - method `execute_callback` is snake_case, while most methods in this file are camelCase (5 of 21 names); mixed styles make code harder to scan 188:28 [warning] naming.inconsistent_style - method `permission_callback` is snake_case, while most methods in this file are camelCase (5 of 21 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Ability/Categories/AbilityCategories.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 27 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Core/Ability/CustomPostType/DeleteCustomPostTypeAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 9 functions Duplication: 100 (A), based on 49 code lines NamingConvention: 91 (A), based on 11 names 79:31 [warning] naming.inconsistent_style - method `failureMessage` is camelCase, while most methods in this file are snake_case (2 of 9 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Ability/CustomPostType/GetCustomPostTypeAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 53 code lines NamingConvention: 100 (A), based on 13 names Security: not graded advanced-custom-post-type/src/Core/Ability/CustomPostType/ListCustomPostTypesAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 41 code lines NamingConvention: 100 (A), based on 11 names Security: not graded advanced-custom-post-type/src/Core/Ability/CustomPostType/SaveCustomPostTypeAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 49 code lines NamingConvention: 93 (A), based on 14 names 98:31 [warning] naming.inconsistent_style - method `failureMessage` is camelCase, while most methods in this file are snake_case (2 of 8 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Ability/DynamicBlock/DeleteDynamicBlockAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 9 functions Duplication: 100 (A), based on 46 code lines NamingConvention: 91 (A), based on 11 names 76:31 [warning] naming.inconsistent_style - method `failureMessage` is camelCase, while most methods in this file are snake_case (2 of 9 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Ability/DynamicBlock/GetDynamicBlockAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 44 code lines NamingConvention: 100 (A), based on 12 names Security: not graded advanced-custom-post-type/src/Core/Ability/DynamicBlock/ListDynamicBlocksAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 41 code lines NamingConvention: 100 (A), based on 11 names Security: not graded advanced-custom-post-type/src/Core/Ability/DynamicBlock/SaveDynamicBlockAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 43 code lines NamingConvention: 92 (A), based on 12 names 82:31 [warning] naming.inconsistent_style - method `failureMessage` is camelCase, while most methods in this file are snake_case (2 of 8 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Ability/Form/DeleteFormAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 9 functions Duplication: 100 (A), based on 46 code lines NamingConvention: 91 (A), based on 11 names 76:31 [warning] naming.inconsistent_style - method `failureMessage` is camelCase, while most methods in this file are snake_case (2 of 9 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Ability/Form/GetFormAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 43 code lines NamingConvention: 100 (A), based on 11 names Security: not graded advanced-custom-post-type/src/Core/Ability/Form/ListFormsAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 41 code lines NamingConvention: 100 (A), based on 11 names Security: not graded advanced-custom-post-type/src/Core/Ability/Form/SaveFormAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 42 code lines NamingConvention: 91 (A), based on 11 names 79:31 [warning] naming.inconsistent_style - method `failureMessage` is camelCase, while most methods in this file are snake_case (2 of 8 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Ability/FormField/DeleteFormFieldAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 9 functions Duplication: 100 (A), based on 49 code lines NamingConvention: 91 (A), based on 11 names 79:31 [warning] naming.inconsistent_style - method `failureMessage` is camelCase, while most methods in this file are snake_case (2 of 9 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Ability/FormField/GetFormFieldAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 46 code lines NamingConvention: 100 (A), based on 11 names Security: not graded advanced-custom-post-type/src/Core/Ability/FormField/SaveFormFieldAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 45 code lines NamingConvention: 92 (A), based on 12 names 82:31 [warning] naming.inconsistent_style - method `failureMessage` is camelCase, while most methods in this file are snake_case (2 of 8 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Ability/Helpers/AbilityOutputSchema.php (other) CodeLength: not graded CyclomaticComplexity: 82 (B), based on 5 functions 89:31 [warning] complexity.function - AbilityOutputSchema::relaxForOutput has a cyclomatic complexity of 20, moderate risk (above 10): each of its 20 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 67 code lines NamingConvention: 100 (A), based on 15 names Security: not graded advanced-custom-post-type/src/Core/Ability/MetaBox/DeleteMetaBoxAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 9 functions Duplication: 100 (A), based on 49 code lines NamingConvention: 91 (A), based on 11 names 79:31 [warning] naming.inconsistent_style - method `failureMessage` is camelCase, while most methods in this file are snake_case (2 of 9 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Ability/MetaBox/GetMetaBoxAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 43 code lines NamingConvention: 100 (A), based on 11 names Security: not graded advanced-custom-post-type/src/Core/Ability/MetaBox/ListMetaBoxesAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 44 code lines NamingConvention: 100 (A), based on 12 names Security: not graded advanced-custom-post-type/src/Core/Ability/MetaBox/SaveMetaBoxAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 52 code lines NamingConvention: 91 (A), based on 11 names 89:31 [warning] naming.inconsistent_style - method `failureMessage` is camelCase, while most methods in this file are snake_case (2 of 8 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Ability/MetaField/DeleteMetaFieldAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 9 functions Duplication: 100 (A), based on 54 code lines NamingConvention: 91 (A), based on 11 names 84:31 [warning] naming.inconsistent_style - method `failureMessage` is camelCase, while most methods in this file are snake_case (2 of 9 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Ability/MetaField/GetMetaFieldAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 46 code lines NamingConvention: 100 (A), based on 11 names Security: not graded advanced-custom-post-type/src/Core/Ability/MetaField/ListMetaFieldsAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 57 code lines NamingConvention: 100 (A), based on 11 names Security: not graded advanced-custom-post-type/src/Core/Ability/MetaField/SaveMetaFieldAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 52 code lines NamingConvention: 92 (A), based on 12 names 90:31 [warning] naming.inconsistent_style - method `failureMessage` is camelCase, while most methods in this file are snake_case (2 of 8 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Ability/MetaFieldValue/AppendMetaFieldValueAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 9 functions Duplication: 100 (A), based on 49 code lines NamingConvention: 90 (A), based on 10 names 87:31 [warning] naming.inconsistent_style - method `failureMessage` is camelCase, while most methods in this file are snake_case (2 of 9 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Ability/MetaFieldValue/DeleteMetaFieldValueAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 10 functions Duplication: 100 (A), based on 52 code lines NamingConvention: 91 (A), based on 11 names 86:31 [warning] naming.inconsistent_style - method `failureMessage` is camelCase, while most methods in this file are snake_case (2 of 10 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Ability/MetaFieldValue/GetMetaFieldValueAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 10 functions Duplication: 100 (A), based on 56 code lines NamingConvention: 92 (A), based on 12 names 103:31 [warning] naming.inconsistent_style - method `isFailure` is camelCase, while most methods in this file are snake_case (2 of 10 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Ability/MetaFieldValue/ListMetaFieldValuesAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 9 functions Duplication: 100 (A), based on 51 code lines NamingConvention: 100 (A), based on 10 names Security: not graded advanced-custom-post-type/src/Core/Ability/MetaFieldValue/LocationSchema.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 19 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Core/Ability/MetaFieldValue/SaveMetaFieldValueAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 9 functions Duplication: 100 (A), based on 49 code lines NamingConvention: 90 (A), based on 10 names 87:31 [warning] naming.inconsistent_style - method `failureMessage` is camelCase, while most methods in this file are snake_case (2 of 9 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Ability/MetaGroup/DeleteMetaGroupAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 9 functions Duplication: 100 (A), based on 46 code lines NamingConvention: 91 (A), based on 11 names 76:31 [warning] naming.inconsistent_style - method `failureMessage` is camelCase, while most methods in this file are snake_case (2 of 9 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Ability/MetaGroup/GetMetaGroupAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 43 code lines NamingConvention: 100 (A), based on 11 names Security: not graded advanced-custom-post-type/src/Core/Ability/MetaGroup/ListMetaGroupsAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 44 code lines NamingConvention: 100 (A), based on 11 names Security: not graded advanced-custom-post-type/src/Core/Ability/MetaGroup/SaveMetaGroupAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 42 code lines NamingConvention: 91 (A), based on 11 names 79:31 [warning] naming.inconsistent_style - method `failureMessage` is camelCase, while most methods in this file are snake_case (2 of 8 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Ability/OptionPage/DeleteOptionPageAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 9 functions Duplication: 100 (A), based on 49 code lines NamingConvention: 91 (A), based on 11 names 79:31 [warning] naming.inconsistent_style - method `failureMessage` is camelCase, while most methods in this file are snake_case (2 of 9 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Ability/OptionPage/GetOptionPageAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 47 code lines NamingConvention: 100 (A), based on 12 names Security: not graded advanced-custom-post-type/src/Core/Ability/OptionPage/ListOptionPagesAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 41 code lines NamingConvention: 100 (A), based on 11 names Security: not graded advanced-custom-post-type/src/Core/Ability/OptionPage/SaveOptionPageAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 61 code lines NamingConvention: 92 (A), based on 13 names 102:31 [warning] naming.inconsistent_style - method `failureMessage` is camelCase, while most methods in this file are snake_case (2 of 8 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Ability/Table/DeleteTableAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 9 functions Duplication: 100 (A), based on 46 code lines NamingConvention: 91 (A), based on 11 names 76:31 [warning] naming.inconsistent_style - method `failureMessage` is camelCase, while most methods in this file are snake_case (2 of 9 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Ability/Table/GetTableAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 42 code lines NamingConvention: 100 (A), based on 10 names Security: not graded advanced-custom-post-type/src/Core/Ability/Table/GetTableStatusAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 9 functions Duplication: 100 (A), based on 53 code lines NamingConvention: 91 (A), based on 11 names 91:31 [warning] naming.inconsistent_style - method `failureMessage` is camelCase, while most methods in this file are snake_case (2 of 9 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Ability/Table/ListTablesAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 40 code lines NamingConvention: 100 (A), based on 10 names Security: not graded advanced-custom-post-type/src/Core/Ability/Table/SaveTableAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 44 code lines NamingConvention: 90 (A), based on 10 names 82:31 [warning] naming.inconsistent_style - method `failureMessage` is camelCase, while most methods in this file are snake_case (2 of 8 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Ability/Table/SyncTableAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 9 functions Duplication: 100 (A), based on 46 code lines NamingConvention: 91 (A), based on 11 names 76:31 [warning] naming.inconsistent_style - method `failureMessage` is camelCase, while most methods in this file are snake_case (2 of 9 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Ability/Table/TableSchemas.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 19 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Core/Ability/TableGroup/DeleteTableGroupAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 9 functions Duplication: 100 (A), based on 46 code lines NamingConvention: 91 (A), based on 11 names 76:31 [warning] naming.inconsistent_style - method `failureMessage` is camelCase, while most methods in this file are snake_case (2 of 9 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Ability/TableGroup/GetTableGroupAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 44 code lines NamingConvention: 100 (A), based on 12 names Security: not graded advanced-custom-post-type/src/Core/Ability/TableGroup/ListTableGroupsAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 41 code lines NamingConvention: 100 (A), based on 11 names Security: not graded advanced-custom-post-type/src/Core/Ability/TableGroup/SaveTableGroupAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 43 code lines NamingConvention: 92 (A), based on 12 names 82:31 [warning] naming.inconsistent_style - method `failureMessage` is camelCase, while most methods in this file are snake_case (2 of 8 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Ability/TableRecord/CreateTableRecordAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 9 functions Duplication: 100 (A), based on 56 code lines NamingConvention: 86 (B), based on 14 names 60:14 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds 97:31 [warning] naming.inconsistent_style - method `failureMessage` is camelCase, while most methods in this file are snake_case (2 of 9 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Ability/TableRecord/DeleteTableRecordAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 10 functions Duplication: 100 (A), based on 56 code lines NamingConvention: 93 (A), based on 14 names 93:31 [warning] naming.inconsistent_style - method `failureMessage` is camelCase, while most methods in this file are snake_case (2 of 10 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Ability/TableRecord/GetTableRecordAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 9 functions Duplication: 100 (A), based on 52 code lines NamingConvention: 100 (A), based on 13 names Security: not graded advanced-custom-post-type/src/Core/Ability/TableRecord/GuardedTableRecordCallback.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 26 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Core/Ability/TableRecord/ListTableRecordsAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 9 functions Duplication: 100 (A), based on 67 code lines NamingConvention: 100 (A), based on 13 names Security: not graded advanced-custom-post-type/src/Core/Ability/TableRecord/UpdateTableRecordAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 9 functions Duplication: 100 (A), based on 60 code lines NamingConvention: 86 (B), based on 14 names 60:14 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds 101:31 [warning] naming.inconsistent_style - method `failureMessage` is camelCase, while most methods in this file are snake_case (2 of 9 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Ability/Taxonomy/AssocTaxonomyToPostTypeAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 46 code lines NamingConvention: 91 (A), based on 11 names 81:31 [warning] naming.inconsistent_style - method `failureMessage` is camelCase, while most methods in this file are snake_case (2 of 8 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Ability/Taxonomy/DeleteTaxonomyAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 9 functions Duplication: 100 (A), based on 48 code lines NamingConvention: 91 (A), based on 11 names 78:31 [warning] naming.inconsistent_style - method `failureMessage` is camelCase, while most methods in this file are snake_case (2 of 9 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Ability/Taxonomy/GetTaxonomyAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 50 code lines NamingConvention: 100 (A), based on 13 names Security: not graded advanced-custom-post-type/src/Core/Ability/Taxonomy/ListTaxonomiesAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 41 code lines NamingConvention: 100 (A), based on 11 names Security: not graded advanced-custom-post-type/src/Core/Ability/Taxonomy/RemoveTaxonomyPostTypeAssocAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 9 functions Duplication: 100 (A), based on 50 code lines NamingConvention: 83 (B), based on 12 names 9:7 [warning] naming.too_long - class `RemoveTaxonomyPostTypeAssocAbility` is 34 characters (limit 30); very long names make code hard to read 81:31 [warning] naming.inconsistent_style - method `failureMessage` is camelCase, while most methods in this file are snake_case (2 of 9 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Ability/Taxonomy/SaveTaxonomyAbility.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 64 code lines NamingConvention: 93 (A), based on 14 names 113:31 [warning] naming.inconsistent_style - method `failureMessage` is camelCase, while most methods in this file are snake_case (2 of 8 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/AbstractCopyCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 60 code lines NamingConvention: 100 (A), based on 18 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/AbstractMetaFieldValueCommand.php (other) CodeLength: not graded CyclomaticComplexity: 88 (B), based on 5 functions 80:24 [warning] complexity.function - AbstractMetaFieldValueCommand::buildFromArgs has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 85 code lines NamingConvention: 100 (A), based on 21 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/AbstractSaveMetaCommand.php (other) CodeLength: not graded 150:24 [error] length.function - AbstractSaveMetaCommand::validateField has 126 lines in its body, above 100 288:24 [error] length.function - AbstractSaveMetaCommand::persistField has 278 lines in its body, above 100 579:24 [warning] length.function - AbstractSaveMetaCommand::validateAndSaveFields has 61 lines in its body, above 50 730:24 [error] length.function - AbstractSaveMetaCommand::convertMetaDataToDBFormat has 117 lines in its body, above 100 897:24 [warning] length.function - AbstractSaveMetaCommand::saveCCTData has 58 lines in its body, above 50 29:16 [warning] length.class - AbstractSaveMetaCommand has 993 lines, above 500 for a other 1:1 [warning] length.file - the file has 1021 lines, above 600 for a other CyclomaticComplexity: 41 (F), based on 15 functions 150:24 [error] complexity.function - AbstractSaveMetaCommand::validateField has a cyclomatic complexity of 33, high risk (above 10): each of its 33 paths needs its own test, which makes it hard to follow and to change safely 288:24 [error] complexity.function - AbstractSaveMetaCommand::persistField has a cyclomatic complexity of 78, untestable risk (above 10): each of its 78 paths needs its own test, which makes it hard to follow and to change safely 684:22 [warning] complexity.function - AbstractSaveMetaCommand::normalizeDisplayDate has a cyclomatic complexity of 16, moderate risk (above 10): each of its 16 paths needs its own test, which makes it hard to follow and to change safely 730:24 [error] complexity.function - AbstractSaveMetaCommand::convertMetaDataToDBFormat has a cyclomatic complexity of 44, high risk (above 10): each of its 44 paths needs its own test, which makes it hard to follow and to change safely 897:24 [warning] complexity.function - AbstractSaveMetaCommand::saveCCTData has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely Duplication: 85 (B), based on 636 code lines 226:1 [warning] duplication.repeated_block - lines 226 to 237 repeat lines 208 to 218 (67 tokens); repeated code has to be fixed in every copy 798:1 [warning] duplication.repeated_block - lines 798 to 813 repeat lines 746 to 761 (63 tokens); repeated code has to be fixed in every copy 831:1 [warning] duplication.repeated_block - lines 831 to 833 repeat lines 817 to 819 (52 tokens); repeated code has to be fixed in every copy NamingConvention: 99 (A), based on 116 names 153:10 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/AnalyzeImportFileCommand.php (other) CodeLength: not graded 44:21 [warning] length.function - AnalyzeImportFileCommand::execute has 55 lines in its body, above 50 110:22 [warning] length.function - AnalyzeImportFileCommand::format has 60 lines in its body, above 50 CyclomaticComplexity: 64 (D), based on 3 functions 110:22 [error] complexity.function - AnalyzeImportFileCommand::format has a cyclomatic complexity of 23, high risk (above 10): each of its 23 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 100 code lines 145:1 [warning] duplication.repeated_block - lines 145 to 153 repeat lines 122 to 130 (53 tokens); repeated code has to be fixed in every copy 154:1 [warning] duplication.repeated_block - lines 154 to 160 repeat lines 144 to 150 (54 tokens); repeated code has to be fixed in every copy NamingConvention: 84 (B), based on 19 names 53:10 [warning] naming.inconsistent_style - variable `path_parts` is snake_case, while most variables and parameters in this file are camelCase (5 of 14 names); mixed styles make code harder to scan 85:10 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds 92:46 [warning] naming.too_short - variable `d` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/AppendMetaFieldRowCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 51 code lines NamingConvention: 100 (A), based on 11 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/AssocTaxonomyToCustomPostTypeCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 21 code lines NamingConvention: 88 (B), based on 8 names 7:7 [warning] naming.too_long - class `AssocTaxonomyToCustomPostTypeCommand` is 36 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/CommandInterface.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 5 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/CopyMetaBlockCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 65 code lines NamingConvention: 93 (A), based on 15 names 37:40 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/CopyMetaBoxCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 69 code lines NamingConvention: 93 (A), based on 15 names 37:40 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/CopyMetaFieldCommand.php (other) CodeLength: not graded 92:21 [warning] length.function - CopyMetaFieldCommand::execute has 90 lines in its body, above 50 CyclomaticComplexity: 81 (B), based on 3 functions 92:21 [warning] complexity.function - CopyMetaFieldCommand::execute has a cyclomatic complexity of 17, moderate risk (above 10): each of its 17 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 123 code lines NamingConvention: 95 (A), based on 20 names 44:40 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/CopyOptionPageCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 52 code lines NamingConvention: 91 (A), based on 11 names 28:40 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/CopyTableColumnCommand.php (other) CodeLength: not graded 66:21 [warning] length.function - CopyTableColumnCommand::execute has 55 lines in its body, above 50 129:22 [warning] length.function - CopyTableColumnCommand::buildCopy has 66 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 121 code lines NamingConvention: 93 (A), based on 29 names 35:40 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds 131:65 [warning] naming.too_short - parameter `c` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/CreatePostAndLinkToARelationalFieldCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 51 code lines NamingConvention: 95 (A), based on 19 names 10:7 [warning] naming.too_long - class `CreatePostAndLinkToARelationalFieldCommand` is 42 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/DeleteBlockCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 13 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/DeleteCustomPostTypeCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 19 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/DeleteDatasetCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 13 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/DeleteFormCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 13 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/DeleteMetaFieldValueCommand.php (other) CodeLength: not graded 15:21 [warning] length.function - DeleteMetaFieldValueCommand::execute has 53 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 40 (F), based on 70 code lines 33:1 [warning] duplication.repeated_block - lines 33 to 39 repeat lines 27 to 33 (54 tokens); repeated code has to be fixed in every copy 39:1 [warning] duplication.repeated_block - lines 39 to 45 repeat lines 27 to 33 (54 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 13 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/DeleteMetaGroupCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 14 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/DeleteOptionPageCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 16 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/DeleteTableCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 13 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/DeleteTableGroupCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 13 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/DeleteTableTemplateCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 15 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/DeleteTaxonomyCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 15 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/DeleteWooCommerceProductDataCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 13 code lines NamingConvention: 75 (C), based on 4 names 7:7 [warning] naming.too_long - class `DeleteWooCommerceProductDataCommand` is 35 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/DuplicateBlockCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 18 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/DuplicateCustomPostTypeCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 24 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/DuplicateDatasetCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 18 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/DuplicateFormCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 18 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/DuplicateMetaGroupCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 21 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/DuplicateOptionPageCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 18 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/DuplicateTaxonomyCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 24 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/DuplicateWooCommerceProductDataCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 21 code lines NamingConvention: 86 (B), based on 7 names 7:7 [warning] naming.too_long - class `DuplicateWooCommerceProductDataCommand` is 38 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/ExecuteTableSchemaAction.php (other) CodeLength: not graded 160:22 [warning] length.function - ExecuteTableSchemaAction::syncTable has 61 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 6 functions Duplication: 100 (A), based on 120 code lines NamingConvention: 100 (A), based on 24 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/ExportDataCommand.php (other) CodeLength: not graded 45:21 [error] length.function - ExportDataCommand::execute has 101 lines in its body, above 100 CyclomaticComplexity: 33 (F), based on 2 functions 45:21 [error] complexity.function - ExportDataCommand::execute has a cyclomatic complexity of 33, high risk (above 10): each of its 33 paths needs its own test, which makes it hard to follow and to change safely Duplication: 0 (F), based on 92 code lines 87:1 [warning] duplication.repeated_block - lines 87 to 97 repeat lines 77 to 87 (72 tokens); repeated code has to be fixed in every copy 97:1 [warning] duplication.repeated_block - lines 97 to 112 repeat lines 77 to 92 (111 tokens); repeated code has to be fixed in every copy 112:1 [warning] duplication.repeated_block - lines 112 to 120 repeat lines 84 to 92 (52 tokens); repeated code has to be fixed in every copy 120:1 [warning] duplication.repeated_block - lines 120 to 128 repeat lines 112 to 120 (61 tokens); repeated code has to be fixed in every copy 128:1 [warning] duplication.repeated_block - lines 128 to 141 repeat lines 112 to 125 (95 tokens); repeated code has to be fixed in every copy NamingConvention: 95 (A), based on 19 names 35:56 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/GenerateApiKeyCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 23 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/HandleFormSubmissionCommand.php (other) CodeLength: not graded 191:22 [warning] length.function - HandleFormSubmissionCommand::sanitizeFieldValue has 72 lines in its body, above 50 308:22 [warning] length.function - HandleFormSubmissionCommand::handleRepeaterField has 97 lines in its body, above 50 414:22 [error] length.function - HandleFormSubmissionCommand::handleUploadFile has 102 lines in its body, above 100 672:22 [warning] length.function - HandleFormSubmissionCommand::checkCaptcha has 84 lines in its body, above 50 764:22 [warning] length.function - HandleFormSubmissionCommand::validate has 54 lines in its body, above 50 865:22 [warning] length.function - HandleFormSubmissionCommand::authorize has 56 lines in its body, above 50 1151:22 [error] length.function - HandleFormSubmissionCommand::handleFillMetaAction has 165 lines in its body, above 100 1381:22 [warning] length.function - HandleFormSubmissionCommand::handleFillTableAction has 80 lines in its body, above 50 1571:22 [warning] length.function - HandleFormSubmissionCommand::addPostData has 75 lines in its body, above 50 1820:22 [warning] length.function - HandleFormSubmissionCommand::saveMetaDatum has 76 lines in its body, above 50 1946:22 [warning] length.function - HandleFormSubmissionCommand::saveFormSubmissionCallback has 68 lines in its body, above 50 2024:22 [warning] length.function - HandleFormSubmissionCommand::sendMail has 95 lines in its body, above 50 42:7 [error] length.class - HandleFormSubmissionCommand has 2164 lines, above 1000 for a other 1:1 [error] length.file - the file has 2205 lines, above 1200 for a other CyclomaticComplexity: 62 (D), based on 46 functions 191:22 [warning] complexity.function - HandleFormSubmissionCommand::sanitizeFieldValue has a cyclomatic complexity of 18, moderate risk (above 10): each of its 18 paths needs its own test, which makes it hard to follow and to change safely 308:22 [error] complexity.function - HandleFormSubmissionCommand::handleRepeaterField has a cyclomatic complexity of 27, high risk (above 10): each of its 27 paths needs its own test, which makes it hard to follow and to change safely 414:22 [error] complexity.function - HandleFormSubmissionCommand::handleUploadFile has a cyclomatic complexity of 30, high risk (above 10): each of its 30 paths needs its own test, which makes it hard to follow and to change safely 672:22 [error] complexity.function - HandleFormSubmissionCommand::checkCaptcha has a cyclomatic complexity of 24, high risk (above 10): each of its 24 paths needs its own test, which makes it hard to follow and to change safely 764:22 [warning] complexity.function - HandleFormSubmissionCommand::validate has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely 865:22 [warning] complexity.function - HandleFormSubmissionCommand::authorize has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely 966:22 [warning] complexity.function - HandleFormSubmissionCommand::currentUserCanWriteField has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely 1005:22 [warning] complexity.function - HandleFormSubmissionCommand::tablesToWrite has a cyclomatic complexity of 18, moderate risk (above 10): each of its 18 paths needs its own test, which makes it hard to follow and to change safely 1151:22 [error] complexity.function - HandleFormSubmissionCommand::handleFillMetaAction has a cyclomatic complexity of 57, untestable risk (above 10): each of its 57 paths needs its own test, which makes it hard to follow and to change safely 1331:22 [warning] complexity.function - HandleFormSubmissionCommand::composeCompoundFieldValue has a cyclomatic complexity of 17, moderate risk (above 10): each of its 17 paths needs its own test, which makes it hard to follow and to change safely 1381:22 [error] complexity.function - HandleFormSubmissionCommand::handleFillTableAction has a cyclomatic complexity of 21, high risk (above 10): each of its 21 paths needs its own test, which makes it hard to follow and to change safely 1520:22 [warning] complexity.function - HandleFormSubmissionCommand::saveCCTColumns has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely 1571:22 [warning] complexity.function - HandleFormSubmissionCommand::addPostData has a cyclomatic complexity of 16, moderate risk (above 10): each of its 16 paths needs its own test, which makes it hard to follow and to change safely 1820:22 [warning] complexity.function - HandleFormSubmissionCommand::saveMetaDatum has a cyclomatic complexity of 20, moderate risk (above 10): each of its 20 paths needs its own test, which makes it hard to follow and to change safely 1946:22 [warning] complexity.function - HandleFormSubmissionCommand::saveFormSubmissionCallback has a cyclomatic complexity of 19, moderate risk (above 10): each of its 19 paths needs its own test, which makes it hard to follow and to change safely 2024:22 [error] complexity.function - HandleFormSubmissionCommand::sendMail has a cyclomatic complexity of 31, high risk (above 10): each of its 31 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 1441 code lines 1850:1 [warning] duplication.repeated_block - lines 1850 to 1860 repeat lines 1837 to 1847 (61 tokens); repeated code has to be fixed in every copy 1995:1 [warning] duplication.repeated_block - lines 1995 to 1996 repeat lines 1153 to 1154 (68 tokens); repeated code has to be fixed in every copy NamingConvention: 98 (A), based on 206 names 142:42 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds 317:45 [warning] naming.too_short - variable `f` is 1 character (at least 2); a one letter name hides its meaning 364:46 [warning] naming.too_short - variable `d` is 1 character (at least 2); a one letter name hides its meaning 733:22 [warning] naming.inconsistent_style - variable `post_fields` is snake_case, while most variables and parameters in this file are camelCase (79 of 151 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/HandleRelationsCommand.php (other) CodeLength: not graded 104:22 [warning] length.function - HandleRelationsCommand::handleInversedRelation has 67 lines in its body, above 50 367:22 [warning] length.function - HandleRelationsCommand::handleManyToManyInversedRelation has 62 lines in its body, above 50 CyclomaticComplexity: 77 (C), based on 10 functions 104:22 [warning] complexity.function - HandleRelationsCommand::handleInversedRelation has a cyclomatic complexity of 18, moderate risk (above 10): each of its 18 paths needs its own test, which makes it hard to follow and to change safely 257:22 [warning] complexity.function - HandleRelationsCommand::handleOneToManyInversedRelation has a cyclomatic complexity of 18, moderate risk (above 10): each of its 18 paths needs its own test, which makes it hard to follow and to change safely 367:22 [error] complexity.function - HandleRelationsCommand::handleManyToManyInversedRelation has a cyclomatic complexity of 23, high risk (above 10): each of its 23 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 322 code lines 308:1 [warning] duplication.repeated_block - lines 308 to 338 repeat lines 213 to 243 (93 tokens); repeated code has to be fixed in every copy 355:1 [warning] duplication.repeated_block - lines 355 to 399 repeat lines 245 to 289 (181 tokens); repeated code has to be fixed in every copy 403:1 [warning] duplication.repeated_block - lines 403 to 416 repeat lines 266 to 277 (73 tokens); repeated code has to be fixed in every copy NamingConvention: 93 (A), based on 56 names 257:22 [warning] naming.too_long - method `handleOneToManyInversedRelation` is 31 characters (limit 30); very long names make code hard to read 320:22 [warning] naming.too_long - method `handleManyToOneOneInversedRelation` is 34 characters (limit 30); very long names make code hard to read 367:22 [warning] naming.too_long - method `handleManyToManyInversedRelation` is 32 characters (limit 30); very long names make code hard to read 466:65 [warning] naming.too_short - parameter `v` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/ImportDatasetCommand.php (other) CodeLength: not graded 43:21 [warning] length.function - ImportDatasetCommand::execute has 97 lines in its body, above 50 CyclomaticComplexity: 33 (F), based on 2 functions 43:21 [error] complexity.function - ImportDatasetCommand::execute has a cyclomatic complexity of 21, high risk (above 10): each of its 21 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 84 code lines NamingConvention: 95 (A), based on 21 names 52:10 [warning] naming.inconsistent_style - variable `path_parts` is snake_case, while most variables and parameters in this file are camelCase (7 of 16 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/ImportSettingsCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 13 code lines NamingConvention: 75 (C), based on 4 names 19:40 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/InstallDepencencyCommand.php (other) CodeLength: not graded 21:21 [warning] length.function - InstallDepencencyCommand::execute has 63 lines in its body, above 50 CyclomaticComplexity: 71 (C), based on 2 functions 21:21 [warning] complexity.function - InstallDepencencyCommand::execute has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 56 code lines NamingConvention: 100 (A), based on 12 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/LogFormatInterface.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 5 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/PingACPTServerCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 21 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/RegeneratePostLabelsCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 22 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/RegenerateTaxonomyLabelsCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 22 code lines NamingConvention: 83 (B), based on 6 names 7:7 [warning] naming.too_long - class `RegenerateTaxonomyLabelsCommand` is 31 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/SaveBlockCommand.php (other) CodeLength: not graded 29:21 [warning] length.function - SaveBlockCommand::execute has 58 lines in its body, above 50 CyclomaticComplexity: 39 (F), based on 3 functions 29:21 [error] complexity.function - SaveBlockCommand::execute has a cyclomatic complexity of 22, high risk (above 10): each of its 22 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 65 code lines NamingConvention: 89 (B), based on 9 names 20:40 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/SaveCommentMetaCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 32 code lines NamingConvention: 100 (A), based on 12 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/SaveCustomPostTypeCommand.php (other) CodeLength: not graded 34:21 [warning] length.function - SaveCustomPostTypeCommand::execute has 78 lines in its body, above 50 CyclomaticComplexity: 74 (C), based on 4 functions 34:21 [warning] complexity.function - SaveCustomPostTypeCommand::execute has a cyclomatic complexity of 19, moderate risk (above 10): each of its 19 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 79 code lines NamingConvention: 93 (A), based on 15 names 25:40 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/SaveCustomPostTypeMetaCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 46 code lines NamingConvention: 88 (B), based on 16 names 23:21 [warning] naming.inconsistent_style - property `WooCommerceLoopIndex` is PascalCase, while most properties in this file are camelCase (2 of 3 names); mixed styles make code harder to scan 32:94 [warning] naming.inconsistent_style - parameter `WooCommerceLoopIndex` is PascalCase, while most variables and parameters in this file are camelCase (7 of 10 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/SaveDatasetCommand.php (other) CodeLength: not graded CyclomaticComplexity: 73 (C), based on 2 functions 39:21 [warning] complexity.function - SaveDatasetCommand::execute has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 47 code lines NamingConvention: 92 (A), based on 13 names 29:40 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/SaveFormCommand.php (other) CodeLength: not graded 42:21 [error] length.function - SaveFormCommand::execute has 175 lines in its body, above 100 CyclomaticComplexity: 34 (F), based on 3 functions 42:21 [error] complexity.function - SaveFormCommand::execute has a cyclomatic complexity of 45, high risk (above 10): each of its 45 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 135 code lines NamingConvention: 97 (A), based on 34 names 32:40 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/SaveFormFieldsCommand.php (other) CodeLength: not graded 139:22 [warning] length.function - SaveFormFieldsCommand::hydrateFormField has 66 lines in its body, above 50 CyclomaticComplexity: 80 (B), based on 5 functions 95:22 [warning] complexity.function - SaveFormFieldsCommand::normaliseFieldKeys has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely 139:22 [warning] complexity.function - SaveFormFieldsCommand::hydrateFormField has a cyclomatic complexity of 14, moderate risk (above 10): each of its 14 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 128 code lines NamingConvention: 90 (A), based on 31 names 30:45 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds 52:56 [warning] naming.too_short - parameter `f` is 1 character (at least 2); a one letter name hides its meaning 187:58 [warning] naming.too_short - parameter `c` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/SaveMetaFieldValueCommand.php (other) CodeLength: not graded 73:21 [error] length.function - SaveMetaFieldValueCommand::execute has 977 lines in its body, above 100 23:7 [error] length.class - SaveMetaFieldValueCommand has 1029 lines, above 1000 for a other 1:1 [warning] length.file - the file has 1051 lines, above 600 for a other CyclomaticComplexity: 2 (F), based on 2 functions 35:28 [warning] complexity.function - SaveMetaFieldValueCommand::objectsToIds has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely 73:21 [error] complexity.function - SaveMetaFieldValueCommand::execute has a cyclomatic complexity of 210, untestable risk (above 10): each of its 210 paths needs its own test, which makes it hard to follow and to change safely Duplication: 0 (F), based on 742 code lines 345:1 [warning] duplication.repeated_block - lines 345 to 354 repeat lines 171 to 180 (59 tokens); repeated code has to be fixed in every copy 418:1 [warning] duplication.repeated_block - lines 418 to 425 repeat lines 171 to 178 (56 tokens); repeated code has to be fixed in every copy 427:1 [warning] duplication.repeated_block - lines 427 to 440 repeat lines 280 to 292 (62 tokens); repeated code has to be fixed in every copy 441:1 [warning] duplication.repeated_block - lines 441 to 470 repeat lines 163 to 192 (147 tokens); repeated code has to be fixed in every copy 470:1 [warning] duplication.repeated_block - lines 470 to 486 repeat lines 192 to 208 (71 tokens); repeated code has to be fixed in every copy 490:1 [warning] duplication.repeated_block - lines 490 to 501 repeat lines 211 to 222 (69 tokens); repeated code has to be fixed in every copy 518:1 [warning] duplication.repeated_block - lines 518 to 533 repeat lines 276 to 290 (66 tokens); repeated code has to be fixed in every copy 534:1 [warning] duplication.repeated_block - lines 534 to 548 repeat lines 276 to 290 (68 tokens); repeated code has to be fixed in every copy 705:1 [warning] duplication.repeated_block - lines 705 to 719 repeat lines 649 to 663 (50 tokens); repeated code has to be fixed in every copy 805:1 [warning] duplication.repeated_block - lines 805 to 810 repeat lines 280 to 285 (53 tokens); repeated code has to be fixed in every copy 828:1 [warning] duplication.repeated_block - lines 828 to 843 repeat lines 422 to 438 (70 tokens); repeated code has to be fixed in every copy 865:1 [warning] duplication.repeated_block - lines 865 to 894 repeat lines 163 to 192 (147 tokens); repeated code has to be fixed in every copy 894:1 [warning] duplication.repeated_block - lines 894 to 910 repeat lines 192 to 208 (71 tokens); repeated code has to be fixed in every copy 914:1 [warning] duplication.repeated_block - lines 914 to 925 repeat lines 211 to 222 (69 tokens); repeated code has to be fixed in every copy 939:1 [warning] duplication.repeated_block - lines 939 to 951 repeat lines 196 to 208 (50 tokens); repeated code has to be fixed in every copy 957:1 [warning] duplication.repeated_block - lines 957 to 964 repeat lines 354 to 361 (61 tokens); repeated code has to be fixed in every copy 983:1 [warning] duplication.repeated_block - lines 983 to 998 repeat lines 298 to 313 (66 tokens); repeated code has to be fixed in every copy 1009:1 [warning] duplication.repeated_block - lines 1009 to 1018 repeat lines 360 to 369 (51 tokens); repeated code has to be fixed in every copy 1027:1 [warning] duplication.repeated_block - lines 1027 to 1037 repeat lines 276 to 287 (61 tokens); repeated code has to be fixed in every copy 1041:1 [warning] duplication.repeated_block - lines 1041 to 1046 repeat lines 280 to 285 (53 tokens); repeated code has to be fixed in every copy NamingConvention: 86 (B), based on 74 names 172:18 [warning] naming.inconsistent_style - variable `saved_file_id` is snake_case, while most variables and parameters in this file are camelCase (29 of 71 names); mixed styles make code harder to scan 191:18 [warning] naming.inconsistent_style - variable `mandatory_keys` is snake_case, while most variables and parameters in this file are camelCase (29 of 71 names); mixed styles make code harder to scan 211:18 [warning] naming.inconsistent_style - variable `saved_field_unit` is snake_case, while most variables and parameters in this file are camelCase (29 of 71 names); mixed styles make code harder to scan 345:18 [warning] naming.inconsistent_style - variable `saved_field_label` is snake_case, while most variables and parameters in this file are camelCase (29 of 71 names); mixed styles make code harder to scan 558:18 [warning] naming.generic - variable `val` is a generic name; it says nothing about what it holds 592:22 [warning] naming.too_short - variable `f` is 1 character (at least 2); a one letter name hides its meaning 693:22 [warning] naming.inconsistent_style - variable `QRCodeValueObject` is PascalCase, while most variables and parameters in this file are camelCase (29 of 71 names); mixed styles make code harder to scan 754:47 [warning] naming.inconsistent_style - variable `block_index` is snake_case, while most variables and parameters in this file are camelCase (29 of 71 names); mixed styles make code harder to scan 756:45 [warning] naming.inconsistent_style - variable `block_name` is snake_case, while most variables and parameters in this file are camelCase (29 of 71 names); mixed styles make code harder to scan 756:60 [warning] naming.inconsistent_style - variable `block_values` is snake_case, while most variables and parameters in this file are camelCase (29 of 71 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/SaveMetaGroupCommand.php (other) CodeLength: not graded 40:21 [error] length.function - SaveMetaGroupCommand::execute has 344 lines in its body, above 100 395:22 [warning] length.function - SaveMetaGroupCommand::collectIncomingFieldIds has 74 lines in its body, above 50 19:7 [warning] length.class - SaveMetaGroupCommand has 595 lines, above 500 for a other 1:1 [warning] length.file - the file has 613 lines, above 600 for a other CyclomaticComplexity: 25 (F), based on 8 functions 40:21 [error] complexity.function - SaveMetaGroupCommand::execute has a cyclomatic complexity of 89, untestable risk (above 10): each of its 89 paths needs its own test, which makes it hard to follow and to change safely 395:22 [error] complexity.function - SaveMetaGroupCommand::collectIncomingFieldIds has a cyclomatic complexity of 25, high risk (above 10): each of its 25 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 404 code lines 291:1 [warning] duplication.repeated_block - lines 291 to 309 repeat lines 240 to 260 (114 tokens); repeated code has to be fixed in every copy 443:1 [warning] duplication.repeated_block - lines 443 to 448 repeat lines 432 to 437 (67 tokens); repeated code has to be fixed in every copy 457:1 [warning] duplication.repeated_block - lines 457 to 465 repeat lines 432 to 440 (82 tokens); repeated code has to be fixed in every copy 538:1 [warning] duplication.repeated_block - lines 538 to 546 repeat lines 506 to 514 (52 tokens); repeated code has to be fixed in every copy NamingConvention: 97 (A), based on 76 names 31:40 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds 97:29 [warning] naming.too_short - variable `b` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/SaveOptionPageCommand.php (other) CodeLength: not graded 32:21 [warning] length.function - SaveOptionPageCommand::execute has 83 lines in its body, above 50 CyclomaticComplexity: 73 (C), based on 3 functions 32:21 [warning] complexity.function - SaveOptionPageCommand::execute has a cyclomatic complexity of 18, moderate risk (above 10): each of its 18 paths needs its own test, which makes it hard to follow and to change safely Duplication: 85 (B), based on 83 code lines 67:1 [warning] duplication.repeated_block - lines 67 to 72 repeat lines 45 to 50 (51 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 18 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/SaveOptionPageMetaCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 47 code lines NamingConvention: 100 (A), based on 15 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/SaveOptionPagesCommand.php (other) CodeLength: not graded 32:21 [warning] length.function - SaveOptionPagesCommand::execute has 65 lines in its body, above 50 CyclomaticComplexity: 71 (C), based on 2 functions 32:21 [warning] complexity.function - SaveOptionPagesCommand::execute has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 63 code lines 62:1 [warning] duplication.repeated_block - lines 62 to 67 repeat lines 41 to 46 (51 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 16 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/SavePermissionCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 48 code lines NamingConvention: 89 (B), based on 9 names 20:40 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/SaveSettingsCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 46 code lines NamingConvention: 100 (A), based on 12 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/SaveTableCommand.php (other) CodeLength: not graded 45:21 [error] length.function - SaveTableCommand::execute has 343 lines in its body, above 100 398:22 [warning] length.function - SaveTableCommand::validatePrimaryKeyAndAutoIncrement has 74 lines in its body, above 50 CyclomaticComplexity: 14 (F), based on 4 functions 45:21 [error] complexity.function - SaveTableCommand::execute has a cyclomatic complexity of 97, untestable risk (above 10): each of its 97 paths needs its own test, which makes it hard to follow and to change safely 398:22 [warning] complexity.function - SaveTableCommand::validatePrimaryKeyAndAutoIncrement has a cyclomatic complexity of 15, moderate risk (above 10): each of its 15 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 312 code lines NamingConvention: 92 (A), based on 51 names 36:40 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds 92:14 [warning] naming.generic - variable `obj` is a generic name; it says nothing about what it holds 131:10 [warning] naming.too_short - variable `c` is 1 character (at least 2); a one letter name hides its meaning 398:22 [warning] naming.too_long - method `validatePrimaryKeyAndAutoIncrement` is 34 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/SaveTableGroupCommand.php (other) CodeLength: not graded 29:21 [warning] length.function - SaveTableGroupCommand::execute has 70 lines in its body, above 50 CyclomaticComplexity: 71 (C), based on 2 functions 29:21 [warning] complexity.function - SaveTableGroupCommand::execute has a cyclomatic complexity of 16, moderate risk (above 10): each of its 16 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 57 code lines NamingConvention: 90 (A), based on 10 names 21:40 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/SaveTableTemplateCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 16 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/SaveTaxonomyCommand.php (other) CodeLength: not graded 54:21 [error] length.function - SaveTaxonomyCommand::execute has 174 lines in its body, above 100 CyclomaticComplexity: 37 (F), based on 4 functions 54:21 [error] complexity.function - SaveTaxonomyCommand::execute has a cyclomatic complexity of 30, high risk (above 10): each of its 30 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 163 code lines NamingConvention: 85 (B), based on 20 names 26:40 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds 92:50 [warning] naming.inconsistent_style - variable `post_type` is snake_case, while most variables and parameters in this file are camelCase (5 of 15 names); mixed styles make code harder to scan 95:22 [warning] naming.inconsistent_style - variable `post_id` is snake_case, while most variables and parameters in this file are camelCase (5 of 15 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/SaveTaxonomyMetaCommand.php (other) CodeLength: not graded 34:21 [warning] length.function - SaveTaxonomyMetaCommand::execute has 57 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 56 code lines NamingConvention: 100 (A), based on 15 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/SaveUserMetaCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 42 code lines NamingConvention: 92 (A), based on 13 names 41:10 [warning] naming.inconsistent_style - variable `user_id` is snake_case, while most variables and parameters in this file are camelCase (7 of 9 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/SaveWPMLConfigCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 14 code lines NamingConvention: 75 (C), based on 4 names 20:40 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/SaveWooCommerceProductAttributeMetaCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 39 code lines NamingConvention: 92 (A), based on 12 names 11:7 [warning] naming.too_long - class `SaveWooCommerceProductAttributeMetaCommand` is 42 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/SaveWooCommerceProductDataCommand.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 36 code lines NamingConvention: 82 (B), based on 11 names 9:7 [warning] naming.too_long - class `SaveWooCommerceProductDataCommand` is 33 characters (limit 30); very long names make code hard to read 21:40 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/CQRS/Command/SaveWooCommerceProductDataFieldsCommand.php (other) CodeLength: not graded 30:21 [warning] length.function - SaveWooCommerceProductDataFieldsCommand::execute has 66 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 59 code lines NamingConvention: 86 (B), based on 14 names 9:7 [warning] naming.too_long - class `SaveWooCommerceProductDataFieldsCommand` is 39 characters (limit 30); very long names make code hard to read 21:40 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/CQRS/Query/CacheStatsQuery.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 32 code lines NamingConvention: 89 (B), based on 9 names 39:10 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/CQRS/Query/FetchAllFindBelongsQuery.php (other) CodeLength: not graded 403:22 [warning] length.function - FetchAllFindBelongsQuery::taxonomies has 78 lines in its body, above 50 486:22 [warning] length.function - FetchAllFindBelongsQuery::postTypes has 100 lines in its body, above 50 21:7 [warning] length.class - FetchAllFindBelongsQuery has 567 lines, above 500 for a other CyclomaticComplexity: 100 (A), based on 20 functions Duplication: 0 (F), based on 400 code lines 111:1 [warning] duplication.repeated_block - lines 111 to 129 repeat lines 93 to 111 (56 tokens); repeated code has to be fixed in every copy 173:1 [warning] duplication.repeated_block - lines 173 to 194 repeat lines 132 to 152 (79 tokens); repeated code has to be fixed in every copy 296:1 [warning] duplication.repeated_block - lines 296 to 317 repeat lines 201 to 222 (68 tokens); repeated code has to be fixed in every copy 317:1 [warning] duplication.repeated_block - lines 317 to 338 repeat lines 295 to 316 (62 tokens); repeated code has to be fixed in every copy 339:1 [warning] duplication.repeated_block - lines 339 to 380 repeat lines 295 to 338 (133 tokens); repeated code has to be fixed in every copy 481:1 [warning] duplication.repeated_block - lines 481 to 495 repeat lines 398 to 412 (54 tokens); repeated code has to be fixed in every copy 573:1 [warning] duplication.repeated_block - lines 573 to 586 repeat lines 468 to 481 (64 tokens); repeated code has to be fixed in every copy NamingConvention: 95 (A), based on 80 names 74:10 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds 134:48 [warning] naming.too_short - parameter `a` is 1 character (at least 2); a one letter name hides its meaning 134:61 [warning] naming.too_short - parameter `b` is 1 character (at least 2); a one letter name hides its meaning 542:50 [warning] naming.too_short - variable `p` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Core/CQRS/Query/FetchChangelogQuery.php (other) CodeLength: not graded 28:21 [warning] length.function - FetchChangelogQuery::execute has 100 lines in its body, above 50 CyclomaticComplexity: 77 (C), based on 4 functions 28:21 [warning] complexity.function - FetchChangelogQuery::execute has a cyclomatic complexity of 15, moderate risk (above 10): each of its 15 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 108 code lines NamingConvention: 90 (A), based on 29 names 36:10 [warning] naming.inconsistent_style - variable `Parsedown` is PascalCase, while most variables and parameters in this file are camelCase (10 of 24 names); mixed styles make code harder to scan 58:14 [warning] naming.too_short - variable `v` is 1 character (at least 2); a one letter name hides its meaning 151:22 [warning] naming.too_long - method `removeAllTheContentUntilTheNextH2` is 33 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/CQRS/Query/FetchElementsQuery.php (other) CodeLength: not graded 36:21 [warning] length.function - FetchElementsQuery::execute has 54 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 58 code lines NamingConvention: 100 (A), based on 14 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Query/FetchFindFromBelongsToQuery.php (other) CodeLength: not graded 38:21 [error] length.function - FetchFindFromBelongsToQuery::execute has 131 lines in its body, above 100 CyclomaticComplexity: 71 (C), based on 2 functions 38:21 [warning] complexity.function - FetchFindFromBelongsToQuery::execute has a cyclomatic complexity of 18, moderate risk (above 10): each of its 18 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 105 code lines 113:1 [warning] duplication.repeated_block - lines 113 to 129 repeat lines 95 to 111 (106 tokens); repeated code has to be fixed in every copy 142:1 [warning] duplication.repeated_block - lines 142 to 147 repeat lines 104 to 109 (50 tokens); repeated code has to be fixed in every copy NamingConvention: 95 (A), based on 19 names 42:10 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/CQRS/Query/FetchFindQuery.php (other) CodeLength: not graded CyclomaticComplexity: 72 (C), based on 2 functions 33:21 [warning] complexity.function - FetchFindQuery::execute has a cyclomatic complexity of 14, moderate risk (above 10): each of its 14 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 47 code lines NamingConvention: 100 (A), based on 10 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Query/FetchFormFieldsQuery.php (other) CodeLength: not graded 88:22 [warning] length.function - FetchFormFieldsQuery::layoutFields has 66 lines in its body, above 50 159:22 [warning] length.function - FetchFormFieldsQuery::typographyFields has 80 lines in its body, above 50 244:22 [error] length.function - FetchFormFieldsQuery::standardFields has 485 lines in its body, above 100 735:22 [error] length.function - FetchFormFieldsQuery::WordPressPostFields has 203 lines in its body, above 100 953:22 [error] length.function - FetchFormFieldsQuery::WordPressUserFields has 131 lines in its body, above 100 1099:22 [warning] length.function - FetchFormFieldsQuery::WordPressTaxonomyFields has 70 lines in its body, above 50 1205:22 [error] length.function - FetchFormFieldsQuery::ACPTFields has 240 lines in its body, above 100 1454:22 [warning] length.function - FetchFormFieldsQuery::buildCCTMetaField has 57 lines in its body, above 50 1519:22 [warning] length.function - FetchFormFieldsQuery::CCTTableFields has 76 lines in its body, above 50 1607:22 [error] length.function - FetchFormFieldsQuery::enrichColumnExtras has 138 lines in its body, above 100 21:7 [error] length.class - FetchFormFieldsQuery has 1768 lines, above 1000 for a other 1:1 [error] length.file - the file has 1788 lines, above 1200 for a other CyclomaticComplexity: 78 (C), based on 19 functions 1205:22 [error] complexity.function - FetchFormFieldsQuery::ACPTFields has a cyclomatic complexity of 90, untestable risk (above 10): each of its 90 paths needs its own test, which makes it hard to follow and to change safely 1519:22 [warning] complexity.function - FetchFormFieldsQuery::CCTTableFields has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely 1607:22 [error] complexity.function - FetchFormFieldsQuery::enrichColumnExtras has a cyclomatic complexity of 42, high risk (above 10): each of its 42 paths needs its own test, which makes it hard to follow and to change safely Duplication: 0 (F), based on 1534 code lines 113:1 [warning] duplication.repeated_block - lines 113 to 124 repeat lines 95 to 106 (64 tokens); repeated code has to be fixed in every copy 135:1 [warning] duplication.repeated_block - lines 135 to 146 repeat lines 95 to 106 (64 tokens); repeated code has to be fixed in every copy 185:1 [warning] duplication.repeated_block - lines 185 to 195 repeat lines 166 to 176 (62 tokens); repeated code has to be fixed in every copy 204:1 [warning] duplication.repeated_block - lines 204 to 214 repeat lines 166 to 176 (62 tokens); repeated code has to be fixed in every copy 224:1 [warning] duplication.repeated_block - lines 224 to 232 repeat lines 95 to 103 (50 tokens); repeated code has to be fixed in every copy 271:1 [warning] duplication.repeated_block - lines 271 to 288 repeat lines 253 to 270 (97 tokens); repeated code has to be fixed in every copy 292:1 [warning] duplication.repeated_block - lines 292 to 306 repeat lines 189 to 203 (78 tokens); repeated code has to be fixed in every copy 307:1 [warning] duplication.repeated_block - lines 307 to 316 repeat lines 95 to 104 (53 tokens); repeated code has to be fixed in every copy 354:1 [warning] duplication.repeated_block - lines 354 to 366 repeat lines 334 to 346 (78 tokens); repeated code has to be fixed in every copy 374:1 [warning] duplication.repeated_block - lines 374 to 386 repeat lines 334 to 346 (77 tokens); repeated code has to be fixed in every copy 397:1 [warning] duplication.repeated_block - lines 397 to 409 repeat lines 334 to 346 (78 tokens); repeated code has to be fixed in every copy 417:1 [warning] duplication.repeated_block - lines 417 to 426 repeat lines 334 to 343 (54 tokens); repeated code has to be fixed in every copy 436:1 [warning] duplication.repeated_block - lines 436 to 444 repeat lines 334 to 342 (53 tokens); repeated code has to be fixed in every copy 451:1 [warning] duplication.repeated_block - lines 451 to 463 repeat lines 334 to 346 (78 tokens); repeated code has to be fixed in every copy 471:1 [warning] duplication.repeated_block - lines 471 to 483 repeat lines 334 to 346 (77 tokens); repeated code has to be fixed in every copy 507:1 [warning] duplication.repeated_block - lines 507 to 517 repeat lines 386 to 396 (53 tokens); repeated code has to be fixed in every copy 518:1 [warning] duplication.repeated_block - lines 518 to 529 repeat lines 495 to 506 (71 tokens); repeated code has to be fixed in every copy 548:1 [warning] duplication.repeated_block - lines 548 to 559 repeat lines 495 to 506 (71 tokens); repeated code has to be fixed in every copy 559:1 [warning] duplication.repeated_block - lines 559 to 577 repeat lines 529 to 547 (85 tokens); repeated code has to be fixed in every copy 578:1 [warning] duplication.repeated_block - lines 578 to 589 repeat lines 495 to 506 (71 tokens); repeated code has to be fixed in every copy 601:1 [warning] duplication.repeated_block - lines 601 to 611 repeat lines 537 to 547 (52 tokens); repeated code has to be fixed in every copy 612:1 [warning] duplication.repeated_block - lines 612 to 624 repeat lines 334 to 346 (78 tokens); repeated code has to be fixed in every copy 634:1 [warning] duplication.repeated_block - lines 634 to 645 repeat lines 495 to 506 (71 tokens); repeated code has to be fixed in every copy 653:1 [warning] duplication.repeated_block - lines 653 to 662 repeat lines 95 to 104 (53 tokens); repeated code has to be fixed in every copy 679:1 [warning] duplication.repeated_block - lines 679 to 691 repeat lines 660 to 672 (64 tokens); repeated code has to be fixed in every copy 692:1 [warning] duplication.repeated_block - lines 692 to 710 repeat lines 673 to 691 (103 tokens); repeated code has to be fixed in every copy 710:1 [warning] duplication.repeated_block - lines 710 to 729 repeat lines 307 to 326 (106 tokens); repeated code has to be fixed in every copy 797:1 [warning] duplication.repeated_block - lines 797 to 809 repeat lines 773 to 785 (77 tokens); repeated code has to be fixed in every copy 824:1 [warning] duplication.repeated_block - lines 824 to 836 repeat lines 773 to 785 (77 tokens); repeated code has to be fixed in every copy 876:1 [warning] duplication.repeated_block - lines 876 to 888 repeat lines 850 to 862 (77 tokens); repeated code has to be fixed in every copy 899:1 [warning] duplication.repeated_block - lines 899 to 913 repeat lines 773 to 787 (80 tokens); repeated code has to be fixed in every copy 920:1 [warning] duplication.repeated_block - lines 920 to 930 repeat lines 496 to 506 (62 tokens); repeated code has to be fixed in every copy 965:1 [warning] duplication.repeated_block - lines 965 to 979 repeat lines 773 to 787 (80 tokens); repeated code has to be fixed in every copy 985:1 [warning] duplication.repeated_block - lines 985 to 997 repeat lines 773 to 785 (77 tokens); repeated code has to be fixed in every copy 1007:1 [warning] duplication.repeated_block - lines 1007 to 1021 repeat lines 773 to 787 (80 tokens); repeated code has to be fixed in every copy 1027:1 [warning] duplication.repeated_block - lines 1027 to 1041 repeat lines 773 to 787 (80 tokens); repeated code has to be fixed in every copy 1047:1 [warning] duplication.repeated_block - lines 1047 to 1057 repeat lines 773 to 783 (60 tokens); repeated code has to be fixed in every copy 1066:1 [warning] duplication.repeated_block - lines 1066 to 1078 repeat lines 773 to 785 (77 tokens); repeated code has to be fixed in every copy 1111:1 [warning] duplication.repeated_block - lines 1111 to 1125 repeat lines 773 to 787 (80 tokens); repeated code has to be fixed in every copy 1131:1 [warning] duplication.repeated_block - lines 1131 to 1143 repeat lines 773 to 785 (77 tokens); repeated code has to be fixed in every copy 1153:1 [warning] duplication.repeated_block - lines 1153 to 1167 repeat lines 773 to 787 (80 tokens); repeated code has to be fixed in every copy 1293:1 [warning] duplication.repeated_block - lines 1293 to 1300 repeat lines 1286 to 1293 (91 tokens); repeated code has to be fixed in every copy 1300:1 [warning] duplication.repeated_block - lines 1300 to 1307 repeat lines 1286 to 1293 (86 tokens); repeated code has to be fixed in every copy 1313:1 [warning] duplication.repeated_block - lines 1313 to 1319 repeat lines 1307 to 1313 (68 tokens); repeated code has to be fixed in every copy 1322:1 [warning] duplication.repeated_block - lines 1322 to 1327 repeat lines 1307 to 1312 (54 tokens); repeated code has to be fixed in every copy 1338:1 [warning] duplication.repeated_block - lines 1338 to 1343 repeat lines 1307 to 1312 (54 tokens); repeated code has to be fixed in every copy 1346:1 [warning] duplication.repeated_block - lines 1346 to 1353 repeat lines 1336 to 1343 (100 tokens); repeated code has to be fixed in every copy 1391:1 [warning] duplication.repeated_block - lines 1391 to 1403 repeat lines 1366 to 1378 (67 tokens); repeated code has to be fixed in every copy 1554:1 [warning] duplication.repeated_block - lines 1554 to 1589 repeat lines 1470 to 1505 (212 tokens); repeated code has to be fixed in every copy 1643:1 [warning] duplication.repeated_block - lines 1643 to 1650 repeat lines 1636 to 1643 (71 tokens); repeated code has to be fixed in every copy 1650:1 [warning] duplication.repeated_block - lines 1650 to 1657 repeat lines 1636 to 1643 (66 tokens); repeated code has to be fixed in every copy NamingConvention: 91 (A), based on 55 names 735:22 [warning] naming.inconsistent_style - method `WordPressPostFields` is PascalCase, while most methods in this file are camelCase (12 of 18 names); mixed styles make code harder to scan 953:22 [warning] naming.inconsistent_style - method `WordPressUserFields` is PascalCase, while most methods in this file are camelCase (12 of 18 names); mixed styles make code harder to scan 1099:22 [warning] naming.inconsistent_style - method `WordPressTaxonomyFields` is PascalCase, while most methods in this file are camelCase (12 of 18 names); mixed styles make code harder to scan 1205:22 [warning] naming.inconsistent_style - method `ACPTFields` is PascalCase, while most methods in this file are camelCase (12 of 18 names); mixed styles make code harder to scan 1519:22 [warning] naming.inconsistent_style - method `CCTTableFields` is PascalCase, while most methods in this file are camelCase (12 of 18 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/CQRS/Query/FetchFormPreviewElementQuery.php (other) CodeLength: not graded 35:21 [error] length.function - FetchFormPreviewElementQuery::execute has 147 lines in its body, above 100 CyclomaticComplexity: 32 (F), based on 2 functions 35:21 [error] complexity.function - FetchFormPreviewElementQuery::execute has a cyclomatic complexity of 33, high risk (above 10): each of its 33 paths needs its own test, which makes it hard to follow and to change safely Duplication: 85 (B), based on 105 code lines 159:1 [warning] duplication.repeated_block - lines 159 to 171 repeat lines 147 to 159 (66 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 9 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Query/FetchLanguagesQuery.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 25 code lines NamingConvention: 75 (C), based on 8 names 29:49 [warning] naming.too_short - parameter `a` is 1 character (at least 2); a one letter name hides its meaning 29:53 [warning] naming.too_short - parameter `b` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Core/CQRS/Query/FetchLicenseQuery.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 35 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Query/FetchMetaFieldValueQuery.php (other) CodeLength: not graded 30:21 [error] length.function - FetchMetaFieldValueQuery::execute has 699 lines in its body, above 100 846:22 [warning] length.function - FetchMetaFieldValueQuery::getRepeaterValues has 58 lines in its body, above 50 910:22 [error] length.function - FetchMetaFieldValueQuery::getNestedRepeaterFieldValue has 477 lines in its body, above 100 1528:22 [error] length.function - FetchMetaFieldValueQuery::executeCCT has 312 lines in its body, above 100 24:7 [error] length.class - FetchMetaFieldValueQuery has 1818 lines, above 1000 for a other 1:1 [error] length.file - the file has 1841 lines, above 1200 for a other CyclomaticComplexity: 12 (F), based on 14 functions 30:21 [error] complexity.function - FetchMetaFieldValueQuery::execute has a cyclomatic complexity of 141, untestable risk (above 10): each of its 141 paths needs its own test, which makes it hard to follow and to change safely 846:22 [warning] complexity.function - FetchMetaFieldValueQuery::getRepeaterValues has a cyclomatic complexity of 14, moderate risk (above 10): each of its 14 paths needs its own test, which makes it hard to follow and to change safely 910:22 [error] complexity.function - FetchMetaFieldValueQuery::getNestedRepeaterFieldValue has a cyclomatic complexity of 120, untestable risk (above 10): each of its 120 paths needs its own test, which makes it hard to follow and to change safely 1528:22 [error] complexity.function - FetchMetaFieldValueQuery::executeCCT has a cyclomatic complexity of 121, untestable risk (above 10): each of its 121 paths needs its own test, which makes it hard to follow and to change safely Duplication: 0 (F), based on 1277 code lines 195:1 [warning] duplication.repeated_block - lines 195 to 211 repeat lines 166 to 182 (92 tokens); repeated code has to be fixed in every copy 222:1 [warning] duplication.repeated_block - lines 222 to 237 repeat lines 194 to 207 (97 tokens); repeated code has to be fixed in every copy 239:1 [warning] duplication.repeated_block - lines 239 to 251 repeat lines 175 to 187 (53 tokens); repeated code has to be fixed in every copy 281:1 [warning] duplication.repeated_block - lines 281 to 287 repeat lines 273 to 279 (50 tokens); repeated code has to be fixed in every copy 446:1 [warning] duplication.repeated_block - lines 446 to 456 repeat lines 427 to 437 (57 tokens); repeated code has to be fixed in every copy 456:1 [warning] duplication.repeated_block - lines 456 to 475 repeat lines 437 to 456 (76 tokens); repeated code has to be fixed in every copy 475:1 [warning] duplication.repeated_block - lines 475 to 494 repeat lines 437 to 456 (76 tokens); repeated code has to be fixed in every copy 568:1 [warning] duplication.repeated_block - lines 568 to 587 repeat lines 530 to 549 (78 tokens); repeated code has to be fixed in every copy 619:1 [warning] duplication.repeated_block - lines 619 to 633 repeat lines 508 to 522 (63 tokens); repeated code has to be fixed in every copy 672:1 [warning] duplication.repeated_block - lines 672 to 686 repeat lines 508 to 522 (63 tokens); repeated code has to be fixed in every copy 985:1 [warning] duplication.repeated_block - lines 985 to 995 repeat lines 323 to 332 (65 tokens); repeated code has to be fixed in every copy 1028:1 [warning] duplication.repeated_block - lines 1028 to 1038 repeat lines 358 to 368 (66 tokens); repeated code has to be fixed in every copy 1056:1 [warning] duplication.repeated_block - lines 1056 to 1072 repeat lines 252 to 268 (63 tokens); repeated code has to be fixed in every copy 1072:1 [warning] duplication.repeated_block - lines 1072 to 1117 repeat lines 268 to 315 (269 tokens); repeated code has to be fixed in every copy 1121:1 [warning] duplication.repeated_block - lines 1121 to 1149 repeat lines 195 to 223 (172 tokens); repeated code has to be fixed in every copy 1149:1 [warning] duplication.repeated_block - lines 1149 to 1163 repeat lines 195 to 207 (90 tokens); repeated code has to be fixed in every copy 1163:1 [warning] duplication.repeated_block - lines 1163 to 1181 repeat lines 237 to 255 (102 tokens); repeated code has to be fixed in every copy 1184:1 [warning] duplication.repeated_block - lines 1184 to 1192 repeat lines 167 to 175 (51 tokens); repeated code has to be fixed in every copy 1192:1 [warning] duplication.repeated_block - lines 1192 to 1208 repeat lines 175 to 191 (74 tokens); repeated code has to be fixed in every copy 1290:1 [warning] duplication.repeated_block - lines 1290 to 1298 repeat lines 421 to 430 (67 tokens); repeated code has to be fixed in every copy 1306:1 [warning] duplication.repeated_block - lines 1306 to 1311 repeat lines 1296 to 1301 (52 tokens); repeated code has to be fixed in every copy 1311:1 [warning] duplication.repeated_block - lines 1311 to 1321 repeat lines 1301 to 1311 (64 tokens); repeated code has to be fixed in every copy 1321:1 [warning] duplication.repeated_block - lines 1321 to 1331 repeat lines 1301 to 1311 (64 tokens); repeated code has to be fixed in every copy 1356:1 [warning] duplication.repeated_block - lines 1356 to 1364 repeat lines 1341 to 1349 (57 tokens); repeated code has to be fixed in every copy 1371:1 [warning] duplication.repeated_block - lines 1371 to 1379 repeat lines 1341 to 1349 (57 tokens); repeated code has to be fixed in every copy 1544:1 [warning] duplication.repeated_block - lines 1544 to 1563 repeat lines 48 to 70 (91 tokens); repeated code has to be fixed in every copy 1584:1 [warning] duplication.repeated_block - lines 1584 to 1590 repeat lines 1572 to 1578 (76 tokens); repeated code has to be fixed in every copy 1603:1 [warning] duplication.repeated_block - lines 1603 to 1609 repeat lines 1597 to 1603 (52 tokens); repeated code has to be fixed in every copy 1681:1 [warning] duplication.repeated_block - lines 1681 to 1688 repeat lines 1656 to 1663 (55 tokens); repeated code has to be fixed in every copy 1719:1 [warning] duplication.repeated_block - lines 1719 to 1724 repeat lines 1712 to 1717 (61 tokens); repeated code has to be fixed in every copy 1773:1 [warning] duplication.repeated_block - lines 1773 to 1783 repeat lines 1346 to 1360 (75 tokens); repeated code has to be fixed in every copy 1784:1 [warning] duplication.repeated_block - lines 1784 to 1793 repeat lines 1363 to 1375 (74 tokens); repeated code has to be fixed in every copy 1817:1 [warning] duplication.repeated_block - lines 1817 to 1828 repeat lines 397 to 412 (66 tokens); repeated code has to be fixed in every copy NamingConvention: 76 (C), based on 124 names 45:10 [warning] naming.inconsistent_style - variable `saved_field_type` is snake_case, while most variables and parameters in this file are camelCase (31 of 109 names); mixed styles make code harder to scan 46:10 [warning] naming.inconsistent_style - variable `saved_field_value` is snake_case, while most variables and parameters in this file are camelCase (31 of 109 names); mixed styles make code harder to scan 55:10 [warning] naming.inconsistent_style - variable `advanced_options` is snake_case, while most variables and parameters in this file are camelCase (31 of 109 names); mixed styles make code harder to scan 59:44 [warning] naming.inconsistent_style - variable `advanced_option` is snake_case, while most variables and parameters in this file are camelCase (31 of 109 names); mixed styles make code harder to scan 97:26 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds 168:18 [warning] naming.inconsistent_style - variable `saved_date` is snake_case, while most variables and parameters in this file are camelCase (31 of 109 names); mixed styles make code harder to scan 197:18 [warning] naming.inconsistent_style - variable `saved_datetime` is snake_case, while most variables and parameters in this file are camelCase (31 of 109 names); mixed styles make code harder to scan 225:18 [warning] naming.inconsistent_style - variable `saved_time` is snake_case, while most variables and parameters in this file are camelCase (31 of 109 names); mixed styles make code harder to scan 238:22 [warning] naming.inconsistent_style - variable `canonical_time` is snake_case, while most variables and parameters in this file are camelCase (31 of 109 names); mixed styles make code harder to scan 270:18 [warning] naming.inconsistent_style - variable `saved_from` is snake_case, while most variables and parameters in this file are camelCase (31 of 109 names); mixed styles make code harder to scan 271:18 [warning] naming.inconsistent_style - variable `saved_to` is snake_case, while most variables and parameters in this file are camelCase (31 of 109 names); mixed styles make code harder to scan 423:18 [warning] naming.inconsistent_style - variable `return_obj` is snake_case, while most variables and parameters in this file are camelCase (31 of 109 names); mixed styles make code harder to scan 432:38 [warning] naming.generic - variable `obj` is a generic name; it says nothing about what it holds 515:18 [warning] naming.inconsistent_style - variable `posts_obj` is snake_case, while most variables and parameters in this file are camelCase (31 of 109 names); mixed styles make code harder to scan 521:49 [warning] naming.inconsistent_style - variable `post_id` is snake_case, while most variables and parameters in this file are camelCase (31 of 109 names); mixed styles make code harder to scan 540:18 [warning] naming.inconsistent_style - variable `clean_json` is snake_case, while most variables and parameters in this file are camelCase (31 of 109 names); mixed styles make code harder to scan 585:18 [warning] naming.inconsistent_style - variable `QRCodeValue` is PascalCase, while most variables and parameters in this file are camelCase (31 of 109 names); mixed styles make code harder to scan 626:18 [warning] naming.inconsistent_style - variable `terms_obj` is snake_case, while most variables and parameters in this file are camelCase (31 of 109 names); mixed styles make code harder to scan 632:49 [warning] naming.inconsistent_style - variable `term_id` is snake_case, while most variables and parameters in this file are camelCase (31 of 109 names); mixed styles make code harder to scan 679:18 [warning] naming.inconsistent_style - variable `users_obj` is snake_case, while most variables and parameters in this file are camelCase (31 of 109 names); mixed styles make code harder to scan 685:49 [warning] naming.inconsistent_style - variable `user_id` is snake_case, while most variables and parameters in this file are camelCase (31 of 109 names); mixed styles make code harder to scan 813:51 [warning] naming.inconsistent_style - variable `block_index` is snake_case, while most variables and parameters in this file are camelCase (31 of 109 names); mixed styles make code harder to scan 819:33 [warning] naming.inconsistent_style - variable `block_name` is snake_case, while most variables and parameters in this file are camelCase (31 of 109 names); mixed styles make code harder to scan 819:48 [warning] naming.inconsistent_style - variable `block_fields` is snake_case, while most variables and parameters in this file are camelCase (31 of 109 names); mixed styles make code harder to scan 820:44 [warning] naming.inconsistent_style - variable `block_field_name` is snake_case, while most variables and parameters in this file are camelCase (31 of 109 names); mixed styles make code harder to scan 820:65 [warning] naming.inconsistent_style - variable `block_field` is snake_case, while most variables and parameters in this file are camelCase (31 of 109 names); mixed styles make code harder to scan 821:47 [warning] naming.inconsistent_style - variable `block_field_index` is snake_case, while most variables and parameters in this file are camelCase (31 of 109 names); mixed styles make code harder to scan 821:69 [warning] naming.inconsistent_style - variable `block_field_value` is snake_case, while most variables and parameters in this file are camelCase (31 of 109 names); mixed styles make code harder to scan 824:30 [warning] naming.inconsistent_style - variable `nested_block_name` is snake_case, while most variables and parameters in this file are camelCase (31 of 109 names); mixed styles make code harder to scan 1824:39 [warning] naming.too_short - variable `v` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Core/CQRS/Query/FetchMetaFieldsFromBelongsQuery.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 0 (F), based on 49 code lines 61:1 [warning] duplication.repeated_block - lines 61 to 75 repeat lines 42 to 56 (78 tokens); repeated code has to be fixed in every copy NamingConvention: 71 (C), based on 7 names 8:7 [warning] naming.too_long - class `FetchMetaFieldsFromBelongsQuery` is 31 characters (limit 30); very long names make code hard to read 31:10 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/CQRS/Query/FetchMetaGroupsQuery.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 34 code lines NamingConvention: 91 (A), based on 11 names 56:50 [warning] naming.too_short - variable `t` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Core/CQRS/Query/FetchMetaKeysQuery.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 13 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Query/FetchPostTypeTaxonomiesQuery.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 44 code lines NamingConvention: 90 (A), based on 10 names 25:10 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/CQRS/Query/FetchPreviewLinkQuery.php (other) CodeLength: not graded 27:21 [warning] length.function - FetchPreviewLinkQuery::execute has 74 lines in its body, above 50 CyclomaticComplexity: 71 (C), based on 2 functions 27:21 [warning] complexity.function - FetchPreviewLinkQuery::execute has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 70 code lines NamingConvention: 85 (B), based on 13 names 19:40 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds 29:10 [warning] naming.inconsistent_style - variable `mandatory_keys` is snake_case, while most variables and parameters in this file are camelCase (2 of 10 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/CQRS/Query/FetchTableStatsQuery.php (other) CodeLength: not graded 39:22 [warning] length.function - FetchTableStatsQuery::rankColumns has 55 lines in its body, above 50 CyclomaticComplexity: 75 (C), based on 4 functions 39:22 [warning] complexity.function - FetchTableStatsQuery::rankColumns has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely 102:22 [warning] complexity.function - FetchTableStatsQuery::computeVarianceScore has a cyclomatic complexity of 15, moderate risk (above 10): each of its 15 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 83 code lines NamingConvention: 92 (A), based on 24 names 91:36 [warning] naming.too_short - parameter `a` is 1 character (at least 2); a one letter name hides its meaning 91:40 [warning] naming.too_short - parameter `b` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Core/CQRS/Query/FetchTableTemplatesQuery.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 24 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Query/GenerateGutenbergTemplateQuery.php (other) CodeLength: not graded 65:22 [warning] length.function - GenerateGutenbergTemplateQuery::relationalFieldTemplate has 56 lines in its body, above 50 128:22 [warning] length.function - GenerateGutenbergTemplateQuery::generateSinglePostTemplate has 90 lines in its body, above 50 261:22 [warning] length.function - GenerateGutenbergTemplateQuery::generateSingleUserTemplate has 74 lines in its body, above 50 362:22 [warning] length.function - GenerateGutenbergTemplateQuery::allowedBlocks has 77 lines in its body, above 50 CyclomaticComplexity: 95 (A), based on 9 functions 65:22 [warning] complexity.function - GenerateGutenbergTemplateQuery::relationalFieldTemplate has a cyclomatic complexity of 18, moderate risk (above 10): each of its 18 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 350 code lines NamingConvention: 100 (A), based on 21 names Security: not graded advanced-custom-post-type/src/Core/CQRS/Query/GenerateRelationalFieldOptionsQuery.php (other) CodeLength: not graded 97:22 [error] length.function - GenerateRelationalFieldOptionsQuery::getOptions has 247 lines in its body, above 100 350:22 [warning] length.function - GenerateRelationalFieldOptionsQuery::renderHtml has 58 lines in its body, above 50 452:22 [warning] length.function - GenerateRelationalFieldOptionsQuery::renderLabel has 60 lines in its body, above 50 16:7 [warning] length.class - GenerateRelationalFieldOptionsQuery has 515 lines, above 500 for a other CyclomaticComplexity: 39 (F), based on 7 functions 97:22 [error] complexity.function - GenerateRelationalFieldOptionsQuery::getOptions has a cyclomatic complexity of 55, untestable risk (above 10): each of its 55 paths needs its own test, which makes it hard to follow and to change safely 452:22 [warning] complexity.function - GenerateRelationalFieldOptionsQuery::renderLabel has a cyclomatic complexity of 14, moderate risk (above 10): each of its 14 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 336 code lines 484:1 [warning] duplication.repeated_block - lines 484 to 496 repeat lines 456 to 470 (50 tokens); repeated code has to be fixed in every copy NamingConvention: 95 (A), based on 59 names 16:7 [warning] naming.too_long - class `GenerateRelationalFieldOptionsQuery` is 35 characters (limit 30); very long names make code hard to read 125:22 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds 271:74 [warning] naming.generic - variable `val` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/CQRS/Query/QueryInterface.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 5 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Core/Data/Export/DTO/MetadataExportItemDto.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 8 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Core/Data/Export/Formatter/MetadataExportArrayFormatter.php (other) CodeLength: not graded 274:29 [warning] length.function - MetadataExportArrayFormatter::formatFieldValue has 70 lines in its body, above 50 359:29 [error] length.function - MetadataExportArrayFormatter::formatRawValue has 216 lines in its body, above 100 12:7 [warning] length.class - MetadataExportArrayFormatter has 565 lines, above 500 for a other CyclomaticComplexity: 63 (D), based on 12 functions 274:29 [warning] complexity.function - MetadataExportArrayFormatter::formatFieldValue has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely 359:29 [error] complexity.function - MetadataExportArrayFormatter::formatRawValue has a cyclomatic complexity of 43, high risk (above 10): each of its 43 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 394 code lines NamingConvention: 100 (A), based on 62 names Security: not graded advanced-custom-post-type/src/Core/Data/Export/Formatter/MetadataExportFormatterInterface.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 5 code lines NamingConvention: 67 (D), based on 3 names 7:11 [warning] naming.too_long - interface `MetadataExportFormatterInterface` is 32 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/Data/Export/Formatter/MetadataExportXMLFormatter.php (other) CodeLength: not graded 320:29 [warning] length.function - MetadataExportXMLFormatter::formatFieldValue has 54 lines in its body, above 50 384:29 [error] length.function - MetadataExportXMLFormatter::formatRawValue has 318 lines in its body, above 100 14:7 [warning] length.class - MetadataExportXMLFormatter has 704 lines, above 500 for a other 1:1 [warning] length.file - the file has 717 lines, above 600 for a other CyclomaticComplexity: 46 (F), based on 15 functions 384:29 [error] complexity.function - MetadataExportXMLFormatter::formatRawValue has a cyclomatic complexity of 60, untestable risk (above 10): each of its 60 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 454 code lines 227:1 [warning] duplication.repeated_block - lines 227 to 232 repeat lines 94 to 99 (60 tokens); repeated code has to be fixed in every copy 500:1 [warning] duplication.repeated_block - lines 500 to 504 repeat lines 435 to 439 (55 tokens); repeated code has to be fixed in every copy 513:1 [warning] duplication.repeated_block - lines 513 to 521 repeat lines 431 to 439 (69 tokens); repeated code has to be fixed in every copy 635:1 [warning] duplication.repeated_block - lines 635 to 663 repeat lines 605 to 633 (94 tokens); repeated code has to be fixed in every copy 665:1 [warning] duplication.repeated_block - lines 665 to 697 repeat lines 605 to 637 (103 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 59 names Security: not graded advanced-custom-post-type/src/Core/Data/Export/Generator/MetadataExportGeneratorInterface.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 6 code lines NamingConvention: 75 (C), based on 4 names 8:11 [warning] naming.too_long - interface `MetadataExportGeneratorInterface` is 32 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/Data/Export/Generator/MetadataExportJsonGenerator.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 18 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Core/Data/Export/Generator/MetadataExportXMLGenerator.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 22 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Core/Data/Export/Generator/MetadataExportYamlGenerator.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 18 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Core/Data/Export/MetadataExport.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 23 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Core/Data/Import/Importer/AbstractImporter.php (other) CodeLength: not graded 77:24 [warning] length.function - AbstractImporter::importFieldSettings has 91 lines in its body, above 50 188:22 [warning] length.function - AbstractImporter::formatChildrenFieldsSettings has 66 lines in its body, above 50 304:22 [error] length.function - AbstractImporter::extractValues has 174 lines in its body, above 100 CyclomaticComplexity: 19 (F), based on 7 functions 77:24 [error] complexity.function - AbstractImporter::importFieldSettings has a cyclomatic complexity of 59, untestable risk (above 10): each of its 59 paths needs its own test, which makes it hard to follow and to change safely 188:22 [error] complexity.function - AbstractImporter::formatChildrenFieldsSettings has a cyclomatic complexity of 40, high risk (above 10): each of its 40 paths needs its own test, which makes it hard to follow and to change safely 304:22 [error] complexity.function - AbstractImporter::extractValues has a cyclomatic complexity of 74, untestable risk (above 10): each of its 74 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 331 code lines 116:1 [warning] duplication.repeated_block - lines 116 to 125 repeat lines 107 to 116 (95 tokens); repeated code has to be fixed in every copy 192:1 [warning] duplication.repeated_block - lines 192 to 194 repeat lines 160 to 162 (64 tokens); repeated code has to be fixed in every copy 214:1 [warning] duplication.repeated_block - lines 214 to 223 repeat lines 107 to 116 (92 tokens); repeated code has to be fixed in every copy 232:1 [warning] duplication.repeated_block - lines 232 to 236 repeat lines 125 to 129 (146 tokens); repeated code has to be fixed in every copy 244:1 [warning] duplication.repeated_block - lines 244 to 247 repeat lines 97 to 100 (75 tokens); repeated code has to be fixed in every copy 461:1 [warning] duplication.repeated_block - lines 461 to 467 repeat lines 331 to 337 (51 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 67 names Security: not graded advanced-custom-post-type/src/Core/Data/Import/Importer/MetadataImporterInterface.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 5 code lines NamingConvention: 75 (C), based on 4 names 15:52 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/Data/Import/Importer/MetadataJsonImporter.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 43 code lines NamingConvention: 96 (A), based on 26 names 17:52 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/Data/Import/Importer/MetadataXMLImporter.php (other) CodeLength: not graded 17:21 [warning] length.function - MetadataXMLImporter::importItem has 58 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 1 function Duplication: 70 (C), based on 51 code lines 48:1 [warning] duplication.repeated_block - lines 48 to 54 repeat lines 31 to 37 (55 tokens); repeated code has to be fixed in every copy NamingConvention: 96 (A), based on 27 names 17:52 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/Data/Import/Importer/MetadataYamlImporter.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 9 code lines NamingConvention: 80 (B), based on 5 names 16:52 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/Data/Import/Importer/TableRecordXMLImporter.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 63 code lines NamingConvention: 95 (A), based on 22 names 33:52 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/Data/Import/MetadataImport.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 23 code lines NamingConvention: 86 (B), based on 7 names 21:71 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/Data/Import/TableRecordImport.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 8 code lines NamingConvention: 75 (C), based on 4 names 18:55 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/Generators/AbstractAdminPageGenerator.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 23 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Core/Generators/AbstractGenerator.php (other) CodeLength: not graded 98:21 [warning] length.function - AbstractGenerator::enqueueScripts has 80 lines in its body, above 50 187:24 [warning] length.function - AbstractGenerator::generateMetaBoxFieldArray has 75 lines in its body, above 50 274:31 [error] length.function - AbstractGenerator::generateQuickEditField has 285 lines in its body, above 100 570:31 [error] length.function - AbstractGenerator::generateQuickEditCCTField has 120 lines in its body, above 100 23:16 [warning] length.class - AbstractGenerator has 829 lines, above 500 for a other 1:1 [warning] length.file - the file has 851 lines, above 600 for a other CyclomaticComplexity: 41 (F), based on 22 functions 98:21 [warning] complexity.function - AbstractGenerator::enqueueScripts has a cyclomatic complexity of 20, moderate risk (above 10): each of its 20 paths needs its own test, which makes it hard to follow and to change safely 274:31 [error] complexity.function - AbstractGenerator::generateQuickEditField has a cyclomatic complexity of 57, untestable risk (above 10): each of its 57 paths needs its own test, which makes it hard to follow and to change safely 570:31 [error] complexity.function - AbstractGenerator::generateQuickEditCCTField has a cyclomatic complexity of 28, high risk (above 10): each of its 28 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 545 code lines 398:1 [warning] duplication.repeated_block - lines 398 to 409 repeat lines 308 to 318 (51 tokens); repeated code has to be fixed in every copy 418:1 [warning] duplication.repeated_block - lines 418 to 420 repeat lines 361 to 363 (72 tokens); repeated code has to be fixed in every copy 454:1 [warning] duplication.repeated_block - lines 454 to 460 repeat lines 357 to 363 (84 tokens); repeated code has to be fixed in every copy 471:1 [warning] duplication.repeated_block - lines 471 to 494 repeat lines 369 to 393 (115 tokens); repeated code has to be fixed in every copy 512:1 [warning] duplication.repeated_block - lines 512 to 518 repeat lines 357 to 363 (84 tokens); repeated code has to be fixed in every copy 526:1 [warning] duplication.repeated_block - lines 526 to 538 repeat lines 369 to 381 (90 tokens); repeated code has to be fixed in every copy 631:1 [warning] duplication.repeated_block - lines 631 to 638 repeat lines 592 to 599 (56 tokens); repeated code has to be fixed in every copy 639:1 [warning] duplication.repeated_block - lines 639 to 647 repeat lines 601 to 609 (55 tokens); repeated code has to be fixed in every copy 725:1 [warning] duplication.repeated_block - lines 725 to 739 repeat lines 709 to 723 (54 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 77 names Security: not graded 114:30 [warning] security.unsanitized_input - read of `$_GET['user_id']` with no sanitizer around it; sanitize request input where you read it 119:30 [warning] security.unsanitized_input - read of `$_GET['c']` with no sanitizer around it; sanitize request input where you read it 124:30 [warning] security.unsanitized_input - read of `$_GET['page']` with no sanitizer around it; sanitize request input where you read it 130:30 [warning] security.unsanitized_input - read of `$_GET['post']` with no sanitizer around it; sanitize request input where you read it 135:30 [warning] security.unsanitized_input - read of `$_GET['taxonomy']` with no sanitizer around it; sanitize request input where you read it 140:30 [warning] security.unsanitized_input - read of `$_GET['tag_ID']` with no sanitizer around it; sanitize request input where you read it advanced-custom-post-type/src/Core/Generators/Comment/CommentAdminColumnsGenerator.php (other) CodeLength: not graded 19:28 [error] length.function - CommentAdminColumnsGenerator::addColumns has 169 lines in its body, above 100 CyclomaticComplexity: 32 (F), based on 2 functions 19:28 [error] complexity.function - CommentAdminColumnsGenerator::addColumns has a cyclomatic complexity of 45, high risk (above 10): each of its 45 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 142 code lines 64:1 [warning] duplication.repeated_block - lines 64 to 68 repeat lines 28 to 32 (66 tokens); repeated code has to be fixed in every copy 85:1 [warning] duplication.repeated_block - lines 85 to 90 repeat lines 46 to 51 (79 tokens); repeated code has to be fixed in every copy 105:1 [warning] duplication.repeated_block - lines 105 to 113 repeat lines 45 to 51 (85 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 25 names Security: not graded 71:33 [warning] security.unescaped_output - echo of `do_shortcode('[acpt_comm admin_view="true" preview="true" cid="'.$comment->co...` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 117:45 [warning] security.unsanitized_input - read of `$_REQUEST` with no sanitizer around it; sanitize request input where you read it 134:29 [warning] security.unescaped_output - echo of `$metaKey` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 135:29 [warning] security.unescaped_output - echo of `Translator::translate('Select')` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 143:37 [warning] security.unescaped_output - echo of `$result->meta_value` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) advanced-custom-post-type/src/Core/Generators/Comment/CommentMetaBoxGenerator.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 24 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Core/Generators/Comment/CommentMetaFieldGenerator.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 46 code lines NamingConvention: 100 (A), based on 13 names Security: not graded advanced-custom-post-type/src/Core/Generators/Comment/CommentMetaGroupGenerator.php (other) CodeLength: not graded 122:22 [warning] length.function - CommentMetaGroupGenerator::verticalTabs has 67 lines in its body, above 50 196:22 [warning] length.function - CommentMetaGroupGenerator::horizontalTabs has 69 lines in its body, above 50 CyclomaticComplexity: 84 (B), based on 9 functions 122:22 [warning] complexity.function - CommentMetaGroupGenerator::verticalTabs has a cyclomatic complexity of 15, moderate risk (above 10): each of its 15 paths needs its own test, which makes it hard to follow and to change safely 196:22 [warning] complexity.function - CommentMetaGroupGenerator::horizontalTabs has a cyclomatic complexity of 18, moderate risk (above 10): each of its 18 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 213 code lines 115:1 [warning] duplication.repeated_block - lines 115 to 129 repeat lines 72 to 87 (99 tokens); repeated code has to be fixed in every copy 186:1 [warning] duplication.repeated_block - lines 186 to 205 repeat lines 112 to 131 (126 tokens); repeated code has to be fixed in every copy 205:1 [warning] duplication.repeated_block - lines 205 to 224 repeat lines 131 to 150 (95 tokens); repeated code has to be fixed in every copy 235:1 [warning] duplication.repeated_block - lines 235 to 248 repeat lines 160 to 173 (76 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 32 names Security: not graded 102:37 [warning] security.unescaped_output - echo of `$field` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 146:115 [warning] security.unescaped_output - echo of `$this->groupModel->getId()` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 151:162 [warning] security.unescaped_output - echo of `$boxId` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 152:59 [warning] security.unescaped_output - echo of `$row['boxName']` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 161:64 [warning] security.unescaped_output - echo of `$boxId` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 167:57 [warning] security.unescaped_output - echo of `$field` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 220:117 [warning] security.unescaped_output - echo of `$this->groupModel->getId()` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 225:164 [warning] security.unescaped_output - echo of `$boxId` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 226:59 [warning] security.unescaped_output - echo of `$row['boxName']` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 236:64 [warning] security.unescaped_output - echo of `$boxId` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 242:57 [warning] security.unescaped_output - echo of `$field` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) advanced-custom-post-type/src/Core/Generators/Comment/CommentMetaGroupsGenerator.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 30 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Core/Generators/CustomPostType/CustomPostTypeAdminColumnsGenerator.php (other) CodeLength: not graded 37:28 [error] length.function - CustomPostTypeAdminColumnsGenerator::addColumns has 523 lines in its body, above 100 26:7 [warning] length.class - CustomPostTypeAdminColumnsGenerator has 683 lines, above 500 for a other 1:1 [warning] length.file - the file has 708 lines, above 600 for a other CyclomaticComplexity: 16 (F), based on 6 functions 37:28 [error] complexity.function - CustomPostTypeAdminColumnsGenerator::addColumns has a cyclomatic complexity of 131, untestable risk (above 10): each of its 131 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 495 code lines 154:1 [warning] duplication.repeated_block - lines 154 to 158 repeat lines 124 to 128 (50 tokens); repeated code has to be fixed in every copy 165:1 [warning] duplication.repeated_block - lines 165 to 175 repeat lines 131 to 141 (51 tokens); repeated code has to be fixed in every copy 260:1 [warning] duplication.repeated_block - lines 260 to 268 repeat lines 187 to 195 (78 tokens); repeated code has to be fixed in every copy 402:1 [warning] duplication.repeated_block - lines 402 to 413 repeat lines 187 to 196 (79 tokens); repeated code has to be fixed in every copy NamingConvention: 94 (A), based on 82 names 26:7 [warning] naming.too_long - class `CustomPostTypeAdminColumnsGenerator` is 35 characters (limit 30); very long names make code hard to read 77:51 [warning] naming.inconsistent_style - parameter `bulk_actions` is snake_case, while most variables and parameters in this file are camelCase (40 of 75 names); mixed styles make code harder to scan 366:56 [warning] naming.inconsistent_style - parameter `post_type` is snake_case, while most variables and parameters in this file are camelCase (40 of 75 names); mixed styles make code harder to scan 512:22 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds 688:29 [warning] naming.too_long - method `applySortingBasedOnUserPreferences` is 34 characters (limit 30); very long names make code hard to read Security: not graded 99:32 [warning] security.unsanitized_input - read of `$_GET['post']` with no sanitizer around it; sanitize request input where you read it 100:30 [warning] security.unsanitized_input - read of `$_GET['paged']` with no sanitizer around it; sanitize request input where you read it 163:33 [warning] security.unescaped_output - echo of `do_shortcode('[acpt admin_view="true" preview="true" pid="'.$post->ID.'" box=...` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 177:33 [warning] security.unescaped_output - echo of `do_shortcode('[acpt_cct admin_view="true" preview="true" pid="'.$post->ID.'" ...` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 330:44 [warning] security.unsanitized_input - read of `$_SERVER['REQUEST_URI']` with no sanitizer around it; sanitize request input where you read it 379:41 [warning] security.unsanitized_input - read of `$_REQUEST` with no sanitizer around it; sanitize request input where you read it 393:33 [warning] security.unescaped_output - echo of `$isSelected` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 417:45 [warning] security.unsanitized_input - read of `$_REQUEST` with no sanitizer around it; sanitize request input where you read it 444:37 [warning] security.unescaped_output - echo of `$isSelected` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 448:41 [warning] security.unescaped_output - echo of `$isSelected` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 591:29 [warning] security.unescaped_output - echo of `self::generateQuickEditField($key, $label, $value, $metaBoxFieldModel)` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 630:25 [warning] security.unescaped_output - echo of `self::generateQuickEditCCTField($tableName, $column, $value)` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) advanced-custom-post-type/src/Core/Generators/CustomPostType/CustomPostTypeGenerator.php (other) CodeLength: not graded 83:21 [error] length.function - CustomPostTypeGenerator::registerPostType has 226 lines in its body, above 100 CyclomaticComplexity: 57 (F), based on 9 functions 83:21 [error] complexity.function - CustomPostTypeGenerator::registerPostType has a cyclomatic complexity of 38, high risk (above 10): each of its 38 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 301 code lines NamingConvention: 100 (A), based on 49 names Security: not graded advanced-custom-post-type/src/Core/Generators/CustomPostType/CustomPostTypeMetaBoxFieldGenerator.php (other) CodeLength: not graded CyclomaticComplexity: 72 (C), based on 2 functions 33:29 [warning] complexity.function - CustomPostTypeMetaBoxFieldGenerator::getCustomPostTypeField has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 38 code lines NamingConvention: 92 (A), based on 13 names 13:7 [warning] naming.too_long - class `CustomPostTypeMetaBoxFieldGenerator` is 35 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/Generators/CustomPostType/CustomPostTypeMetaBoxGenerator.php (other) CodeLength: not graded 34:21 [error] length.function - CustomPostTypeMetaBoxGenerator::addMetaBox has 104 lines in its body, above 100 CyclomaticComplexity: 46 (F), based on 2 functions 34:21 [error] complexity.function - CustomPostTypeMetaBoxGenerator::addMetaBox has a cyclomatic complexity of 27, high risk (above 10): each of its 27 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 106 code lines NamingConvention: 96 (A), based on 28 names 68:43 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded 70:29 [warning] security.unescaped_output - echo of `$editButtonPlaceholder` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 80:41 [warning] security.unescaped_output - echo of `$tableName` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 89:37 [warning] security.unescaped_output - echo of `$field` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 106:63 [warning] security.unsanitized_input - read of `$_GET['post']` with no sanitizer around it; sanitize request input where you read it 111:106 [warning] security.unsanitized_input - read of `$_GET['post']` with no sanitizer around it; sanitize request input where you read it advanced-custom-post-type/src/Core/Generators/CustomPostType/CustomPostTypeMetaGroupGenerator.php (other) CodeLength: not graded 118:22 [warning] length.function - CustomPostTypeMetaGroupGenerator::verticalTabs has 93 lines in its body, above 50 216:22 [warning] length.function - CustomPostTypeMetaGroupGenerator::horizontalTabs has 95 lines in its body, above 50 CyclomaticComplexity: 58 (F), based on 9 functions 118:22 [error] complexity.function - CustomPostTypeMetaGroupGenerator::verticalTabs has a cyclomatic complexity of 22, high risk (above 10): each of its 22 paths needs its own test, which makes it hard to follow and to change safely 216:22 [error] complexity.function - CustomPostTypeMetaGroupGenerator::horizontalTabs has a cyclomatic complexity of 25, high risk (above 10): each of its 25 paths needs its own test, which makes it hard to follow and to change safely Duplication: 0 (F), based on 250 code lines 211:1 [warning] duplication.repeated_block - lines 211 to 235 repeat lines 113 to 137 (187 tokens); repeated code has to be fixed in every copy 242:1 [warning] duplication.repeated_block - lines 242 to 255 repeat lines 144 to 158 (53 tokens); repeated code has to be fixed in every copy 273:1 [warning] duplication.repeated_block - lines 273 to 286 repeat lines 174 to 187 (78 tokens); repeated code has to be fixed in every copy 288:1 [warning] duplication.repeated_block - lines 288 to 320 repeat lines 187 to 216 (113 tokens); repeated code has to be fixed in every copy NamingConvention: 96 (A), based on 45 names 28:7 [warning] naming.too_long - class `CustomPostTypeMetaGroupGenerator` is 32 characters (limit 30); very long names make code hard to read 154:47 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded 55:37 [warning] security.unsanitized_input - read of `$_GET['post']` with no sanitizer around it; sanitize request input where you read it 55:54 [warning] security.unsanitized_input - read of `$_GET['id']` with no sanitizer around it; sanitize request input where you read it 155:33 [warning] security.unescaped_output - echo of `$this->cctRecordIdInput()` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 158:43 [warning] security.unescaped_output - echo of `$this->metaBoxEditLinkButtonOrEmpty($this->groupModel->getBoxById($this->acti...` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 160:87 [warning] security.unescaped_output - echo of `$this->groupModel->getId()` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 165:42 [warning] security.unescaped_output - echo of `$this->postId` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 165:127 [warning] security.unescaped_output - echo of `$this->isActiveTab($boxId, $index, $this->postId)` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 165:206 [warning] security.unescaped_output - echo of `$boxId` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 166:19 [warning] security.unescaped_output - echo of `$row['boxName']` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 175:27 [warning] security.unescaped_output - echo of `$boxId` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 175:96 [warning] security.unescaped_output - echo of `$this->isActiveTab($boxId, $index, $this->postId)` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 181:57 [warning] security.unescaped_output - echo of `$field` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 253:33 [warning] security.unescaped_output - echo of `$this->cctRecordIdInput()` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 255:113 [warning] security.unescaped_output - echo of `$this->groupModel->getId()` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 261:79 [warning] security.unescaped_output - echo of `$this->postId` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 261:166 [warning] security.unescaped_output - echo of `$this->isActiveTab($boxId, $index, $this->postId)` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 261:245 [warning] security.unescaped_output - echo of `$boxId` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 262:59 [warning] security.unescaped_output - echo of `$row['boxName']` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 268:47 [warning] security.unescaped_output - echo of `$this->metaBoxEditLinkButtonOrEmpty($this->groupModel->getBoxById($this->acti...` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 274:60 [warning] security.unescaped_output - echo of `$boxId` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 274:128 [warning] security.unescaped_output - echo of `$this->isActiveTab($boxId, $index, $this->postId)` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 280:57 [warning] security.unescaped_output - echo of `$field` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) advanced-custom-post-type/src/Core/Generators/CustomPostType/CustomPostTypeMetaGroupsGenerator.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 87 code lines NamingConvention: 85 (B), based on 27 names 12:7 [warning] naming.too_long - class `CustomPostTypeMetaGroupsGenerator` is 33 characters (limit 30); very long names make code hard to read 99:14 [warning] naming.inconsistent_style - variable `meta_groups` is snake_case, while most variables and parameters in this file are camelCase (12 of 22 names); mixed styles make code harder to scan 101:39 [warning] naming.inconsistent_style - variable `meta_group` is snake_case, while most variables and parameters in this file are camelCase (12 of 22 names); mixed styles make code harder to scan 105:58 [warning] naming.inconsistent_style - variable `meta_box_model` is snake_case, while most variables and parameters in this file are camelCase (12 of 22 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/AbstractField.php (other) CodeLength: not graded 220:21 [warning] length.function - AbstractField::renderElement has 56 lines in its body, above 50 474:22 [warning] length.function - AbstractField::WordPressFieldCurrentValue has 88 lines in its body, above 50 19:16 [warning] length.class - AbstractField has 797 lines, above 500 for a other 1:1 [warning] length.file - the file has 815 lines, above 600 for a other CyclomaticComplexity: 77 (C), based on 31 functions 86:21 [warning] complexity.function - AbstractField::__construct has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely 220:21 [warning] complexity.function - AbstractField::renderElement has a cyclomatic complexity of 16, moderate risk (above 10): each of its 16 paths needs its own test, which makes it hard to follow and to change safely 379:24 [warning] complexity.function - AbstractField::defaultValue has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely 421:24 [warning] complexity.function - AbstractField::defaultExtraValue has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely 474:22 [error] complexity.function - AbstractField::WordPressFieldCurrentValue has a cyclomatic complexity of 22, high risk (above 10): each of its 22 paths needs its own test, which makes it hard to follow and to change safely 600:24 [warning] complexity.function - AbstractField::getParentData has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 466 code lines 400:1 [warning] duplication.repeated_block - lines 400 to 407 repeat lines 392 to 399 (56 tokens); repeated code has to be fixed in every copy 457:1 [warning] duplication.repeated_block - lines 457 to 462 repeat lines 449 to 454 (64 tokens); repeated code has to be fixed in every copy NamingConvention: 97 (A), based on 93 names 433:18 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds 474:22 [warning] naming.inconsistent_style - method `WordPressFieldCurrentValue` is PascalCase, while most methods in this file are camelCase (27 of 32 names); mixed styles make code harder to scan 702:24 [warning] naming.too_long - method `appendDataValidateAndConditionalRenderingAttributes` is 51 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/AcceptanceField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 23 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/AddressField.php (other) CodeLength: not graded 74:22 [warning] length.function - AddressField::renderMultiAddress has 57 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 9 functions Duplication: 100 (A), based on 116 code lines NamingConvention: 100 (A), based on 20 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/BarcodeField.php (other) CodeLength: not graded 55:22 [warning] length.function - BarcodeField::renderBarcodeGenerator has 94 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 103 code lines NamingConvention: 100 (A), based on 17 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/ButtonField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 23 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/CaptchaField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 17 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/CheckboxField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 33 code lines NamingConvention: 100 (A), based on 10 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/ColorField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 21 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/CountryField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 39 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/CurrencyField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 69 code lines NamingConvention: 100 (A), based on 13 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/DateField.php (other) CodeLength: not graded CyclomaticComplexity: 79 (C), based on 5 functions 15:21 [warning] complexity.function - DateField::render has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely 87:24 [warning] complexity.function - DateField::defaultDateFormat has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely 107:24 [warning] complexity.function - DateField::defaultTimeFormat has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 86 code lines NamingConvention: 100 (A), based on 13 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/DateRangeField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 72 code lines NamingConvention: 100 (A), based on 12 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/DateTimeField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 61 code lines NamingConvention: 100 (A), based on 12 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/EmailField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 32 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/EmbedField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 41 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/FileField.php (other) CodeLength: not graded 91:22 [warning] length.function - FileField::preview has 65 lines in its body, above 50 CyclomaticComplexity: 86 (B), based on 6 functions 91:22 [warning] complexity.function - FileField::preview has a cyclomatic complexity of 14, moderate risk (above 10): each of its 14 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 118 code lines NamingConvention: 88 (B), based on 17 names 167:90 [warning] naming.too_short - parameter `w` is 1 character (at least 2); a one letter name hides its meaning 167:103 [warning] naming.too_short - parameter `h` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/FormattingHeadingField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 13 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/FormattingImageField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 25 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/FormattingLinkField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 14 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/FormattingParagraphField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 13 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/HTMLField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 53 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/HiddenField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 15 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/IDField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 46 code lines NamingConvention: 100 (A), based on 9 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/IconField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 25 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/LayoutContainerField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 22 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/LayoutStepsField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 41 code lines NamingConvention: 100 (A), based on 11 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/LayoutTabsField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 38 code lines NamingConvention: 100 (A), based on 11 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/LengthField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 69 code lines NamingConvention: 100 (A), based on 13 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/ListField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 40 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/MessageField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 21 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/NumberField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 37 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/PasswordField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 30 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/PhoneField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 5 functions Duplication: 100 (A), based on 49 code lines NamingConvention: 100 (A), based on 9 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/PostAuthorField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 36 code lines NamingConvention: 100 (A), based on 9 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/PostContentField.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 4 code lines NamingConvention: 100 (A), based on 1 name Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/PostDateField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 21 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/PostExcerptField.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 4 code lines NamingConvention: 100 (A), based on 1 name Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/PostField.php (other) CodeLength: not graded 19:21 [warning] length.function - PostField::render has 59 lines in its body, above 50 128:22 [warning] length.function - PostField::getOptions has 80 lines in its body, above 50 CyclomaticComplexity: 85 (B), based on 6 functions 128:22 [warning] complexity.function - PostField::getOptions has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 137 code lines NamingConvention: 97 (A), based on 34 names 138:18 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/PostObjectField.php (other) CodeLength: not graded 16:21 [warning] length.function - PostObjectField::render has 53 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 5 functions Duplication: 100 (A), based on 74 code lines NamingConvention: 100 (A), based on 18 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/PostTaxonomiesField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 5 functions Duplication: 100 (A), based on 102 code lines NamingConvention: 96 (A), based on 24 names 154:41 [warning] naming.too_short - variable `t` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/PostThumbnailField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 33 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/PostTitleField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 23 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/QRCodeField.php (other) CodeLength: not graded 55:22 [warning] length.function - QRCodeField::renderQRGenerator has 76 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 87 code lines NamingConvention: 94 (A), based on 16 names 31:22 [warning] naming.inconsistent_style - method `QRCodeValue` is PascalCase, while most methods in this file are camelCase (2 of 4 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/RadioField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 44 code lines NamingConvention: 100 (A), based on 10 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/RangeField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 23 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/RatingField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 49 code lines NamingConvention: 100 (A), based on 12 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/RepeaterField.php (other) CodeLength: not graded 270:21 [warning] length.function - RepeaterField::enqueueFieldAssets has 67 lines in its body, above 50 CyclomaticComplexity: 92 (A), based on 6 functions 270:21 [warning] complexity.function - RepeaterField::enqueueFieldAssets has a cyclomatic complexity of 15, moderate risk (above 10): each of its 15 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 218 code lines 228:1 [warning] duplication.repeated_block - lines 228 to 249 repeat lines 174 to 195 (116 tokens); repeated code has to be fixed in every copy 254:1 [warning] duplication.repeated_block - lines 254 to 265 repeat lines 200 to 211 (66 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 19 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/SelectField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 51 code lines NamingConvention: 100 (A), based on 12 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/TermDescriptionField.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 4 code lines NamingConvention: 100 (A), based on 1 name Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/TermNameField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 23 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/TermObjectField.php (other) CodeLength: not graded 16:21 [warning] length.function - TermObjectField::render has 53 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 61 code lines NamingConvention: 100 (A), based on 17 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/TermSlugField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 23 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/TextField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 32 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/TextareaField.php (other) CodeLength: not graded 14:21 [warning] length.function - TextareaField::render has 57 lines in its body, above 50 CyclomaticComplexity: 73 (C), based on 4 functions 14:21 [warning] complexity.function - TextareaField::render has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely 79:22 [warning] complexity.function - TextareaField::characterCounter has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 73 code lines NamingConvention: 100 (A), based on 16 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/TimeField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 59 code lines NamingConvention: 100 (A), based on 11 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/ToggleField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 27 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/TurnstileField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 17 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/UrlField.php (other) CodeLength: not graded 13:21 [warning] length.function - UrlField::render has 69 lines in its body, above 50 CyclomaticComplexity: 79 (C), based on 4 functions 13:21 [warning] complexity.function - UrlField::render has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 85 code lines 69:1 [warning] duplication.repeated_block - lines 69 to 77 repeat lines 33 to 41 (98 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 15 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/UserBioField.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 4 code lines NamingConvention: 100 (A), based on 1 name Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/UserEmailField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 23 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/UserField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 57 code lines NamingConvention: 100 (A), based on 16 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/UserFirstNameField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 23 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/UserLastNameField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 23 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/UserPasswordField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 22 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/UsernameField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 23 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/Fields/WeightField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 69 code lines NamingConvention: 100 (A), based on 13 names Security: not graded advanced-custom-post-type/src/Core/Generators/Form/FormGenerator.php (other) CodeLength: not graded 115:21 [warning] length.function - FormGenerator::render has 74 lines in its body, above 50 323:22 [warning] length.function - FormGenerator::renderField has 52 lines in its body, above 50 382:22 [error] length.function - FormGenerator::enqueueAssets has 125 lines in its body, above 100 512:22 [error] length.function - FormGenerator::injectCSSVariables has 115 lines in its body, above 100 25:7 [warning] length.class - FormGenerator has 695 lines, above 500 for a other 1:1 [warning] length.file - the file has 719 lines, above 600 for a other CyclomaticComplexity: 85 (B), based on 12 functions 67:21 [warning] complexity.function - FormGenerator::__construct has a cyclomatic complexity of 17, moderate risk (above 10): each of its 17 paths needs its own test, which makes it hard to follow and to change safely 249:22 [warning] complexity.function - FormGenerator::showGenericFormErrors has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely 323:22 [warning] complexity.function - FormGenerator::renderField has a cyclomatic complexity of 17, moderate risk (above 10): each of its 17 paths needs its own test, which makes it hard to follow and to change safely 382:22 [warning] complexity.function - FormGenerator::enqueueAssets has a cyclomatic complexity of 19, moderate risk (above 10): each of its 19 paths needs its own test, which makes it hard to follow and to change safely 640:22 [warning] complexity.function - FormGenerator::fetchCCTColumnValue has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 418 code lines NamingConvention: 100 (A), based on 74 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/AfterAndBeforeFieldGenerator.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 25 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/FieldBlockGenerator.php (other) CodeLength: not graded 139:21 [warning] length.function - FieldBlockGenerator::generate has 68 lines in its body, above 50 379:22 [warning] length.function - FieldBlockGenerator::generateElementWithBlockLayout has 51 lines in its body, above 50 441:22 [warning] length.function - FieldBlockGenerator::generateElementWithRowLayout has 60 lines in its body, above 50 17:7 [warning] length.class - FieldBlockGenerator has 556 lines, above 500 for a other CyclomaticComplexity: 100 (A), based on 14 functions Duplication: 70 (C), based on 295 code lines 427:1 [warning] duplication.repeated_block - lines 427 to 448 repeat lines 365 to 386 (91 tokens); repeated code has to be fixed in every copy 479:1 [warning] duplication.repeated_block - lines 479 to 509 repeat lines 408 to 441 (78 tokens); repeated code has to be fixed in every copy NamingConvention: 95 (A), based on 60 names 120:36 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds 233:22 [warning] naming.too_long - method `generateBlockElementsWithTableLayout` is 36 characters (limit 30); very long names make code hard to read 280:22 [warning] naming.too_long - method `generateBlockElementsWithRowLayout` is 34 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/AbstractField.php (other) CodeLength: not graded 393:24 [warning] length.function - AbstractField::getIdName has 62 lines in its body, above 50 657:24 [warning] length.function - AbstractField::getAttachments has 76 lines in its body, above 50 1000:22 [warning] length.function - AbstractField::renderFieldValue has 57 lines in its body, above 50 1206:24 [error] length.function - AbstractField::enqueueNestedFieldsAssets has 104 lines in its body, above 100 1341:24 [error] length.function - AbstractField::getDefaultAttributeValue has 106 lines in its body, above 100 1454:28 [warning] length.function - AbstractField::keyboardShortcutsLegend has 56 lines in its body, above 50 25:16 [error] length.class - AbstractField has 1487 lines, above 1000 for a other 1:1 [error] length.file - the file has 1511 lines, above 1200 for a other CyclomaticComplexity: 78 (C), based on 54 functions 393:24 [warning] complexity.function - AbstractField::getIdName has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely 657:24 [error] complexity.function - AbstractField::getAttachments has a cyclomatic complexity of 22, high risk (above 10): each of its 22 paths needs its own test, which makes it hard to follow and to change safely 890:24 [warning] complexity.function - AbstractField::renderField has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely 1206:24 [error] complexity.function - AbstractField::enqueueNestedFieldsAssets has a cyclomatic complexity of 22, high risk (above 10): each of its 22 paths needs its own test, which makes it hard to follow and to change safely 1341:24 [error] complexity.function - AbstractField::getDefaultAttributeValue has a cyclomatic complexity of 40, high risk (above 10): each of its 40 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 874 code lines 428:1 [warning] duplication.repeated_block - lines 428 to 439 repeat lines 411 to 421 (55 tokens); repeated code has to be fixed in every copy 684:1 [warning] duplication.repeated_block - lines 684 to 684 repeat lines 683 to 683 (50 tokens); repeated code has to be fixed in every copy 1432:1 [warning] duplication.repeated_block - lines 1432 to 1433 repeat lines 1431 to 1432 (56 tokens); repeated code has to be fixed in every copy 1433:1 [warning] duplication.repeated_block - lines 1433 to 1434 repeat lines 1431 to 1432 (57 tokens); repeated code has to be fixed in every copy 1434:1 [warning] duplication.repeated_block - lines 1434 to 1435 repeat lines 1433 to 1434 (64 tokens); repeated code has to be fixed in every copy 1437:1 [warning] duplication.repeated_block - lines 1437 to 1437 repeat lines 1432 to 1432 (52 tokens); repeated code has to be fixed in every copy NamingConvention: 94 (A), based on 144 names 92:21 [warning] naming.inconsistent_style - property `WooCommerceLoopIndex` is PascalCase, while most properties in this file are camelCase (9 of 14 names); mixed styles make code harder to scan 170:46 [warning] naming.inconsistent_style - parameter `WooCommerceLoopIndex` is PascalCase, while most variables and parameters in this file are camelCase (26 of 74 names); mixed styles make code harder to scan 507:37 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds 1118:24 [warning] naming.too_long - method `appendPatternMaxlengthAndMinlength` is 34 characters (limit 30); very long names make code hard to read 1140:24 [warning] naming.too_long - method `appendDataValidateAndLogicAttributes` is 36 characters (limit 30); very long names make code hard to read 1254:14 [warning] naming.inconsistent_style - variable `js_src` is snake_case, while most variables and parameters in this file are camelCase (26 of 74 names); mixed styles make code harder to scan 1255:14 [warning] naming.inconsistent_style - variable `css_src` is snake_case, while most variables and parameters in this file are camelCase (26 of 74 names); mixed styles make code harder to scan 1348:14 [warning] naming.generic - variable `val` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/AbstractUnitOfMeasureField.php (other) CodeLength: not graded 32:24 [warning] length.function - AbstractUnitOfMeasureField::defaultValue has 51 lines in its body, above 50 CyclomaticComplexity: 70 (C), based on 2 functions 32:24 [warning] complexity.function - AbstractUnitOfMeasureField::defaultValue has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely 88:24 [warning] complexity.function - AbstractUnitOfMeasureField::getDefaultUnitValue has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 66 code lines 107:1 [warning] duplication.repeated_block - lines 107 to 119 repeat lines 54 to 66 (62 tokens); repeated code has to be fixed in every copy NamingConvention: 90 (A), based on 10 names 76:10 [warning] naming.too_short - variable `v` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/AddressField.php (other) CodeLength: not graded 16:21 [warning] length.function - AddressField::render has 67 lines in its body, above 50 CyclomaticComplexity: 80 (B), based on 4 functions 16:21 [warning] complexity.function - AddressField::render has a cyclomatic complexity of 20, moderate risk (above 10): each of its 20 paths needs its own test, which makes it hard to follow and to change safely Duplication: 85 (B), based on 91 code lines 60:1 [warning] duplication.repeated_block - lines 60 to 64 repeat lines 45 to 49 (173 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 21 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/AddressMultiField.php (other) CodeLength: not graded 19:21 [warning] length.function - AddressMultiField::render has 85 lines in its body, above 50 CyclomaticComplexity: 49 (F), based on 3 functions 19:21 [error] complexity.function - AddressMultiField::render has a cyclomatic complexity of 26, high risk (above 10): each of its 26 paths needs its own test, which makes it hard to follow and to change safely 112:22 [warning] complexity.function - AddressMultiField::renderMap has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 118 code lines 82:1 [warning] duplication.repeated_block - lines 82 to 84 repeat lines 50 to 52 (105 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 38 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/AudioField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 74 code lines NamingConvention: 100 (A), based on 17 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/AudioMultiField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 6 functions Duplication: 100 (A), based on 110 code lines NamingConvention: 100 (A), based on 22 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/BarcodeField.php (other) CodeLength: not graded 20:22 [warning] length.function - BarcodeField::barcodeGenerator has 88 lines in its body, above 50 CyclomaticComplexity: 81 (B), based on 4 functions 20:22 [warning] complexity.function - BarcodeField::barcodeGenerator has a cyclomatic complexity of 15, moderate risk (above 10): each of its 15 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 121 code lines NamingConvention: 100 (A), based on 20 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/CheckboxField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 54 code lines NamingConvention: 100 (A), based on 18 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/CloneField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 6 functions Duplication: 100 (A), based on 110 code lines NamingConvention: 100 (A), based on 21 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/ColorField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 38 code lines 37:1 [warning] duplication.repeated_block - lines 37 to 40 repeat lines 30 to 33 (60 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/CountryField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 51 code lines 36:1 [warning] duplication.repeated_block - lines 36 to 37 repeat lines 31 to 32 (55 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 13 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/CurrencyField.php (other) CodeLength: not graded 15:21 [error] length.function - CurrencyField::render has 108 lines in its body, above 100 CyclomaticComplexity: 72 (C), based on 4 functions 15:21 [warning] complexity.function - CurrencyField::render has a cyclomatic complexity of 20, moderate risk (above 10): each of its 20 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 101 code lines 83:1 [warning] duplication.repeated_block - lines 83 to 90 repeat lines 59 to 66 (84 tokens); repeated code has to be fixed in every copy 100:1 [warning] duplication.repeated_block - lines 100 to 108 repeat lines 75 to 83 (76 tokens); repeated code has to be fixed in every copy 108:1 [warning] duplication.repeated_block - lines 108 to 115 repeat lines 59 to 66 (84 tokens); repeated code has to be fixed in every copy NamingConvention: 95 (A), based on 20 names 61:45 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/DateField.php (other) CodeLength: not graded CyclomaticComplexity: 83 (B), based on 3 functions 24:21 [warning] complexity.function - DateField::render has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 68 code lines NamingConvention: 100 (A), based on 15 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/DateRangeField.php (other) CodeLength: not graded CyclomaticComplexity: 85 (B), based on 3 functions 65:22 [warning] complexity.function - DateRangeField::defaultDisplayRange has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 72 code lines NamingConvention: 100 (A), based on 15 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/DateTimeField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 61 code lines NamingConvention: 100 (A), based on 13 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/EditorField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 48 code lines NamingConvention: 100 (A), based on 16 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/EmailField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 29 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/EmbedField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 31 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/FileField.php (other) CodeLength: not graded 15:21 [warning] length.function - FileField::render has 74 lines in its body, above 50 CyclomaticComplexity: 86 (B), based on 5 functions 15:21 [warning] complexity.function - FileField::render has a cyclomatic complexity of 19, moderate risk (above 10): each of its 19 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 129 code lines NamingConvention: 100 (A), based on 31 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/FlexibleContentField.php (other) CodeLength: not graded 68:22 [warning] length.function - FlexibleContentField::blocksList has 54 lines in its body, above 50 127:22 [warning] length.function - FlexibleContentField::getNestedBlockDefaultData has 59 lines in its body, above 50 210:22 [warning] length.function - FlexibleContentField::addButton has 90 lines in its body, above 50 CyclomaticComplexity: 76 (C), based on 6 functions 68:22 [warning] complexity.function - FlexibleContentField::blocksList has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely 127:22 [warning] complexity.function - FlexibleContentField::getNestedBlockDefaultData has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely 210:22 [warning] complexity.function - FlexibleContentField::addButton has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 207 code lines NamingConvention: 97 (A), based on 34 names 163:14 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/GalleryField.php (other) CodeLength: not graded 155:22 [warning] length.function - GalleryField::getGalleryPreview has 64 lines in its body, above 50 CyclomaticComplexity: 85 (B), based on 6 functions 38:22 [warning] complexity.function - GalleryField::renderGallery has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely 101:22 [warning] complexity.function - GalleryField::renderGalleryInRepeater has a cyclomatic complexity of 14, moderate risk (above 10): each of its 14 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 154 code lines 93:1 [warning] duplication.repeated_block - lines 93 to 111 repeat lines 30 to 48 (137 tokens); repeated code has to be fixed in every copy 211:1 [warning] duplication.repeated_block - lines 211 to 215 repeat lines 177 to 181 (58 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 27 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/HTMLField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 48 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/IDField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 38 code lines NamingConvention: 100 (A), based on 9 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/IconField.php (other) CodeLength: not graded 35:24 [warning] length.function - IconField::renderIconPicker has 56 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 5 functions Duplication: 100 (A), based on 120 code lines NamingConvention: 100 (A), based on 16 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/ImageField.php (other) CodeLength: not graded 12:21 [warning] length.function - ImageField::render has 56 lines in its body, above 50 CyclomaticComplexity: 74 (C), based on 2 functions 12:21 [warning] complexity.function - ImageField::render has a cyclomatic complexity of 15, moderate risk (above 10): each of its 15 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 58 code lines NamingConvention: 100 (A), based on 15 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/ImageSliderField.php (other) CodeLength: not graded 69:22 [warning] length.function - ImageSliderField::getSliderPreview has 93 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 6 functions Duplication: 85 (B), based on 124 code lines 238:1 [warning] duplication.repeated_block - lines 238 to 242 repeat lines 43 to 48 (51 tokens); repeated code has to be fixed in every copy 246:1 [warning] duplication.repeated_block - lines 246 to 252 repeat lines 49 to 55 (92 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 30 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/LengthField.php (other) CodeLength: not graded 12:21 [error] length.function - LengthField::render has 108 lines in its body, above 100 CyclomaticComplexity: 72 (C), based on 4 functions 12:21 [warning] complexity.function - LengthField::render has a cyclomatic complexity of 20, moderate risk (above 10): each of its 20 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 101 code lines 82:1 [warning] duplication.repeated_block - lines 82 to 87 repeat lines 58 to 63 (79 tokens); repeated code has to be fixed in every copy 97:1 [warning] duplication.repeated_block - lines 97 to 105 repeat lines 72 to 80 (76 tokens); repeated code has to be fixed in every copy 105:1 [warning] duplication.repeated_block - lines 105 to 112 repeat lines 80 to 87 (84 tokens); repeated code has to be fixed in every copy NamingConvention: 95 (A), based on 20 names 58:58 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/ListField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 49 code lines NamingConvention: 100 (A), based on 9 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/MessageField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 25 code lines NamingConvention: 100 (A), based on 10 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/NumberField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 39 code lines NamingConvention: 100 (A), based on 9 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/PasswordField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 26 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/PhoneField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 6 functions Duplication: 100 (A), based on 89 code lines 36:1 [warning] duplication.repeated_block - lines 36 to 39 repeat lines 31 to 34 (134 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 15 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/PostField.php (other) CodeLength: not graded 20:21 [warning] length.function - PostField::render has 57 lines in its body, above 50 84:22 [warning] length.function - PostField::checkIfTheFieldCanBeRendered has 75 lines in its body, above 50 224:24 [error] length.function - PostField::renderRelationFieldSelector has 129 lines in its body, above 100 371:22 [warning] length.function - PostField::addPostLink has 63 lines in its body, above 50 450:22 [warning] length.function - PostField::renderSelect2 has 88 lines in its body, above 50 14:7 [warning] length.class - PostField has 549 lines, above 500 for a other CyclomaticComplexity: 50 (F), based on 9 functions 20:21 [warning] complexity.function - PostField::render has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely 84:22 [error] complexity.function - PostField::checkIfTheFieldCanBeRendered has a cyclomatic complexity of 22, high risk (above 10): each of its 22 paths needs its own test, which makes it hard to follow and to change safely 224:24 [error] complexity.function - PostField::renderRelationFieldSelector has a cyclomatic complexity of 37, high risk (above 10): each of its 37 paths needs its own test, which makes it hard to follow and to change safely 450:22 [error] complexity.function - PostField::renderSelect2 has a cyclomatic complexity of 26, high risk (above 10): each of its 26 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 361 code lines 450:1 [warning] duplication.repeated_block - lines 450 to 462 repeat lines 224 to 236 (60 tokens); repeated code has to be fixed in every copy 478:1 [warning] duplication.repeated_block - lines 478 to 485 repeat lines 254 to 261 (93 tokens); repeated code has to be fixed in every copy 494:1 [warning] duplication.repeated_block - lines 494 to 507 repeat lines 264 to 277 (70 tokens); repeated code has to be fixed in every copy 507:1 [warning] duplication.repeated_block - lines 507 to 530 repeat lines 281 to 304 (104 tokens); repeated code has to be fixed in every copy 534:1 [warning] duplication.repeated_block - lines 534 to 548 repeat lines 349 to 363 (79 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 58 names Security: not graded 107:34 [warning] security.unsanitized_input - read of `$_GET['page']` with no sanitizer around it; sanitize request input where you read it 118:66 [warning] security.unsanitized_input - read of `$_GET['post']` with no sanitizer around it; sanitize request input where you read it 131:29 [warning] security.unsanitized_input - read of `$_GET['post_type']` with no sanitizer around it; sanitize request input where you read it 145:29 [warning] security.unsanitized_input - read of `$_GET['taxonomy']` with no sanitizer around it; sanitize request input where you read it advanced-custom-post-type/src/Core/Generators/Meta/Fields/PostObjectField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 30 code lines NamingConvention: 100 (A), based on 9 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/PostObjectMultiField.php (other) CodeLength: not graded CyclomaticComplexity: 70 (C), based on 1 function 13:21 [warning] complexity.function - PostObjectMultiField::render has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 38 code lines NamingConvention: 100 (A), based on 11 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/QRCodeField.php (other) CodeLength: not graded 56:22 [warning] length.function - QRCodeField::QRCodeGenerator has 69 lines in its body, above 50 CyclomaticComplexity: 83 (B), based on 4 functions 56:22 [warning] complexity.function - QRCodeField::QRCodeGenerator has a cyclomatic complexity of 15, moderate risk (above 10): each of its 15 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 105 code lines NamingConvention: 90 (A), based on 20 names 15:21 [warning] naming.inconsistent_style - method `render` is camelCase, while most methods in this file are PascalCase (2 of 4 names); mixed styles make code harder to scan 152:22 [warning] naming.inconsistent_style - method `enqueueAssets` is camelCase, while most methods in this file are PascalCase (2 of 4 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/RadioField.php (other) CodeLength: not graded CyclomaticComplexity: 70 (C), based on 1 function 14:21 [warning] complexity.function - RadioField::render has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 42 code lines 46:1 [warning] duplication.repeated_block - lines 46 to 52 repeat lines 36 to 42 (111 tokens); repeated code has to be fixed in every copy 52:1 [warning] duplication.repeated_block - lines 52 to 54 repeat lines 42 to 44 (67 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 10 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/RangeField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 68 code lines NamingConvention: 94 (A), based on 16 names 15:10 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/RatingField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 56 code lines NamingConvention: 100 (A), based on 12 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/RepeaterField.php (other) CodeLength: not graded 19:21 [error] length.function - RepeaterField::render has 106 lines in its body, above 100 327:22 [warning] length.function - RepeaterField::getNestedFieldDefaultData has 64 lines in its body, above 50 CyclomaticComplexity: 70 (C), based on 7 functions 19:21 [error] complexity.function - RepeaterField::render has a cyclomatic complexity of 21, high risk (above 10): each of its 21 paths needs its own test, which makes it hard to follow and to change safely 327:22 [warning] complexity.function - RepeaterField::getNestedFieldDefaultData has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely Duplication: 0 (F), based on 262 code lines 51:1 [warning] duplication.repeated_block - lines 51 to 60 repeat lines 39 to 48 (67 tokens); repeated code has to be fixed in every copy 83:1 [warning] duplication.repeated_block - lines 83 to 89 repeat lines 70 to 76 (53 tokens); repeated code has to be fixed in every copy 236:1 [warning] duplication.repeated_block - lines 236 to 247 repeat lines 174 to 185 (52 tokens); repeated code has to be fixed in every copy 266:1 [warning] duplication.repeated_block - lines 266 to 307 repeat lines 214 to 255 (146 tokens); repeated code has to be fixed in every copy 309:1 [warning] duplication.repeated_block - lines 309 to 327 repeat lines 256 to 281 (76 tokens); repeated code has to be fixed in every copy NamingConvention: 96 (A), based on 28 names 342:14 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/SelectField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 29 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/SelectMultiField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 28 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/TableField.php (other) CodeLength: not graded 50:21 [warning] length.function - TableField::render has 62 lines in its body, above 50 295:22 [warning] length.function - TableField::createTableModal has 98 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 13 functions Duplication: 100 (A), based on 297 code lines NamingConvention: 97 (A), based on 31 names 23:10 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/TermObjectField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 23 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/TermObjectMultiField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 31 code lines NamingConvention: 100 (A), based on 10 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/TextField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 30 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/TextareaField.php (other) CodeLength: not graded CyclomaticComplexity: 90 (A), based on 2 functions 54:22 [warning] complexity.function - TextareaField::characterCounter has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 45 code lines NamingConvention: 100 (A), based on 13 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/TimeField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 61 code lines NamingConvention: 100 (A), based on 13 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/ToggleField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 43 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/UrlField.php (other) CodeLength: not graded 12:21 [warning] length.function - UrlField::render has 70 lines in its body, above 50 CyclomaticComplexity: 84 (B), based on 4 functions 12:21 [warning] complexity.function - UrlField::render has a cyclomatic complexity of 14, moderate risk (above 10): each of its 14 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 109 code lines NamingConvention: 100 (A), based on 22 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/UserField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 23 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/UserMultiField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 31 code lines NamingConvention: 100 (A), based on 10 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/VideoField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 39 code lines NamingConvention: 100 (A), based on 9 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/VideoMultiField.php (other) CodeLength: not graded 135:22 [warning] length.function - VideoMultiField::getVideoGalleryPreview has 58 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 6 functions Duplication: 100 (A), based on 133 code lines 186:1 [warning] duplication.repeated_block - lines 186 to 186 repeat lines 151 to 151 (51 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 24 names Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/Fields/WeightField.php (other) CodeLength: not graded 15:21 [error] length.function - WeightField::render has 108 lines in its body, above 100 CyclomaticComplexity: 35 (F), based on 4 functions 15:21 [error] complexity.function - WeightField::render has a cyclomatic complexity of 23, high risk (above 10): each of its 23 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 101 code lines 85:1 [warning] duplication.repeated_block - lines 85 to 90 repeat lines 61 to 66 (96 tokens); repeated code has to be fixed in every copy 100:1 [warning] duplication.repeated_block - lines 100 to 108 repeat lines 75 to 83 (76 tokens); repeated code has to be fixed in every copy 108:1 [warning] duplication.repeated_block - lines 108 to 115 repeat lines 83 to 90 (101 tokens); repeated code has to be fixed in every copy NamingConvention: 95 (A), based on 20 names 61:58 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/RepeaterFieldGenerator.php (other) CodeLength: not graded 230:22 [warning] length.function - RepeaterFieldGenerator::generateElementWithBlockLayout has 58 lines in its body, above 50 298:22 [warning] length.function - RepeaterFieldGenerator::generateElementWithRowLayout has 78 lines in its body, above 50 CyclomaticComplexity: 92 (A), based on 11 functions 298:22 [warning] complexity.function - RepeaterFieldGenerator::generateElementWithRowLayout has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 234 code lines 243:1 [warning] duplication.repeated_block - lines 243 to 248 repeat lines 184 to 189 (57 tokens); repeated code has to be fixed in every copy 250:1 [warning] duplication.repeated_block - lines 250 to 258 repeat lines 189 to 197 (58 tokens); repeated code has to be fixed in every copy 268:1 [warning] duplication.repeated_block - lines 268 to 274 repeat lines 204 to 210 (51 tokens); repeated code has to be fixed in every copy 353:1 [warning] duplication.repeated_block - lines 353 to 384 repeat lines 265 to 298 (94 tokens); repeated code has to be fixed in every copy NamingConvention: 98 (A), based on 54 names 110:36 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/TableFieldGenerator.php (other) CodeLength: not graded 59:22 [warning] length.function - TableFieldGenerator::validateJSON has 75 lines in its body, above 50 208:22 [warning] length.function - TableFieldGenerator::createVerticalTable has 73 lines in its body, above 50 293:22 [warning] length.function - TableFieldGenerator::createHorizontalTable has 74 lines in its body, above 50 375:22 [warning] length.function - TableFieldGenerator::applyCSStoCell has 52 lines in its body, above 50 CyclomaticComplexity: 78 (C), based on 10 functions 59:22 [warning] complexity.function - TableFieldGenerator::validateJSON has a cyclomatic complexity of 19, moderate risk (above 10): each of its 19 paths needs its own test, which makes it hard to follow and to change safely 208:22 [warning] complexity.function - TableFieldGenerator::createVerticalTable has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely 375:22 [error] complexity.function - TableFieldGenerator::applyCSStoCell has a cyclomatic complexity of 24, high risk (above 10): each of its 24 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 295 code lines 256:1 [warning] duplication.repeated_block - lines 256 to 275 repeat lines 227 to 246 (153 tokens); repeated code has to be fixed in every copy 329:1 [warning] duplication.repeated_block - lines 329 to 335 repeat lines 223 to 229 (56 tokens); repeated code has to be fixed in every copy 336:1 [warning] duplication.repeated_block - lines 336 to 338 repeat lines 317 to 319 (53 tokens); repeated code has to be fixed in every copy 339:1 [warning] duplication.repeated_block - lines 339 to 354 repeat lines 243 to 258 (58 tokens); repeated code has to be fixed in every copy 355:1 [warning] duplication.repeated_block - lines 355 to 361 repeat lines 336 to 342 (68 tokens); repeated code has to be fixed in every copy NamingConvention: 98 (A), based on 47 names 159:10 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/Generators/Meta/WooCommerceProductDataGenerator.php (other) CodeLength: not graded 105:21 [error] length.function - WooCommerceProductDataGenerator::generateWooCommerceProductDataPanels has 243 lines in its body, above 100 18:7 [warning] length.class - WooCommerceProductDataGenerator has 528 lines, above 500 for a other CyclomaticComplexity: 60 (D), based on 13 functions 105:21 [error] complexity.function - WooCommerceProductDataGenerator::generateWooCommerceProductDataPanels has a cyclomatic complexity of 36, high risk (above 10): each of its 36 paths needs its own test, which makes it hard to follow and to change safely Duplication: 0 (F), based on 364 code lines 159:1 [warning] duplication.repeated_block - lines 159 to 169 repeat lines 143 to 153 (66 tokens); repeated code has to be fixed in every copy 173:1 [warning] duplication.repeated_block - lines 173 to 179 repeat lines 157 to 163 (55 tokens); repeated code has to be fixed in every copy 192:1 [warning] duplication.repeated_block - lines 192 to 197 repeat lines 175 to 180 (53 tokens); repeated code has to be fixed in every copy 209:1 [warning] duplication.repeated_block - lines 209 to 215 repeat lines 157 to 163 (55 tokens); repeated code has to be fixed in every copy 226:1 [warning] duplication.repeated_block - lines 226 to 248 repeat lines 157 to 179 (144 tokens); repeated code has to be fixed in every copy 248:1 [warning] duplication.repeated_block - lines 248 to 265 repeat lines 179 to 196 (95 tokens); repeated code has to be fixed in every copy 269:1 [warning] duplication.repeated_block - lines 269 to 284 repeat lines 164 to 179 (84 tokens); repeated code has to be fixed in every copy 284:1 [warning] duplication.repeated_block - lines 284 to 301 repeat lines 248 to 265 (98 tokens); repeated code has to be fixed in every copy 301:1 [warning] duplication.repeated_block - lines 301 to 320 repeat lines 265 to 284 (116 tokens); repeated code has to be fixed in every copy 320:1 [warning] duplication.repeated_block - lines 320 to 337 repeat lines 248 to 265 (98 tokens); repeated code has to be fixed in every copy NamingConvention: 81 (B), based on 47 names 18:7 [warning] naming.too_long - class `WooCommerceProductDataGenerator` is 31 characters (limit 30); very long names make code hard to read 36:58 [warning] naming.inconsistent_style - parameter `WooCommerceProductData` is PascalCase, while most variables and parameters in this file are camelCase (7 of 32 names); mixed styles make code harder to scan 63:21 [warning] naming.too_long - method `generateWooCommerceProductDataTabs` is 34 characters (limit 30); very long names make code hard to read 63:63 [warning] naming.inconsistent_style - parameter `original_tabs` is snake_case, while most variables and parameters in this file are camelCase (7 of 32 names); mixed styles make code harder to scan 105:21 [warning] naming.too_long - method `generateWooCommerceProductDataPanels` is 36 characters (limit 30); very long names make code hard to read 115:22 [warning] naming.inconsistent_style - variable `field_value` is snake_case, while most variables and parameters in this file are camelCase (7 of 32 names); mixed styles make code harder to scan 439:35 [warning] naming.inconsistent_style - parameter `post_id` is snake_case, while most variables and parameters in this file are camelCase (7 of 32 names); mixed styles make code harder to scan 465:36 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds 508:21 [warning] naming.too_long - method `generateWooCommerceProductTabsContent` is 37 characters (limit 30); very long names make code hard to read Security: not graded 95:19 [warning] security.unescaped_output - echo of `$style` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 111:28 [warning] security.unescaped_output - echo of `$sluggedName` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 522:17 [warning] security.unescaped_output - echo of `$productDataModel->getName()` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 533:25 [warning] security.unescaped_output - echo of `$label` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 534:25 [warning] security.unescaped_output - echo of `$field` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) advanced-custom-post-type/src/Core/Generators/OptionPage/OptionPageGenerator.php (other) CodeLength: not graded 146:21 [error] length.function - OptionPageGenerator::renderPage has 122 lines in its body, above 100 CyclomaticComplexity: 53 (F), based on 8 functions 146:21 [error] complexity.function - OptionPageGenerator::renderPage has a cyclomatic complexity of 24, high risk (above 10): each of its 24 paths needs its own test, which makes it hard to follow and to change safely Duplication: 85 (B), based on 155 code lines 103:1 [warning] duplication.repeated_block - lines 103 to 110 repeat lines 81 to 88 (55 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 34 names Security: not graded 267:9 [warning] security.unescaped_output - echo of `$return` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) advanced-custom-post-type/src/Core/Generators/OptionPage/OptionPageMetaBoxFieldGenerator.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 45 code lines NamingConvention: 94 (A), based on 17 names 22:7 [warning] naming.too_long - class `OptionPageMetaBoxFieldGenerator` is 31 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/Generators/OptionPage/OptionPageMetaBoxGenerator.php (other) CodeLength: not graded 64:21 [warning] length.function - OptionPageMetaBoxGenerator::render has 62 lines in its body, above 50 CyclomaticComplexity: 81 (B), based on 4 functions 64:21 [warning] complexity.function - OptionPageMetaBoxGenerator::render has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 89 code lines NamingConvention: 100 (A), based on 29 names Security: not graded 77:56 [warning] security.unsanitized_input - read of `$_GET['page']` with no sanitizer around it; sanitize request input where you read it 78:57 [warning] security.unsanitized_input - read of `$_GET['page']` with no sanitizer around it; sanitize request input where you read it advanced-custom-post-type/src/Core/Generators/OptionPage/OptionPageMetaGroupGenerator.php (other) CodeLength: not graded 151:22 [warning] length.function - OptionPageMetaGroupGenerator::horizontalTabs has 54 lines in its body, above 50 210:22 [warning] length.function - OptionPageMetaGroupGenerator::verticalTabs has 55 lines in its body, above 50 CyclomaticComplexity: 86 (B), based on 9 functions 151:22 [warning] complexity.function - OptionPageMetaGroupGenerator::horizontalTabs has a cyclomatic complexity of 16, moderate risk (above 10): each of its 16 paths needs its own test, which makes it hard to follow and to change safely 210:22 [warning] complexity.function - OptionPageMetaGroupGenerator::verticalTabs has a cyclomatic complexity of 16, moderate risk (above 10): each of its 16 paths needs its own test, which makes it hard to follow and to change safely Duplication: 0 (F), based on 196 code lines 155:1 [warning] duplication.repeated_block - lines 155 to 164 repeat lines 108 to 117 (78 tokens); repeated code has to be fixed in every copy 164:1 [warning] duplication.repeated_block - lines 164 to 166 repeat lines 117 to 119 (75 tokens); repeated code has to be fixed in every copy 175:1 [warning] duplication.repeated_block - lines 175 to 184 repeat lines 108 to 117 (78 tokens); repeated code has to be fixed in every copy 185:1 [warning] duplication.repeated_block - lines 185 to 197 repeat lines 124 to 136 (71 tokens); repeated code has to be fixed in every copy 216:1 [warning] duplication.repeated_block - lines 216 to 225 repeat lines 108 to 117 (78 tokens); repeated code has to be fixed in every copy 225:1 [warning] duplication.repeated_block - lines 225 to 227 repeat lines 117 to 119 (75 tokens); repeated code has to be fixed in every copy 234:1 [warning] duplication.repeated_block - lines 234 to 243 repeat lines 108 to 117 (78 tokens); repeated code has to be fixed in every copy 243:1 [warning] duplication.repeated_block - lines 243 to 261 repeat lines 184 to 202 (135 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 36 names Security: not graded advanced-custom-post-type/src/Core/Generators/Table/TableRecordColumnFieldGenerator.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 42 code lines NamingConvention: 93 (A), based on 15 names 19:7 [warning] naming.too_long - class `TableRecordColumnFieldGenerator` is 31 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/Generators/Table/TableRecordPageGenerator.php (other) CodeLength: not graded 91:21 [warning] length.function - TableRecordPageGenerator::renderPage has 86 lines in its body, above 50 188:24 [error] length.function - TableRecordPageGenerator::heading has 131 lines in its body, above 100 372:24 [error] length.function - TableRecordPageGenerator::handleBulkActions has 203 lines in its body, above 100 716:24 [warning] length.function - TableRecordPageGenerator::exportRecords has 71 lines in its body, above 50 792:24 [warning] length.function - TableRecordPageGenerator::handleImport has 99 lines in its body, above 50 900:24 [warning] length.function - TableRecordPageGenerator::handleUpdateOrCreate has 94 lines in its body, above 50 1174:24 [error] length.function - TableRecordPageGenerator::locationRuleOptions has 446 lines in its body, above 100 41:7 [error] length.class - TableRecordPageGenerator has 1581 lines, above 1000 for a other 1:1 [error] length.file - the file has 1621 lines, above 1200 for a other CyclomaticComplexity: 49 (F), based on 25 functions 91:21 [warning] complexity.function - TableRecordPageGenerator::renderPage has a cyclomatic complexity of 20, moderate risk (above 10): each of its 20 paths needs its own test, which makes it hard to follow and to change safely 372:24 [error] complexity.function - TableRecordPageGenerator::handleBulkActions has a cyclomatic complexity of 48, high risk (above 10): each of its 48 paths needs its own test, which makes it hard to follow and to change safely 792:24 [warning] complexity.function - TableRecordPageGenerator::handleImport has a cyclomatic complexity of 17, moderate risk (above 10): each of its 17 paths needs its own test, which makes it hard to follow and to change safely 900:24 [error] complexity.function - TableRecordPageGenerator::handleUpdateOrCreate has a cyclomatic complexity of 28, high risk (above 10): each of its 28 paths needs its own test, which makes it hard to follow and to change safely 1174:24 [error] complexity.function - TableRecordPageGenerator::locationRuleOptions has a cyclomatic complexity of 152, untestable risk (above 10): each of its 152 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 1157 code lines 309:1 [warning] duplication.repeated_block - lines 309 to 315 repeat lines 298 to 304 (65 tokens); repeated code has to be fixed in every copy 495:1 [warning] duplication.repeated_block - lines 495 to 501 repeat lines 476 to 482 (56 tokens); repeated code has to be fixed in every copy 617:1 [warning] duplication.repeated_block - lines 617 to 621 repeat lines 585 to 589 (52 tokens); repeated code has to be fixed in every copy 629:1 [warning] duplication.repeated_block - lines 629 to 646 repeat lines 600 to 617 (51 tokens); repeated code has to be fixed in every copy 646:1 [warning] duplication.repeated_block - lines 646 to 650 repeat lines 585 to 589 (52 tokens); repeated code has to be fixed in every copy 922:1 [warning] duplication.repeated_block - lines 922 to 944 repeat lines 467 to 489 (145 tokens); repeated code has to be fixed in every copy 1212:1 [warning] duplication.repeated_block - lines 1212 to 1217 repeat lines 1196 to 1201 (51 tokens); repeated code has to be fixed in every copy 1224:1 [warning] duplication.repeated_block - lines 1224 to 1245 repeat lines 1202 to 1223 (127 tokens); repeated code has to be fixed in every copy 1250:1 [warning] duplication.repeated_block - lines 1250 to 1261 repeat lines 1206 to 1217 (58 tokens); repeated code has to be fixed in every copy 1265:1 [warning] duplication.repeated_block - lines 1265 to 1278 repeat lines 1248 to 1261 (81 tokens); repeated code has to be fixed in every copy 1291:1 [warning] duplication.repeated_block - lines 1291 to 1304 repeat lines 1248 to 1261 (90 tokens); repeated code has to be fixed in every copy 1381:1 [warning] duplication.repeated_block - lines 1381 to 1395 repeat lines 1264 to 1278 (86 tokens); repeated code has to be fixed in every copy 1399:1 [warning] duplication.repeated_block - lines 1399 to 1408 repeat lines 1204 to 1213 (50 tokens); repeated code has to be fixed in every copy 1483:1 [warning] duplication.repeated_block - lines 1483 to 1496 repeat lines 1470 to 1483 (124 tokens); repeated code has to be fixed in every copy 1496:1 [warning] duplication.repeated_block - lines 1496 to 1507 repeat lines 1470 to 1481 (97 tokens); repeated code has to be fixed in every copy 1518:1 [warning] duplication.repeated_block - lines 1518 to 1528 repeat lines 1472 to 1482 (87 tokens); repeated code has to be fixed in every copy 1528:1 [warning] duplication.repeated_block - lines 1528 to 1540 repeat lines 1516 to 1528 (105 tokens); repeated code has to be fixed in every copy 1541:1 [warning] duplication.repeated_block - lines 1541 to 1553 repeat lines 1470 to 1482 (105 tokens); repeated code has to be fixed in every copy 1553:1 [warning] duplication.repeated_block - lines 1553 to 1565 repeat lines 1470 to 1482 (105 tokens); repeated code has to be fixed in every copy 1565:1 [warning] duplication.repeated_block - lines 1565 to 1577 repeat lines 1470 to 1482 (105 tokens); repeated code has to be fixed in every copy 1579:1 [warning] duplication.repeated_block - lines 1579 to 1586 repeat lines 1474 to 1481 (72 tokens); repeated code has to be fixed in every copy 1596:1 [warning] duplication.repeated_block - lines 1596 to 1603 repeat lines 1577 to 1584 (78 tokens); repeated code has to be fixed in every copy NamingConvention: 97 (A), based on 156 names 455:68 [warning] naming.too_short - parameter `v` is 1 character (at least 2); a one letter name hides its meaning 476:87 [warning] naming.generic - variable `val` is a generic name; it says nothing about what it holds 910:14 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds 961:14 [warning] naming.too_short - variable `d` is 1 character (at least 2); a one letter name hides its meaning 1306:34 [warning] naming.inconsistent_style - variable `taxonomy_object` is snake_case, while most variables and parameters in this file are camelCase (61 of 128 names); mixed styles make code harder to scan Security: not graded 161:9 [warning] security.unescaped_output - echo of `$pageWidth` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 162:9 [warning] security.unescaped_output - echo of `$this->heading($action)` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 168:13 [warning] security.unescaped_output - echo of `$listView->render($permissions)` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 170:13 [warning] security.unescaped_output - echo of `$this->renderImportForm()` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 173:13 [warning] security.unescaped_output - echo of `$formView->render($action, $recordId, $permissions)` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 748:21 [warning] security.unescaped_output - echo of `JSONFormatter::format($records)` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 780:25 [warning] security.unescaped_output - echo of `$tableName` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 1360:63 [info] security.sql_interpolated - query `$wpdb->prepare` builds its SQL from `$placeholders`; pass values through prepare with placeholders to prevent SQL injection (suppressed by `phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared`) advanced-custom-post-type/src/Core/Generators/Table/Views/TableRecordFormView.php (other) CodeLength: not graded 50:21 [warning] length.function - TableRecordFormView::render has 55 lines in its body, above 50 234:22 [warning] length.function - TableRecordFormView::locationSelector has 76 lines in its body, above 50 348:22 [warning] length.function - TableRecordFormView::collectPostTypes has 80 lines in its body, above 50 23:7 [warning] length.class - TableRecordFormView has 842 lines, above 500 for a other 1:1 [warning] length.file - the file has 864 lines, above 600 for a other CyclomaticComplexity: 83 (B), based on 19 functions 134:22 [warning] complexity.function - TableRecordFormView::body has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely 234:22 [warning] complexity.function - TableRecordFormView::locationSelector has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely 348:22 [error] complexity.function - TableRecordFormView::collectPostTypes has a cyclomatic complexity of 34, high risk (above 10): each of its 34 paths needs its own test, which makes it hard to follow and to change safely 434:22 [warning] complexity.function - TableRecordFormView::collectTaxonomies has a cyclomatic complexity of 20, moderate risk (above 10): each of its 20 paths needs its own test, which makes it hard to follow and to change safely 540:22 [warning] complexity.function - TableRecordFormView::collectUserIds has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 631 code lines 427:1 [warning] duplication.repeated_block - lines 427 to 446 repeat lines 341 to 360 (95 tokens); repeated code has to be fixed in every copy 448:1 [warning] duplication.repeated_block - lines 448 to 458 repeat lines 391 to 401 (57 tokens); repeated code has to be fixed in every copy 526:1 [warning] duplication.repeated_block - lines 526 to 547 repeat lines 499 to 520 (74 tokens); repeated code has to be fixed in every copy 661:1 [warning] duplication.repeated_block - lines 661 to 693 repeat lines 605 to 637 (197 tokens); repeated code has to be fixed in every copy 701:1 [warning] duplication.repeated_block - lines 701 to 725 repeat lines 611 to 637 (131 tokens); repeated code has to be fixed in every copy 732:1 [warning] duplication.repeated_block - lines 732 to 741 repeat lines 698 to 707 (77 tokens); repeated code has to be fixed in every copy 742:1 [warning] duplication.repeated_block - lines 742 to 760 repeat lines 618 to 637 (73 tokens); repeated code has to be fixed in every copy 784:1 [warning] duplication.repeated_block - lines 784 to 814 repeat lines 607 to 637 (185 tokens); repeated code has to be fixed in every copy 831:1 [warning] duplication.repeated_block - lines 831 to 838 repeat lines 782 to 790 (74 tokens); repeated code has to be fixed in every copy NamingConvention: 96 (A), based on 76 names 138:35 [warning] naming.too_short - parameter `c` is 1 character (at least 2); a one letter name hides its meaning 324:45 [warning] naming.generic - parameter `obj` is a generic name; it says nothing about what it holds 356:46 [warning] naming.too_short - variable `v` is 1 character (at least 2); a one letter name hides its meaning Security: not graded 115:41 [warning] security.unsanitized_input - read of `$_GET['page']` with no sanitizer around it; sanitize request input where you read it advanced-custom-post-type/src/Core/Generators/Table/Views/TableRecordListView.php (other) CodeLength: not graded 36:21 [warning] length.function - TableRecordListView::render has 76 lines in its body, above 50 174:22 [error] length.function - TableRecordListView::renderBulkField has 178 lines in its body, above 100 428:22 [error] length.function - TableRecordListView::searchForm has 247 lines in its body, above 100 760:22 [warning] length.function - TableRecordListView::tableHeading has 67 lines in its body, above 50 892:22 [warning] length.function - TableRecordListView::tableRow has 93 lines in its body, above 50 24:7 [error] length.class - TableRecordListView has 1095 lines, above 1000 for a other 1:1 [warning] length.file - the file has 1118 lines, above 600 for a other CyclomaticComplexity: 59 (F), based on 17 functions 36:21 [warning] complexity.function - TableRecordListView::render has a cyclomatic complexity of 18, moderate risk (above 10): each of its 18 paths needs its own test, which makes it hard to follow and to change safely 174:22 [error] complexity.function - TableRecordListView::renderBulkField has a cyclomatic complexity of 29, high risk (above 10): each of its 29 paths needs its own test, which makes it hard to follow and to change safely 428:22 [error] complexity.function - TableRecordListView::searchForm has a cyclomatic complexity of 34, high risk (above 10): each of its 34 paths needs its own test, which makes it hard to follow and to change safely 892:22 [error] complexity.function - TableRecordListView::tableRow has a cyclomatic complexity of 21, high risk (above 10): each of its 21 paths needs its own test, which makes it hard to follow and to change safely Duplication: 85 (B), based on 768 code lines 224:1 [warning] duplication.repeated_block - lines 224 to 232 repeat lines 214 to 222 (76 tokens); repeated code has to be fixed in every copy 293:1 [warning] duplication.repeated_block - lines 293 to 296 repeat lines 281 to 284 (51 tokens); repeated code has to be fixed in every copy 298:1 [warning] duplication.repeated_block - lines 298 to 311 repeat lines 285 to 298 (152 tokens); repeated code has to be fixed in every copy 506:1 [warning] duplication.repeated_block - lines 506 to 512 repeat lines 215 to 219 (51 tokens); repeated code has to be fixed in every copy 533:1 [warning] duplication.repeated_block - lines 533 to 536 repeat lines 503 to 506 (53 tokens); repeated code has to be fixed in every copy 569:1 [warning] duplication.repeated_block - lines 569 to 575 repeat lines 563 to 569 (60 tokens); repeated code has to be fixed in every copy 619:1 [warning] duplication.repeated_block - lines 619 to 626 repeat lines 508 to 514 (55 tokens); repeated code has to be fixed in every copy NamingConvention: 96 (A), based on 122 names 42:35 [warning] naming.too_short - parameter `c` is 1 character (at least 2); a one letter name hides its meaning 45:10 [warning] naming.too_short - variable `s` is 1 character (at least 2); a one letter name hides its meaning 81:41 [warning] naming.too_short - parameter `r` is 1 character (at least 2); a one letter name hides its meaning 490:46 [warning] naming.too_short - variable `v` is 1 character (at least 2); a one letter name hides its meaning 914:18 [warning] naming.generic - variable `val` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/Generators/Taxonomy/TaxonomyAdminColumnsGenerator.php (other) CodeLength: not graded 23:28 [error] length.function - TaxonomyAdminColumnsGenerator::addColumns has 148 lines in its body, above 100 CyclomaticComplexity: 39 (F), based on 2 functions 23:28 [error] complexity.function - TaxonomyAdminColumnsGenerator::addColumns has a cyclomatic complexity of 23, high risk (above 10): each of its 23 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 108 code lines 56:1 [warning] duplication.repeated_block - lines 56 to 61 repeat lines 39 to 44 (57 tokens); repeated code has to be fixed in every copy 72:1 [warning] duplication.repeated_block - lines 72 to 80 repeat lines 36 to 43 (51 tokens); repeated code has to be fixed in every copy 82:1 [warning] duplication.repeated_block - lines 82 to 97 repeat lines 43 to 56 (64 tokens); repeated code has to be fixed in every copy NamingConvention: 96 (A), based on 25 names 116:14 [warning] naming.inconsistent_style - variable `current_screen` is snake_case, while most variables and parameters in this file are camelCase (13 of 22 names); mixed styles make code harder to scan Security: not graded 66:33 [warning] security.unescaped_output - echo of `do_shortcode('[acpt_tax admin_view="true" preview="true" tid="'.$termId.'" bo...` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 197:29 [warning] security.unescaped_output - echo of `self::generateQuickEditField($key, $label, $value, $metaBoxFieldModel)` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) advanced-custom-post-type/src/Core/Generators/Taxonomy/TaxonomyGenerator.php (other) CodeLength: not graded 142:21 [error] length.function - TaxonomyGenerator::registerTaxonomy has 156 lines in its body, above 100 CyclomaticComplexity: 37 (F), based on 3 functions 142:21 [error] complexity.function - TaxonomyGenerator::registerTaxonomy has a cyclomatic complexity of 23, high risk (above 10): each of its 23 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 236 code lines 269:1 [warning] duplication.repeated_block - lines 269 to 274 repeat lines 260 to 265 (55 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 20 names Security: not graded advanced-custom-post-type/src/Core/Generators/Taxonomy/TaxonomyMetaBoxFieldGenerator.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 42 code lines NamingConvention: 100 (A), based on 15 names Security: not graded advanced-custom-post-type/src/Core/Generators/Taxonomy/TaxonomyMetaBoxGenerator.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 6 functions Duplication: 40 (F), based on 74 code lines 101:1 [warning] duplication.repeated_block - lines 101 to 109 repeat lines 77 to 85 (53 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 15 names Security: not graded 126:17 [warning] security.unescaped_output - echo of `$generator->render()` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) advanced-custom-post-type/src/Core/Generators/Taxonomy/TaxonomyMetaGroupGenerator.php (other) CodeLength: not graded 83:22 [warning] length.function - TaxonomyMetaGroupGenerator::standardView has 79 lines in its body, above 50 212:22 [warning] length.function - TaxonomyMetaGroupGenerator::horizontalTabs has 55 lines in its body, above 50 272:22 [warning] length.function - TaxonomyMetaGroupGenerator::verticalTabs has 55 lines in its body, above 50 CyclomaticComplexity: 71 (C), based on 10 functions 83:22 [error] complexity.function - TaxonomyMetaGroupGenerator::standardView has a cyclomatic complexity of 22, high risk (above 10): each of its 22 paths needs its own test, which makes it hard to follow and to change safely 212:22 [warning] complexity.function - TaxonomyMetaGroupGenerator::horizontalTabs has a cyclomatic complexity of 16, moderate risk (above 10): each of its 16 paths needs its own test, which makes it hard to follow and to change safely 272:22 [warning] complexity.function - TaxonomyMetaGroupGenerator::verticalTabs has a cyclomatic complexity of 16, moderate risk (above 10): each of its 16 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 251 code lines 171:1 [warning] duplication.repeated_block - lines 171 to 175 repeat lines 102 to 106 (60 tokens); repeated code has to be fixed in every copy 216:1 [warning] duplication.repeated_block - lines 216 to 225 repeat lines 169 to 178 (74 tokens); repeated code has to be fixed in every copy 225:1 [warning] duplication.repeated_block - lines 225 to 227 repeat lines 178 to 180 (75 tokens); repeated code has to be fixed in every copy 236:1 [warning] duplication.repeated_block - lines 236 to 245 repeat lines 169 to 178 (74 tokens); repeated code has to be fixed in every copy 246:1 [warning] duplication.repeated_block - lines 246 to 258 repeat lines 141 to 153 (67 tokens); repeated code has to be fixed in every copy 278:1 [warning] duplication.repeated_block - lines 278 to 287 repeat lines 169 to 178 (74 tokens); repeated code has to be fixed in every copy 287:1 [warning] duplication.repeated_block - lines 287 to 289 repeat lines 178 to 180 (75 tokens); repeated code has to be fixed in every copy 296:1 [warning] duplication.repeated_block - lines 296 to 305 repeat lines 169 to 178 (74 tokens); repeated code has to be fixed in every copy 305:1 [warning] duplication.repeated_block - lines 305 to 309 repeat lines 245 to 249 (61 tokens); repeated code has to be fixed in every copy 309:1 [warning] duplication.repeated_block - lines 309 to 318 repeat lines 188 to 197 (51 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 41 names Security: not graded 113:30 [warning] security.unsanitized_input - read of `$_GET['tag_ID']` with no sanitizer around it; sanitize request input where you read it advanced-custom-post-type/src/Core/Generators/Taxonomy/TaxonomyMetaGroupsGenerator.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 37 code lines NamingConvention: 88 (B), based on 8 names 47:22 [warning] naming.too_long - method `generateForThirdPartyTaxonomies` is 31 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/Generators/User/UserAdminColumnsGenerator.php (other) CodeLength: not graded CyclomaticComplexity: 70 (C), based on 1 function 16:28 [warning] complexity.function - UserAdminColumnsGenerator::addColumns has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 45 code lines 41:1 [warning] duplication.repeated_block - lines 41 to 46 repeat lines 25 to 30 (73 tokens); repeated code has to be fixed in every copy NamingConvention: 92 (A), based on 12 names 41:65 [warning] naming.generic - parameter `val` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/Generators/User/UserMetaBoxGenerator.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 5 functions Duplication: 100 (A), based on 55 code lines NamingConvention: 100 (A), based on 15 names Security: not graded 69:13 [warning] security.unescaped_output - echo of `Translator::translate("ACPT fields")` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 75:21 [warning] security.unescaped_output - echo of `$render` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 87:13 [warning] security.unescaped_output - echo of `Translator::translate('No meta group found.')` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) advanced-custom-post-type/src/Core/Generators/User/UserMetaFieldGenerator.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 42 code lines NamingConvention: 100 (A), based on 15 names Security: not graded advanced-custom-post-type/src/Core/Generators/User/UserMetaGroupGenerator.php (other) CodeLength: not graded 88:22 [warning] length.function - UserMetaGroupGenerator::standardView has 79 lines in its body, above 50 219:22 [warning] length.function - UserMetaGroupGenerator::verticalTabs has 58 lines in its body, above 50 282:22 [warning] length.function - UserMetaGroupGenerator::horizontalTabs has 58 lines in its body, above 50 CyclomaticComplexity: 71 (C), based on 10 functions 88:22 [error] complexity.function - UserMetaGroupGenerator::standardView has a cyclomatic complexity of 21, high risk (above 10): each of its 21 paths needs its own test, which makes it hard to follow and to change safely 219:22 [warning] complexity.function - UserMetaGroupGenerator::verticalTabs has a cyclomatic complexity of 16, moderate risk (above 10): each of its 16 paths needs its own test, which makes it hard to follow and to change safely 282:22 [warning] complexity.function - UserMetaGroupGenerator::horizontalTabs has a cyclomatic complexity of 16, moderate risk (above 10): each of its 16 paths needs its own test, which makes it hard to follow and to change safely Duplication: 0 (F), based on 254 code lines 176:1 [warning] duplication.repeated_block - lines 176 to 181 repeat lines 106 to 111 (54 tokens); repeated code has to be fixed in every copy 230:1 [warning] duplication.repeated_block - lines 230 to 236 repeat lines 178 to 184 (55 tokens); repeated code has to be fixed in every copy 236:1 [warning] duplication.repeated_block - lines 236 to 238 repeat lines 184 to 186 (71 tokens); repeated code has to be fixed in every copy 245:1 [warning] duplication.repeated_block - lines 245 to 255 repeat lines 174 to 184 (80 tokens); repeated code has to be fixed in every copy 256:1 [warning] duplication.repeated_block - lines 256 to 268 repeat lines 191 to 203 (68 tokens); repeated code has to be fixed in every copy 288:1 [warning] duplication.repeated_block - lines 288 to 298 repeat lines 174 to 184 (80 tokens); repeated code has to be fixed in every copy 298:1 [warning] duplication.repeated_block - lines 298 to 300 repeat lines 184 to 186 (71 tokens); repeated code has to be fixed in every copy 309:1 [warning] duplication.repeated_block - lines 309 to 318 repeat lines 227 to 236 (72 tokens); repeated code has to be fixed in every copy 318:1 [warning] duplication.repeated_block - lines 318 to 347 repeat lines 255 to 282 (146 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 41 names Security: not graded advanced-custom-post-type/src/Core/Generators/User/UserMetaGroupsGenerator.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 20 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Core/Generators/Validation/DataValidateAttributes.php (other) CodeLength: not graded 87:29 [warning] length.function - DataValidateAttributes::resolveDataValidateAttributeName has 59 lines in its body, above 50 CyclomaticComplexity: 84 (B), based on 3 functions 87:29 [warning] complexity.function - DataValidateAttributes::resolveDataValidateAttributeName has a cyclomatic complexity of 16, moderate risk (above 10): each of its 16 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 75 code lines NamingConvention: 92 (A), based on 13 names 87:29 [warning] naming.too_long - method `resolveDataValidateAttributeName` is 32 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/Helper/AbstractUnitOfMeasure.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 38 code lines NamingConvention: 100 (A), based on 12 names Security: not graded advanced-custom-post-type/src/Core/Helper/BinaryUtil.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 6 functions Duplication: 100 (A), based on 133 code lines NamingConvention: 93 (A), based on 30 names 113:40 [warning] naming.too_short - parameter `a` is 1 character (at least 2); a one letter name hides its meaning 113:51 [warning] naming.too_short - parameter `b` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Core/Helper/CCTFieldShape.php (other) CodeLength: not graded 107:28 [error] length.function - CCTFieldShape::isCompatible has 138 lines in its body, above 100 263:28 [error] length.function - CCTFieldShape::coerce has 281 lines in its body, above 100 CyclomaticComplexity: 1 (F), based on 3 functions 107:28 [error] complexity.function - CCTFieldShape::isCompatible has a cyclomatic complexity of 85, untestable risk (above 10): each of its 85 paths needs its own test, which makes it hard to follow and to change safely 263:28 [error] complexity.function - CCTFieldShape::coerce has a cyclomatic complexity of 130, untestable risk (above 10): each of its 130 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 344 code lines 214:1 [warning] duplication.repeated_block - lines 214 to 224 repeat lines 188 to 201 (50 tokens); repeated code has to be fixed in every copy 319:1 [warning] duplication.repeated_block - lines 319 to 328 repeat lines 309 to 318 (65 tokens); repeated code has to be fixed in every copy 329:1 [warning] duplication.repeated_block - lines 329 to 337 repeat lines 309 to 317 (53 tokens); repeated code has to be fixed in every copy 427:1 [warning] duplication.repeated_block - lines 427 to 439 repeat lines 309 to 318 (51 tokens); repeated code has to be fixed in every copy 445:1 [warning] duplication.repeated_block - lines 445 to 450 repeat lines 439 to 444 (58 tokens); repeated code has to be fixed in every copy 509:1 [warning] duplication.repeated_block - lines 509 to 519 repeat lines 121 to 131 (55 tokens); repeated code has to be fixed in every copy 520:1 [warning] duplication.repeated_block - lines 520 to 530 repeat lines 121 to 131 (55 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 29 names Security: not graded advanced-custom-post-type/src/Core/Helper/CCTValueNormalizer.php (other) CodeLength: not graded 49:28 [error] length.function - CCTValueNormalizer::defaultValue has 160 lines in its body, above 100 320:28 [warning] length.function - CCTValueNormalizer::toFlexibleContentLegacyFormat has 73 lines in its body, above 50 33:7 [warning] length.class - CCTValueNormalizer has 510 lines, above 500 for a other CyclomaticComplexity: 41 (F), based on 9 functions 49:28 [error] complexity.function - CCTValueNormalizer::defaultValue has a cyclomatic complexity of 59, untestable risk (above 10): each of its 59 paths needs its own test, which makes it hard to follow and to change safely 224:28 [warning] complexity.function - CCTValueNormalizer::attachments has a cyclomatic complexity of 16, moderate risk (above 10): each of its 16 paths needs its own test, which makes it hard to follow and to change safely 274:28 [warning] complexity.function - CCTValueNormalizer::toRepeaterLegacyFormat has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely 320:28 [error] complexity.function - CCTValueNormalizer::toFlexibleContentLegacyFormat has a cyclomatic complexity of 23, high risk (above 10): each of its 23 paths needs its own test, which makes it hard to follow and to change safely Duplication: 85 (B), based on 304 code lines 349:1 [warning] duplication.repeated_block - lines 349 to 365 repeat lines 285 to 302 (114 tokens); repeated code has to be fixed in every copy NamingConvention: 96 (A), based on 46 names 62:18 [warning] naming.generic - variable `arr` is a generic name; it says nothing about what it holds 333:34 [warning] naming.too_short - variable `b` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Core/Helper/Currencies.php (other) CodeLength: not graded 18:28 [error] length.function - Currencies::getList has 464 lines in its body, above 100 CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 477 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Core/Helper/Features.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 16 functions Duplication: 100 (A), based on 71 code lines NamingConvention: 100 (A), based on 18 names Security: not graded advanced-custom-post-type/src/Core/Helper/Fields.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 39 code lines NamingConvention: 100 (A), based on 10 names Security: not graded advanced-custom-post-type/src/Core/Helper/Icon.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 20 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Core/Helper/Id.php (other) CodeLength: not graded CyclomaticComplexity: 89 (B), based on 3 functions 86:28 [warning] complexity.function - Id::generate has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 68 code lines NamingConvention: 100 (A), based on 14 names Security: not graded advanced-custom-post-type/src/Core/Helper/Lengths.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 49 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Core/Helper/MetaFactory.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 40 (F), based on 27 code lines 41:1 [warning] duplication.repeated_block - lines 41 to 53 repeat lines 29 to 41 (51 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Core/Helper/Strings.php (other) CodeLength: not graded 576:28 [warning] length.function - Strings::renderStars has 70 lines in its body, above 50 850:28 [warning] length.function - Strings::comparison has 90 lines in its body, above 50 18:7 [error] length.class - Strings has 1282 lines, above 1000 for a other 1:1 [error] length.file - the file has 1299 lines, above 1200 for a other CyclomaticComplexity: 92 (A), based on 55 functions 414:28 [warning] complexity.function - Strings::convertKeyValueArrayToString has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely 576:28 [warning] complexity.function - Strings::renderStars has a cyclomatic complexity of 17, moderate risk (above 10): each of its 17 paths needs its own test, which makes it hard to follow and to change safely 850:28 [warning] complexity.function - Strings::comparison has a cyclomatic complexity of 20, moderate risk (above 10): each of its 20 paths needs its own test, which makes it hard to follow and to change safely 1135:28 [warning] complexity.function - Strings::replaceCharacterWithinQuotes has a cyclomatic complexity of 17, moderate risk (above 10): each of its 17 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 693 code lines NamingConvention: 91 (A), based on 149 names 45:28 [warning] naming.inconsistent_style - method `esc_attr` is snake_case, while most methods in this file are camelCase (47 of 55 names); mixed styles make code harder to scan 229:10 [warning] naming.too_short - variable `a` is 1 character (at least 2); a one letter name hides its meaning 349:53 [warning] naming.inconsistent_style - parameter `string_name` is snake_case, while most variables and parameters in this file are camelCase (14 of 93 names); mixed styles make code harder to scan 349:71 [warning] naming.inconsistent_style - parameter `rand_no` is snake_case, while most variables and parameters in this file are camelCase (14 of 93 names); mixed styles make code harder to scan 351:10 [warning] naming.inconsistent_style - variable `username_parts` is snake_case, while most variables and parameters in this file are camelCase (14 of 93 names); mixed styles make code harder to scan 389:10 [warning] naming.generic - variable `str` is a generic name; it says nothing about what it holds 654:55 [warning] naming.too_short - parameter `b` is 1 character (at least 2); a one letter name hides its meaning 703:14 [warning] naming.inconsistent_style - variable `size_kb` is snake_case, while most variables and parameters in this file are camelCase (14 of 93 names); mixed styles make code harder to scan 708:10 [warning] naming.inconsistent_style - variable `size_mb` is snake_case, while most variables and parameters in this file are camelCase (14 of 93 names); mixed styles make code harder to scan 725:97 [warning] naming.too_short - parameter `m` is 1 character (at least 2); a one letter name hides its meaning 1104:15 [warning] naming.too_short - variable `c` is 1 character (at least 2); a one letter name hides its meaning 1105:19 [warning] naming.too_short - variable `r` is 1 character (at least 2); a one letter name hides its meaning 1146:15 [warning] naming.too_short - variable `p` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Core/Helper/TableRecordValueFormatter.php (other) CodeLength: not graded 27:21 [error] length.function - TableRecordValueFormatter::format has 263 lines in its body, above 100 CyclomaticComplexity: 21 (F), based on 5 functions 27:21 [error] complexity.function - TableRecordValueFormatter::format has a cyclomatic complexity of 110, untestable risk (above 10): each of its 110 paths needs its own test, which makes it hard to follow and to change safely 297:22 [warning] complexity.function - TableRecordValueFormatter::renderRelationshipElement has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 265 code lines 202:1 [warning] duplication.repeated_block - lines 202 to 209 repeat lines 193 to 201 (66 tokens); repeated code has to be fixed in every copy NamingConvention: 98 (A), based on 40 names 249:37 [warning] naming.generic - variable `val` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/Helper/UITypeToColumnMapper.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 0 (F), based on 84 code lines 37:1 [warning] duplication.repeated_block - lines 37 to 40 repeat lines 33 to 36 (64 tokens); repeated code has to be fixed in every copy 45:1 [warning] duplication.repeated_block - lines 45 to 50 repeat lines 40 to 45 (60 tokens); repeated code has to be fixed in every copy 50:1 [warning] duplication.repeated_block - lines 50 to 56 repeat lines 40 to 45 (59 tokens); repeated code has to be fixed in every copy 56:1 [warning] duplication.repeated_block - lines 56 to 77 repeat lines 40 to 56 (180 tokens); repeated code has to be fixed in every copy 77:1 [warning] duplication.repeated_block - lines 77 to 96 repeat lines 43 to 56 (160 tokens); repeated code has to be fixed in every copy 96:1 [warning] duplication.repeated_block - lines 96 to 104 repeat lines 43 to 56 (160 tokens); repeated code has to be fixed in every copy 104:1 [warning] duplication.repeated_block - lines 104 to 111 repeat lines 43 to 50 (100 tokens); repeated code has to be fixed in every copy 114:1 [warning] duplication.repeated_block - lines 114 to 120 repeat lines 40 to 45 (63 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 9 names Security: not graded advanced-custom-post-type/src/Core/Helper/Ulid.php (other) CodeLength: not graded 48:28 [warning] length.function - Ulid::generate has 59 lines in its body, above 50 CyclomaticComplexity: 75 (C), based on 2 functions 48:28 [warning] complexity.function - Ulid::generate has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 72 code lines NamingConvention: 92 (A), based on 12 names 60:14 [warning] naming.too_short - variable `r` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Core/Helper/Uuid.php (other) CodeLength: not graded 152:28 [warning] length.function - Uuid::v7 has 76 lines in its body, above 50 CyclomaticComplexity: 89 (B), based on 9 functions 152:28 [warning] complexity.function - Uuid::v7 has a cyclomatic complexity of 14, moderate risk (above 10): each of its 14 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 185 code lines NamingConvention: 97 (A), based on 33 names 181:18 [warning] naming.too_short - variable `s` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Core/Helper/UuidGenerator.php (other) CodeLength: not graded 421:29 [warning] length.function - UuidGenerator::uuid_generate_time has 60 lines in its body, above 50 11:7 [warning] length.class - UuidGenerator has 584 lines, above 500 for a other CyclomaticComplexity: 100 (A), based on 20 functions Duplication: 70 (C), based on 367 code lines 132:1 [warning] duplication.repeated_block - lines 132 to 155 repeat lines 85 to 107 (65 tokens); repeated code has to be fixed in every copy 256:1 [warning] duplication.repeated_block - lines 256 to 270 repeat lines 229 to 243 (63 tokens); repeated code has to be fixed in every copy 326:1 [warning] duplication.repeated_block - lines 326 to 338 repeat lines 293 to 305 (61 tokens); repeated code has to be fixed in every copy NamingConvention: 85 (B), based on 60 names 437:10 [warning] naming.inconsistent_style - variable `clockSeq` is camelCase, while most variables and parameters in this file are snake_case (2 of 23 names); mixed styles make code harder to scan 483:29 [warning] naming.inconsistent_style - method `isValid` is camelCase, while most methods in this file are snake_case (14 of 20 names); mixed styles make code harder to scan 509:29 [warning] naming.inconsistent_style - method `toString` is camelCase, while most methods in this file are snake_case (14 of 20 names); mixed styles make code harder to scan 509:39 [warning] naming.too_short - parameter `v` is 1 character (at least 2); a one letter name hides its meaning 524:29 [warning] naming.inconsistent_style - method `toBinary` is camelCase, while most methods in this file are snake_case (14 of 20 names); mixed styles make code harder to scan 550:29 [warning] naming.inconsistent_style - method `toDecimal` is camelCase, while most methods in this file are snake_case (14 of 20 names); mixed styles make code harder to scan 583:29 [warning] naming.inconsistent_style - method `binaryAdd` is camelCase, while most methods in this file are snake_case (14 of 20 names); mixed styles make code harder to scan 583:47 [warning] naming.too_short - parameter `a` is 1 character (at least 2); a one letter name hides its meaning 583:58 [warning] naming.too_short - parameter `b` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Core/Helper/Weights.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 41 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Core/JSON/AbstractJSONSchema.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 9 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Core/JSON/BelongSchema.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 47 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Core/JSON/CustomPostTypeSchema.php (other) CodeLength: not graded 12:21 [error] length.function - CustomPostTypeSchema::toArray has 250 lines in its body, above 100 CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 253 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Core/JSON/DynamicBlockControlSchema.php (other) CodeLength: not graded 12:21 [warning] length.function - DynamicBlockControlSchema::toArray has 56 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 60 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Core/JSON/DynamicBlockSchema.php (other) CodeLength: not graded 10:21 [warning] length.function - DynamicBlockSchema::toArray has 58 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 61 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Core/JSON/FormFieldSchema.php (other) CodeLength: not graded 12:21 [warning] length.function - FormFieldSchema::toArray has 99 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 1 function Duplication: 40 (F), based on 101 code lines 51:1 [warning] duplication.repeated_block - lines 51 to 63 repeat lines 38 to 50 (52 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Core/JSON/FormMetadataSchema.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 32 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Core/JSON/FormSchema.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 45 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Core/JSON/MetaBoxSchema.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 54 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Core/JSON/MetaFieldAdvancedOptionSchema.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 36 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Core/JSON/MetaFieldBlockSchema.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 54 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Core/JSON/MetaFieldOptionSchema.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 48 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Core/JSON/MetaFieldRelationSchema.php (other) CodeLength: not graded 13:21 [warning] length.function - MetaFieldRelationSchema::toArray has 87 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 89 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Core/JSON/MetaFieldSchema.php (other) CodeLength: not graded 34:21 [error] length.function - MetaFieldSchema::toArray has 210 lines in its body, above 100 CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 85 (B), based on 225 code lines 183:1 [warning] duplication.repeated_block - lines 183 to 192 repeat lines 36 to 45 (50 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 11 names Security: not graded advanced-custom-post-type/src/Core/JSON/MetaFieldvisibilityConditionSchema.php (other) CodeLength: not graded 10:21 [warning] length.function - MetaFieldvisibilityConditionSchema::toArray has 85 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 90 code lines NamingConvention: 50 (F), based on 2 names 5:7 [warning] naming.too_long - class `MetaFieldvisibilityConditionSchema` is 34 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/JSON/MetaGroupSchema.php (other) CodeLength: not graded 13:21 [warning] length.function - MetaGroupSchema::toArray has 77 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 81 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Core/JSON/OptionPageSchema.php (other) CodeLength: not graded 13:21 [warning] length.function - OptionPageSchema::toArray has 63 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 68 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Core/JSON/QueryFilterSchema.php (other) CodeLength: not graded 10:21 [error] length.function - QueryFilterSchema::toArray has 358 lines in its body, above 100 CyclomaticComplexity: 100 (A), based on 1 function Duplication: 40 (F), based on 363 code lines 204:1 [warning] duplication.repeated_block - lines 204 to 223 repeat lines 169 to 188 (100 tokens); repeated code has to be fixed in every copy 228:1 [warning] duplication.repeated_block - lines 228 to 255 repeat lines 201 to 228 (126 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Core/JSON/QueryResultSchema.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 17 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Core/JSON/TableColumnSchema.php (other) CodeLength: not graded 13:21 [error] length.function - TableColumnSchema::toArray has 121 lines in its body, above 100 CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 126 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Core/JSON/TableGroupSchema.php (other) CodeLength: not graded 12:21 [warning] length.function - TableGroupSchema::toArray has 64 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 69 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Core/JSON/TableRecordSchema.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 26 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Core/JSON/TableSchema.php (other) CodeLength: not graded 12:21 [warning] length.function - TableSchema::toArray has 84 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 89 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Core/JSON/TableStatusSchema.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 36 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Core/JSON/TableSyncResponseSchema.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 24 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Core/JSON/TaxonomySchema.php (other) CodeLength: not graded 10:21 [error] length.function - TaxonomySchema::toArray has 198 lines in its body, above 100 CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 201 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Core/JSON/ValidationRuleSchema.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 45 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Core/JSON/WPAttachmentSchema.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 25 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Core/JSON/WooCommerceProductDataFieldOptionSchema.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 43 code lines NamingConvention: 50 (F), based on 2 names 5:7 [warning] naming.too_long - class `WooCommerceProductDataFieldOptionSchema` is 39 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/JSON/WooCommerceProductDataFieldSchema.php (other) CodeLength: not graded 12:21 [warning] length.function - WooCommerceProductDataFieldSchema::toArray has 72 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 77 code lines NamingConvention: 50 (F), based on 2 names 7:7 [warning] naming.too_long - class `WooCommerceProductDataFieldSchema` is 33 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/JSON/WooCommerceProductDataSchema.php (other) CodeLength: not graded 10:21 [warning] length.function - WooCommerceProductDataSchema::toArray has 79 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 84 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Core/Models/Abstracts/AbstractModel.php (other) CodeLength: not graded 87:29 [warning] length.function - AbstractModel::HydrateReflectionClassFromData has 56 lines in its body, above 50 CyclomaticComplexity: 85 (B), based on 8 functions 87:29 [warning] complexity.function - AbstractModel::HydrateReflectionClassFromData has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 97 code lines NamingConvention: 94 (A), based on 31 names 54:52 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds 87:29 [warning] naming.inconsistent_style - method `HydrateReflectionClassFromData` is PascalCase, while most methods in this file are camelCase (7 of 8 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Models/ApiKey/ApiKeyModel.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 78 code lines NamingConvention: 100 (A), based on 17 names Security: not graded advanced-custom-post-type/src/Core/Models/Belong/BelongModel.php (other) CodeLength: not graded 211:28 [warning] length.function - BelongModel::validationRules has 52 lines in its body, above 50 268:21 [warning] length.function - BelongModel::getFindAsSting has 60 lines in its body, above 50 CyclomaticComplexity: 79 (C), based on 15 functions 268:21 [error] complexity.function - BelongModel::getFindAsSting has a cyclomatic complexity of 21, high risk (above 10): each of its 21 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 215 code lines NamingConvention: 97 (A), based on 35 names 277:44 [warning] naming.too_short - variable `f` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Core/Models/Contracts/VisibilityInterface.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 5 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Core/Models/CustomPostType/CustomPostTypeModel.php (other) CodeLength: not graded 24:7 [warning] length.class - CustomPostTypeModel has 590 lines, above 500 for a other 1:1 [warning] length.file - the file has 613 lines, above 600 for a other CyclomaticComplexity: 100 (A), based on 33 functions Duplication: 70 (C), based on 356 code lines 402:1 [warning] duplication.repeated_block - lines 402 to 423 repeat lines 349 to 370 (50 tokens); repeated code has to be fixed in every copy 488:1 [warning] duplication.repeated_block - lines 488 to 497 repeat lines 456 to 465 (80 tokens); repeated code has to be fixed in every copy 497:1 [warning] duplication.repeated_block - lines 497 to 508 repeat lines 464 to 475 (61 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 67 names Security: not graded advanced-custom-post-type/src/Core/Models/Dataset/DatasetModel.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 13 functions Duplication: 100 (A), based on 101 code lines NamingConvention: 100 (A), based on 23 names Security: not graded advanced-custom-post-type/src/Core/Models/Dataset/DatasetModelItem.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 9 functions Duplication: 100 (A), based on 96 code lines NamingConvention: 100 (A), based on 22 names Security: not graded advanced-custom-post-type/src/Core/Models/DynamicBlock/DynamicBlockControlModel.php (other) CodeLength: not graded 320:21 [error] length.function - DynamicBlockControlModel::transformToJSElement has 103 lines in its body, above 100 428:28 [warning] length.function - DynamicBlockControlModel::validationRules has 54 lines in its body, above 50 16:7 [warning] length.class - DynamicBlockControlModel has 516 lines, above 500 for a other CyclomaticComplexity: 74 (C), based on 22 functions 205:21 [warning] complexity.function - DynamicBlockControlModel::returnType has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely 320:21 [error] complexity.function - DynamicBlockControlModel::transformToJSElement has a cyclomatic complexity of 33, high risk (above 10): each of its 33 paths needs its own test, which makes it hard to follow and to change safely Duplication: 85 (B), based on 326 code lines 504:1 [warning] duplication.repeated_block - lines 504 to 522 repeat lines 486 to 503 (104 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 63 names Security: not graded advanced-custom-post-type/src/Core/Models/DynamicBlock/DynamicBlockModel.php (other) CodeLength: not graded 280:21 [error] length.function - DynamicBlockModel::supportsCodeString has 122 lines in its body, above 100 14:7 [warning] length.class - DynamicBlockModel has 609 lines, above 500 for a other 1:1 [warning] length.file - the file has 622 lines, above 600 for a other CyclomaticComplexity: 67 (D), based on 30 functions 280:21 [error] complexity.function - DynamicBlockModel::supportsCodeString has a cyclomatic complexity of 53, untestable risk (above 10): each of its 53 paths needs its own test, which makes it hard to follow and to change safely Duplication: 85 (B), based on 384 code lines 605:1 [warning] duplication.repeated_block - lines 605 to 621 repeat lines 583 to 599 (136 tokens); repeated code has to be fixed in every copy NamingConvention: 92 (A), based on 76 names 298:14 [warning] naming.too_short - variable `a` is 1 character (at least 2); a one letter name hides its meaning 299:14 [warning] naming.too_short - variable `b` is 1 character (at least 2); a one letter name hides its meaning 310:14 [warning] naming.too_short - variable `c` is 1 character (at least 2); a one letter name hides its meaning 311:14 [warning] naming.too_short - variable `d` is 1 character (at least 2); a one letter name hides its meaning 313:14 [warning] naming.too_short - variable `f` is 1 character (at least 2); a one letter name hides its meaning 314:14 [warning] naming.too_short - variable `g` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Core/Models/File/FileImportModel.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 74 code lines NamingConvention: 100 (A), based on 19 names Security: not graded advanced-custom-post-type/src/Core/Models/Form/FormFieldModel.php (other) CodeLength: not graded 858:28 [error] length.function - FormFieldModel::validationRules has 126 lines in its body, above 100 12:7 [error] length.class - FormFieldModel has 1019 lines, above 1000 for a other 1:1 [warning] length.file - the file has 1030 lines, above 600 for a other CyclomaticComplexity: 98 (A), based on 51 functions 993:21 [warning] complexity.function - FormFieldModel::validateAgainstMaxAndMin has a cyclomatic complexity of 17, moderate risk (above 10): each of its 17 paths needs its own test, which makes it hard to follow and to change safely Duplication: 0 (F), based on 681 code lines 525:1 [warning] duplication.repeated_block - lines 525 to 561 repeat lines 488 to 525 (97 tokens); repeated code has to be fixed in every copy 577:1 [warning] duplication.repeated_block - lines 577 to 589 repeat lines 564 to 576 (52 tokens); repeated code has to be fixed in every copy 617:1 [warning] duplication.repeated_block - lines 617 to 647 repeat lines 555 to 585 (101 tokens); repeated code has to be fixed in every copy 673:1 [warning] duplication.repeated_block - lines 673 to 691 repeat lines 583 to 601 (58 tokens); repeated code has to be fixed in every copy 692:1 [warning] duplication.repeated_block - lines 692 to 708 repeat lines 585 to 601 (50 tokens); repeated code has to be fixed in every copy 709:1 [warning] duplication.repeated_block - lines 709 to 743 repeat lines 613 to 647 (122 tokens); repeated code has to be fixed in every copy 744:1 [warning] duplication.repeated_block - lines 744 to 763 repeat lines 564 to 583 (80 tokens); repeated code has to be fixed in every copy 778:1 [warning] duplication.repeated_block - lines 778 to 796 repeat lines 563 to 581 (75 tokens); repeated code has to be fixed in every copy 884:1 [warning] duplication.repeated_block - lines 884 to 910 repeat lines 563 to 589 (105 tokens); repeated code has to be fixed in every copy 911:1 [warning] duplication.repeated_block - lines 911 to 936 repeat lines 564 to 589 (104 tokens); repeated code has to be fixed in every copy 937:1 [warning] duplication.repeated_block - lines 937 to 951 repeat lines 564 to 578 (60 tokens); repeated code has to be fixed in every copy NamingConvention: 99 (A), based on 164 names 561:21 [warning] naming.too_long - method `canFieldHaveValidationAndLogicRules` is 35 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/Models/Form/FormMetadataModel.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 90 code lines NamingConvention: 100 (A), based on 20 names Security: not graded advanced-custom-post-type/src/Core/Models/Form/FormModel.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 28 functions Duplication: 40 (F), based on 292 code lines 246:1 [warning] duplication.repeated_block - lines 246 to 273 repeat lines 181 to 208 (75 tokens); repeated code has to be fixed in every copy 273:1 [warning] duplication.repeated_block - lines 273 to 295 repeat lines 188 to 208 (69 tokens); repeated code has to be fixed in every copy 426:1 [warning] duplication.repeated_block - lines 426 to 444 repeat lines 408 to 425 (97 tokens); repeated code has to be fixed in every copy NamingConvention: 98 (A), based on 59 names 253:52 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/Models/Form/FormSubmissionModel.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 23 functions Duplication: 100 (A), based on 176 code lines NamingConvention: 98 (A), based on 50 names 243:91 [warning] naming.too_short - parameter `d` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Core/Models/Meta/MetaBoxModel.php (other) CodeLength: not graded 11:7 [warning] length.class - MetaBoxModel has 557 lines, above 500 for a other CyclomaticComplexity: 100 (A), based on 34 functions Duplication: 70 (C), based on 335 code lines 322:1 [warning] duplication.repeated_block - lines 322 to 352 repeat lines 250 to 278 (75 tokens); repeated code has to be fixed in every copy 498:1 [warning] duplication.repeated_block - lines 498 to 504 repeat lines 467 to 473 (74 tokens); repeated code has to be fixed in every copy NamingConvention: 99 (A), based on 70 names 383:21 [warning] naming.too_long - method `hasLiveReactiveVisibilityConditions` is 35 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/Models/Meta/MetaBoxModelFactory.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 57 code lines NamingConvention: 100 (A), based on 14 names Security: not graded advanced-custom-post-type/src/Core/Models/Meta/MetaBoxVisibilityModel.php (other) CodeLength: not graded 261:28 [warning] length.function - MetaBoxVisibilityModel::validationRules has 55 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 16 functions Duplication: 100 (A), based on 185 code lines NamingConvention: 100 (A), based on 36 names Security: not graded advanced-custom-post-type/src/Core/Models/Meta/MetaFieldAdvancedOptionModel.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 10 functions Duplication: 100 (A), based on 93 code lines NamingConvention: 100 (A), based on 19 names Security: not graded advanced-custom-post-type/src/Core/Models/Meta/MetaFieldBlockModel.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 23 functions Duplication: 85 (B), based on 215 code lines 312:1 [warning] duplication.repeated_block - lines 312 to 320 repeat lines 243 to 251 (96 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 45 names Security: not graded advanced-custom-post-type/src/Core/Models/Meta/MetaFieldModel.php (other) CodeLength: not graded 655:21 [warning] length.function - MetaFieldModel::getAdvancedOptions has 99 lines in its body, above 50 1355:21 [warning] length.function - MetaFieldModel::duplicateFrom has 64 lines in its body, above 50 1504:28 [error] length.function - MetaFieldModel::fullHydrateFromArray has 331 lines in its body, above 100 2072:21 [warning] length.function - MetaFieldModel::isForFormBuilder has 56 lines in its body, above 50 2184:21 [error] length.function - MetaFieldModel::arrayRepresentation has 107 lines in its body, above 100 2296:28 [error] length.function - MetaFieldModel::validationRules has 244 lines in its body, above 100 2734:21 [warning] length.function - MetaFieldModel::validateImageDimension has 53 lines in its body, above 50 21:7 [error] length.class - MetaFieldModel has 2803 lines, above 1000 for a other 1:1 [error] length.file - the file has 2823 lines, above 1200 for a other CyclomaticComplexity: 79 (C), based on 118 functions 1504:28 [error] complexity.function - MetaFieldModel::fullHydrateFromArray has a cyclomatic complexity of 129, untestable risk (above 10): each of its 129 paths needs its own test, which makes it hard to follow and to change safely 2184:21 [warning] complexity.function - MetaFieldModel::arrayRepresentation has a cyclomatic complexity of 14, moderate risk (above 10): each of its 14 paths needs its own test, which makes it hard to follow and to change safely 2663:21 [warning] complexity.function - MetaFieldModel::validateAgainstMaxAndMin has a cyclomatic complexity of 17, moderate risk (above 10): each of its 17 paths needs its own test, which makes it hard to follow and to change safely 2734:21 [warning] complexity.function - MetaFieldModel::validateImageDimension has a cyclomatic complexity of 20, moderate risk (above 10): each of its 20 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 1882 code lines 417:1 [warning] duplication.repeated_block - lines 417 to 427 repeat lines 405 to 415 (51 tokens); repeated code has to be fixed in every copy 634:1 [warning] duplication.repeated_block - lines 634 to 655 repeat lines 581 to 602 (52 tokens); repeated code has to be fixed in every copy 779:1 [warning] duplication.repeated_block - lines 779 to 811 repeat lines 570 to 602 (92 tokens); repeated code has to be fixed in every copy 857:1 [warning] duplication.repeated_block - lines 857 to 893 repeat lines 775 to 811 (98 tokens); repeated code has to be fixed in every copy 936:1 [warning] duplication.repeated_block - lines 936 to 968 repeat lines 570 to 602 (92 tokens); repeated code has to be fixed in every copy 1124:1 [warning] duplication.repeated_block - lines 1124 to 1148 repeat lines 570 to 594 (79 tokens); repeated code has to be fixed in every copy 1178:1 [warning] duplication.repeated_block - lines 1178 to 1218 repeat lines 936 to 979 (106 tokens); repeated code has to be fixed in every copy 1252:1 [warning] duplication.repeated_block - lines 1252 to 1271 repeat lines 1230 to 1249 (57 tokens); repeated code has to be fixed in every copy 1272:1 [warning] duplication.repeated_block - lines 1272 to 1304 repeat lines 1239 to 1271 (112 tokens); repeated code has to be fixed in every copy 1373:1 [warning] duplication.repeated_block - lines 1373 to 1381 repeat lines 285 to 292 (50 tokens); repeated code has to be fixed in every copy 1701:1 [warning] duplication.repeated_block - lines 1701 to 1708 repeat lines 1652 to 1659 (68 tokens); repeated code has to be fixed in every copy 1909:1 [warning] duplication.repeated_block - lines 1909 to 1939 repeat lines 1252 to 1282 (102 tokens); repeated code has to be fixed in every copy 1957:1 [warning] duplication.repeated_block - lines 1957 to 1986 repeat lines 1252 to 1281 (100 tokens); repeated code has to be fixed in every copy 1998:1 [warning] duplication.repeated_block - lines 1998 to 2015 repeat lines 1954 to 1971 (54 tokens); repeated code has to be fixed in every copy 2016:1 [warning] duplication.repeated_block - lines 2016 to 2033 repeat lines 1955 to 1972 (54 tokens); repeated code has to be fixed in every copy 2034:1 [warning] duplication.repeated_block - lines 2034 to 2063 repeat lines 1955 to 1984 (102 tokens); repeated code has to be fixed in every copy 2073:1 [warning] duplication.repeated_block - lines 2073 to 2096 repeat lines 1259 to 1282 (92 tokens); repeated code has to be fixed in every copy 2097:1 [warning] duplication.repeated_block - lines 2097 to 2116 repeat lines 108 to 127 (80 tokens); repeated code has to be fixed in every copy 2117:1 [warning] duplication.repeated_block - lines 2117 to 2136 repeat lines 1934 to 1953 (62 tokens); repeated code has to be fixed in every copy 2137:1 [warning] duplication.repeated_block - lines 2137 to 2158 repeat lines 1942 to 1963 (55 tokens); repeated code has to be fixed in every copy 2365:1 [warning] duplication.repeated_block - lines 2365 to 2377 repeat lines 2352 to 2364 (52 tokens); repeated code has to be fixed in every copy 2378:1 [warning] duplication.repeated_block - lines 2378 to 2403 repeat lines 2352 to 2377 (104 tokens); repeated code has to be fixed in every copy NamingConvention: 99 (A), based on 320 names 1504:92 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds 1899:21 [warning] naming.too_long - method `setIsAWooCommerceProductAttribute` is 33 characters (limit 30); very long names make code hard to read 1915:21 [warning] naming.too_long - method `canFieldHaveValidationAndLogicRules` is 35 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/Models/Meta/MetaFieldModelFactory.php (other) CodeLength: not graded 110:28 [error] length.function - MetaFieldModelFactory::fromMetaBoxModel has 215 lines in its body, above 100 CyclomaticComplexity: 46 (F), based on 6 functions 110:28 [error] complexity.function - MetaFieldModelFactory::fromMetaBoxModel has a cyclomatic complexity of 39, high risk (above 10): each of its 39 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 225 code lines NamingConvention: 100 (A), based on 55 names Security: not graded advanced-custom-post-type/src/Core/Models/Meta/MetaFieldOptionModel.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 9 functions Duplication: 100 (A), based on 102 code lines NamingConvention: 100 (A), based on 22 names Security: not graded advanced-custom-post-type/src/Core/Models/Meta/MetaFieldRelationshipModel.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 16 functions Duplication: 100 (A), based on 165 code lines NamingConvention: 100 (A), based on 32 names Security: not graded advanced-custom-post-type/src/Core/Models/Meta/MetaFieldVisibilityModel.php (other) CodeLength: not graded 263:28 [warning] length.function - MetaFieldVisibilityModel::validationRules has 55 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 16 functions Duplication: 100 (A), based on 187 code lines NamingConvention: 100 (A), based on 36 names Security: not graded advanced-custom-post-type/src/Core/Models/Meta/MetaGroupModel.php (other) CodeLength: not graded 390:28 [warning] length.function - MetaGroupModel::validationRules has 52 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 26 functions Duplication: 70 (C), based on 283 code lines 215:1 [warning] duplication.repeated_block - lines 215 to 234 repeat lines 153 to 172 (71 tokens); repeated code has to be fixed in every copy 371:1 [warning] duplication.repeated_block - lines 371 to 378 repeat lines 338 to 345 (67 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 56 names Security: not graded advanced-custom-post-type/src/Core/Models/Meta/MetaGroupModelFactory.php (other) CodeLength: not graded 28:28 [warning] length.function - MetaGroupModelFactory::fromTable has 54 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 76 code lines NamingConvention: 94 (A), based on 17 names 118:29 [warning] naming.too_long - method `convertTableLocationToBelongModel` is 33 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/Models/OptionPage/OptionPageModel.php (other) CodeLength: not graded 421:28 [warning] length.function - OptionPageModel::validationRules has 81 lines in its body, above 50 19:7 [warning] length.class - OptionPageModel has 504 lines, above 500 for a other CyclomaticComplexity: 100 (A), based on 27 functions Duplication: 40 (F), based on 320 code lines 399:1 [warning] duplication.repeated_block - lines 399 to 415 repeat lines 379 to 395 (116 tokens); repeated code has to be fixed in every copy 455:1 [warning] duplication.repeated_block - lines 455 to 483 repeat lines 135 to 163 (110 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 59 names Security: not graded advanced-custom-post-type/src/Core/Models/Permission/PermissionModel.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 10 functions Duplication: 100 (A), based on 118 code lines NamingConvention: 100 (A), based on 24 names Security: not graded advanced-custom-post-type/src/Core/Models/Query/QueryResultModel.php (other) CodeLength: not graded 88:22 [error] length.function - QueryResultModel::setMeta has 119 lines in its body, above 100 CyclomaticComplexity: 76 (C), based on 8 functions 88:22 [warning] complexity.function - QueryResultModel::setMeta has a cyclomatic complexity of 16, moderate risk (above 10): each of its 16 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 143 code lines 174:1 [warning] duplication.repeated_block - lines 174 to 187 repeat lines 135 to 148 (69 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 30 names Security: not graded advanced-custom-post-type/src/Core/Models/Settings/SettingsModel.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 6 functions Duplication: 100 (A), based on 87 code lines NamingConvention: 95 (A), based on 41 names 27:18 [warning] naming.too_long - constant `CLOUDFLARE_TURNSTILE_SECRET_KEY` is 31 characters (limit 30); very long names make code hard to read 45:18 [warning] naming.too_long - constant `DELETE_TABLES_WHEN_DEACTIVATE_KEY` is 33 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/Models/Table/TableColumnModel.php (other) CodeLength: not graded 700:21 [warning] length.function - TableColumnModel::userColumnPermissions has 54 lines in its body, above 50 761:28 [error] length.function - TableColumnModel::validationRules has 101 lines in its body, above 100 866:21 [warning] length.function - TableColumnModel::addTableElementExpression has 75 lines in its body, above 50 1141:21 [warning] length.function - TableColumnModel::writeModelSchema has 73 lines in its body, above 50 1238:22 [error] length.function - TableColumnModel::JSONItems has 131 lines in its body, above 100 1375:22 [error] length.function - TableColumnModel::JSONProperties has 160 lines in its body, above 100 1648:22 [warning] length.function - TableColumnModel::JSONType has 65 lines in its body, above 50 21:7 [error] length.class - TableColumnModel has 1791 lines, above 1000 for a other 1:1 [error] length.file - the file has 1811 lines, above 1200 for a other CyclomaticComplexity: 71 (C), based on 72 functions 700:21 [warning] complexity.function - TableColumnModel::userColumnPermissions has a cyclomatic complexity of 17, moderate risk (above 10): each of its 17 paths needs its own test, which makes it hard to follow and to change safely 866:21 [warning] complexity.function - TableColumnModel::addTableElementExpression has a cyclomatic complexity of 19, moderate risk (above 10): each of its 19 paths needs its own test, which makes it hard to follow and to change safely 1094:21 [warning] complexity.function - TableColumnModel::readModelSchema has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely 1141:21 [error] complexity.function - TableColumnModel::writeModelSchema has a cyclomatic complexity of 24, high risk (above 10): each of its 24 paths needs its own test, which makes it hard to follow and to change safely 1238:22 [error] complexity.function - TableColumnModel::JSONItems has a cyclomatic complexity of 26, high risk (above 10): each of its 26 paths needs its own test, which makes it hard to follow and to change safely 1375:22 [error] complexity.function - TableColumnModel::JSONProperties has a cyclomatic complexity of 21, high risk (above 10): each of its 21 paths needs its own test, which makes it hard to follow and to change safely 1648:22 [error] complexity.function - TableColumnModel::JSONType has a cyclomatic complexity of 40, high risk (above 10): each of its 40 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 1229 code lines 74:1 [warning] duplication.repeated_block - lines 74 to 86 repeat lines 61 to 73 (52 tokens); repeated code has to be fixed in every copy 340:1 [warning] duplication.repeated_block - lines 340 to 356 repeat lines 60 to 76 (65 tokens); repeated code has to be fixed in every copy 407:1 [warning] duplication.repeated_block - lines 407 to 419 repeat lines 394 to 406 (52 tokens); repeated code has to be fixed in every copy 779:1 [warning] duplication.repeated_block - lines 779 to 813 repeat lines 393 to 427 (134 tokens); repeated code has to be fixed in every copy 1481:1 [warning] duplication.repeated_block - lines 1481 to 1492 repeat lines 1330 to 1341 (53 tokens); repeated code has to be fixed in every copy 1510:1 [warning] duplication.repeated_block - lines 1510 to 1520 repeat lines 1500 to 1510 (82 tokens); repeated code has to be fixed in every copy 1520:1 [warning] duplication.repeated_block - lines 1520 to 1531 repeat lines 1500 to 1511 (86 tokens); repeated code has to be fixed in every copy 1684:1 [warning] duplication.repeated_block - lines 1684 to 1699 repeat lines 1659 to 1674 (68 tokens); repeated code has to be fixed in every copy NamingConvention: 92 (A), based on 194 names 890:55 [warning] naming.too_short - parameter `a` is 1 character (at least 2); a one letter name hides its meaning 890:78 [warning] naming.too_short - parameter `b` is 1 character (at least 2); a one letter name hides its meaning 1238:22 [warning] naming.inconsistent_style - method `JSONItems` is PascalCase, while most methods in this file are camelCase (58 of 71 names); mixed styles make code harder to scan 1375:22 [warning] naming.inconsistent_style - method `JSONProperties` is PascalCase, while most methods in this file are camelCase (58 of 71 names); mixed styles make code harder to scan 1540:22 [warning] naming.inconsistent_style - method `JSONRequiredFields` is PascalCase, while most methods in this file are camelCase (58 of 71 names); mixed styles make code harder to scan 1556:22 [warning] naming.inconsistent_style - method `JSONAdditionalProperties` is PascalCase, while most methods in this file are camelCase (58 of 71 names); mixed styles make code harder to scan 1565:22 [warning] naming.inconsistent_style - method `JSONMaxLength` is PascalCase, while most methods in this file are camelCase (58 of 71 names); mixed styles make code harder to scan 1581:22 [warning] naming.inconsistent_style - method `JSONMinLength` is PascalCase, while most methods in this file are camelCase (58 of 71 names); mixed styles make code harder to scan 1592:22 [warning] naming.inconsistent_style - method `JSONMaximum` is PascalCase, while most methods in this file are camelCase (58 of 71 names); mixed styles make code harder to scan 1611:22 [warning] naming.inconsistent_style - method `JSONMinimum` is PascalCase, while most methods in this file are camelCase (58 of 71 names); mixed styles make code harder to scan 1622:22 [warning] naming.inconsistent_style - method `JSONMultipleOf` is PascalCase, while most methods in this file are camelCase (58 of 71 names); mixed styles make code harder to scan 1641:10 [warning] naming.too_short - variable `t` is 1 character (at least 2); a one letter name hides its meaning 1648:22 [warning] naming.inconsistent_style - method `JSONType` is PascalCase, while most methods in this file are camelCase (58 of 71 names); mixed styles make code harder to scan 1718:22 [warning] naming.inconsistent_style - method `JSONFormat` is PascalCase, while most methods in this file are camelCase (58 of 71 names); mixed styles make code harder to scan 1739:22 [warning] naming.inconsistent_style - method `JSONEnum` is PascalCase, while most methods in this file are camelCase (58 of 71 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Models/Table/TableElementInterface.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 5 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Core/Models/Table/TableForeignKeyModel.php (other) CodeLength: not graded 270:28 [warning] length.function - TableForeignKeyModel::validationRules has 61 lines in its body, above 50 CyclomaticComplexity: 92 (A), based on 15 functions 207:21 [warning] complexity.function - TableForeignKeyModel::addTableElementExpression has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 195 code lines 135:1 [warning] duplication.repeated_block - lines 135 to 157 repeat lines 103 to 125 (50 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 41 names Security: not graded advanced-custom-post-type/src/Core/Models/Table/TableGroupModel.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 23 functions Duplication: 85 (B), based on 188 code lines 312:1 [warning] duplication.repeated_block - lines 312 to 321 repeat lines 288 to 297 (83 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 44 names Security: not graded advanced-custom-post-type/src/Core/Models/Table/TableIndexModel.php (other) CodeLength: not graded 351:28 [warning] length.function - TableIndexModel::validationRules has 61 lines in its body, above 50 419:21 [warning] length.function - TableIndexModel::addTableElementExpression has 76 lines in its body, above 50 13:7 [warning] length.class - TableIndexModel has 517 lines, above 500 for a other CyclomaticComplexity: 92 (A), based on 21 functions 419:21 [warning] complexity.function - TableIndexModel::addTableElementExpression has a cyclomatic complexity of 20, moderate risk (above 10): each of its 20 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 313 code lines 249:1 [warning] duplication.repeated_block - lines 249 to 300 repeat lines 154 to 201 (109 tokens); repeated code has to be fixed in every copy NamingConvention: 91 (A), based on 64 names 22:18 [warning] naming.too_long - constant `TABLE_INDEX_ALGORITHM_OPTION_DEFAULT` is 36 characters (limit 30); very long names make code hard to read 23:18 [warning] naming.too_long - constant `TABLE_INDEX_ALGORITHM_OPTION_INPLACE` is 36 characters (limit 30); very long names make code hard to read 24:18 [warning] naming.too_long - constant `TABLE_INDEX_ALGORITHM_OPTION_COPY` is 33 characters (limit 30); very long names make code hard to read 26:18 [warning] naming.too_long - constant `TABLE_INDEX_LOCK_OPTION_DEFAULT` is 31 characters (limit 30); very long names make code hard to read 29:18 [warning] naming.too_long - constant `TABLE_INDEX_LOCK_OPTION_EXCLUSIVE` is 33 characters (limit 30); very long names make code hard to read 126:22 [warning] naming.generic - variable `obj` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/Models/Table/TableModel.php (other) CodeLength: not graded 798:21 [error] length.function - TableModel::createTableQuery has 125 lines in its body, above 100 949:21 [error] length.function - TableModel::upsertQuery has 119 lines in its body, above 100 1100:21 [error] length.function - TableModel::selectQuery has 146 lines in its body, above 100 1254:22 [warning] length.function - TableModel::buildConditionClause has 98 lines in its body, above 50 1587:21 [warning] length.function - TableModel::getTableStatus has 59 lines in its body, above 50 1701:21 [warning] length.function - TableModel::writeModelSchema has 66 lines in its body, above 50 1822:28 [warning] length.function - TableModel::validationRules has 68 lines in its body, above 50 24:7 [error] length.class - TableModel has 1927 lines, above 1000 for a other 1:1 [error] length.file - the file has 1950 lines, above 1200 for a other CyclomaticComplexity: 71 (C), based on 70 functions 798:21 [error] complexity.function - TableModel::createTableQuery has a cyclomatic complexity of 21, high risk (above 10): each of its 21 paths needs its own test, which makes it hard to follow and to change safely 949:21 [error] complexity.function - TableModel::upsertQuery has a cyclomatic complexity of 37, high risk (above 10): each of its 37 paths needs its own test, which makes it hard to follow and to change safely 1100:21 [error] complexity.function - TableModel::selectQuery has a cyclomatic complexity of 35, high risk (above 10): each of its 35 paths needs its own test, which makes it hard to follow and to change safely 1254:22 [error] complexity.function - TableModel::buildConditionClause has a cyclomatic complexity of 28, high risk (above 10): each of its 28 paths needs its own test, which makes it hard to follow and to change safely 1445:22 [warning] complexity.function - TableModel::formatColumnName has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely 1701:21 [warning] complexity.function - TableModel::writeModelSchema has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 1142 code lines 655:1 [warning] duplication.repeated_block - lines 655 to 683 repeat lines 500 to 530 (81 tokens); repeated code has to be fixed in every copy 689:1 [warning] duplication.repeated_block - lines 689 to 733 repeat lines 645 to 689 (117 tokens); repeated code has to be fixed in every copy 1342:1 [warning] duplication.repeated_block - lines 1342 to 1349 repeat lines 1332 to 1340 (53 tokens); repeated code has to be fixed in every copy 1523:1 [warning] duplication.repeated_block - lines 1523 to 1527 repeat lines 1204 to 1208 (51 tokens); repeated code has to be fixed in every copy 1551:1 [warning] duplication.repeated_block - lines 1551 to 1587 repeat lines 1515 to 1545 (146 tokens); repeated code has to be fixed in every copy 1718:1 [warning] duplication.repeated_block - lines 1718 to 1726 repeat lines 1675 to 1684 (54 tokens); repeated code has to be fixed in every copy 1926:1 [warning] duplication.repeated_block - lines 1926 to 1947 repeat lines 1894 to 1915 (217 tokens); repeated code has to be fixed in every copy NamingConvention: 98 (A), based on 220 names 45:18 [warning] naming.too_long - constant `TABLE_ID_STRATEGY_AUTO_INCREMENT` is 32 characters (limit 30); very long names make code hard to read 637:52 [warning] naming.too_short - parameter `a` is 1 character (at least 2); a one letter name hides its meaning 637:73 [warning] naming.too_short - parameter `b` is 1 character (at least 2); a one letter name hides its meaning 768:22 [warning] naming.too_long - method `foreignKeySupportingIndexPrefixes` is 33 characters (limit 30); very long names make code hard to read 1180:37 [warning] naming.too_short - parameter `v` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Core/Models/Taxonomy/TaxonomyModel.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 24 functions Duplication: 70 (C), based on 291 code lines 367:1 [warning] duplication.repeated_block - lines 367 to 398 repeat lines 333 to 364 (205 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 49 names Security: not graded advanced-custom-post-type/src/Core/Models/Validation/ValidationRuleModel.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 13 functions Duplication: 100 (A), based on 150 code lines NamingConvention: 100 (A), based on 41 names Security: not graded advanced-custom-post-type/src/Core/Models/WooCommerce/WooCommerceProductDataFieldModel.php (other) CodeLength: not graded 277:28 [warning] length.function - WooCommerceProductDataFieldModel::validationRules has 67 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 18 functions Duplication: 100 (A), based on 208 code lines NamingConvention: 98 (A), based on 58 names 18:7 [warning] naming.too_long - class `WooCommerceProductDataFieldModel` is 32 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/Models/WooCommerce/WooCommerceProductDataFieldOptionModel.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 86 code lines NamingConvention: 95 (A), based on 19 names 16:7 [warning] naming.too_long - class `WooCommerceProductDataFieldOptionModel` is 38 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/Models/WooCommerce/WooCommerceProductDataModel.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 16 functions Duplication: 100 (A), based on 138 code lines NamingConvention: 100 (A), based on 32 names Security: not graded advanced-custom-post-type/src/Core/Repository/AbstractRepository.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 52 code lines NamingConvention: 100 (A), based on 15 names Security: not graded advanced-custom-post-type/src/Core/Repository/ApiRepository.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 5 functions Duplication: 70 (C), based on 95 code lines 113:1 [warning] duplication.repeated_block - lines 113 to 119 repeat lines 66 to 72 (56 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 16 names Security: not graded advanced-custom-post-type/src/Core/Repository/CustomPostTypeRepository.php (other) CodeLength: not graded 135:28 [error] length.function - CustomPostTypeRepository::get has 114 lines in its body, above 100 306:29 [warning] length.function - CustomPostTypeRepository::addWooCommerceDataToPostTypeModel has 56 lines in its body, above 50 421:28 [warning] length.function - CustomPostTypeRepository::save has 54 lines in its body, above 50 505:28 [warning] length.function - CustomPostTypeRepository::createCustomPostType has 59 lines in its body, above 50 15:7 [warning] length.class - CustomPostTypeRepository has 614 lines, above 500 for a other 1:1 [warning] length.file - the file has 628 lines, above 600 for a other CyclomaticComplexity: 85 (B), based on 13 functions 135:28 [warning] complexity.function - CustomPostTypeRepository::get has a cyclomatic complexity of 17, moderate risk (above 10): each of its 17 paths needs its own test, which makes it hard to follow and to change safely 505:28 [error] complexity.function - CustomPostTypeRepository::createCustomPostType has a cyclomatic complexity of 22, high risk (above 10): each of its 22 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 366 code lines 181:1 [warning] duplication.repeated_block - lines 181 to 184 repeat lines 30 to 33 (59 tokens); repeated code has to be fixed in every copy 464:1 [warning] duplication.repeated_block - lines 464 to 472 repeat lines 456 to 464 (57 tokens); repeated code has to be fixed in every copy NamingConvention: 96 (A), based on 49 names 306:29 [warning] naming.too_long - method `addWooCommerceDataToPostTypeModel` is 33 characters (limit 30); very long names make code hard to read 341:22 [warning] naming.too_long - variable `wooCommerceProductDataFieldModel` is 32 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/Repository/DatasetRepository.php (other) CodeLength: not graded 53:28 [warning] length.function - DatasetRepository::get has 85 lines in its body, above 50 235:28 [warning] length.function - DatasetRepository::save has 79 lines in its body, above 50 CyclomaticComplexity: 90 (A), based on 8 functions 53:28 [warning] complexity.function - DatasetRepository::get has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 192 code lines NamingConvention: 100 (A), based on 40 names Security: not graded advanced-custom-post-type/src/Core/Repository/DynamicBlockRepository.php (other) CodeLength: not graded 116:28 [warning] length.function - DynamicBlockRepository::get has 95 lines in its body, above 50 285:29 [warning] length.function - DynamicBlockRepository::hydrateBlock has 55 lines in its body, above 50 347:28 [error] length.function - DynamicBlockRepository::save has 134 lines in its body, above 100 CyclomaticComplexity: 93 (A), based on 11 functions 116:28 [warning] complexity.function - DynamicBlockRepository::get has a cyclomatic complexity of 15, moderate risk (above 10): each of its 15 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 262 code lines 399:1 [warning] duplication.repeated_block - lines 399 to 408 repeat lines 390 to 399 (83 tokens); repeated code has to be fixed in every copy 458:1 [warning] duplication.repeated_block - lines 458 to 467 repeat lines 449 to 458 (60 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 48 names Security: not graded advanced-custom-post-type/src/Core/Repository/FormRepository.php (other) CodeLength: not graded 65:28 [error] length.function - FormRepository::get has 153 lines in its body, above 100 347:29 [warning] length.function - FormRepository::hydrateForm has 65 lines in its body, above 50 421:29 [warning] length.function - FormRepository::hydrateFormField has 83 lines in its body, above 50 512:28 [warning] length.function - FormRepository::save has 99 lines in its body, above 50 623:29 [error] length.function - FormRepository::saveMetaField has 227 lines in its body, above 100 928:28 [warning] length.function - FormRepository::saveSubmission has 61 lines in its body, above 50 1002:28 [warning] length.function - FormRepository::getSubmissions has 87 lines in its body, above 50 17:7 [error] length.class - FormRepository has 1117 lines, above 1000 for a other 1:1 [warning] length.file - the file has 1133 lines, above 600 for a other CyclomaticComplexity: 86 (B), based on 16 functions 65:28 [error] complexity.function - FormRepository::get has a cyclomatic complexity of 29, high risk (above 10): each of its 29 paths needs its own test, which makes it hard to follow and to change safely 1002:28 [warning] complexity.function - FormRepository::getSubmissions has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 587 code lines 252:1 [warning] duplication.repeated_block - lines 252 to 270 repeat lines 230 to 245 (52 tokens); repeated code has to be fixed in every copy 694:1 [warning] duplication.repeated_block - lines 694 to 708 repeat lines 680 to 694 (105 tokens); repeated code has to be fixed in every copy 753:1 [warning] duplication.repeated_block - lines 753 to 768 repeat lines 677 to 692 (81 tokens); repeated code has to be fixed in every copy 769:1 [warning] duplication.repeated_block - lines 769 to 780 repeat lines 681 to 692 (70 tokens); repeated code has to be fixed in every copy 975:1 [warning] duplication.repeated_block - lines 975 to 984 repeat lines 966 to 975 (74 tokens); repeated code has to be fixed in every copy NamingConvention: 99 (A), based on 95 names 1072:14 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/Repository/ImportRepository.php (other) CodeLength: not graded 25:28 [warning] length.function - ImportRepository::import has 56 lines in its body, above 50 135:29 [error] length.function - ImportRepository::importForms has 199 lines in its body, above 100 341:29 [error] length.function - ImportRepository::importCustomPostTypes has 183 lines in its body, above 100 531:29 [warning] length.function - ImportRepository::importTaxonomies has 81 lines in its body, above 50 619:29 [warning] length.function - ImportRepository::importOptionPages has 96 lines in its body, above 50 724:29 [error] length.function - ImportRepository::importMetaGroups has 204 lines in its body, above 100 938:29 [error] length.function - ImportRepository::importMetaField has 540 lines in its body, above 100 14:7 [error] length.class - ImportRepository has 1685 lines, above 1000 for a other 1:1 [error] length.file - the file has 1698 lines, above 1200 for a other CyclomaticComplexity: 59 (F), based on 17 functions 25:28 [warning] complexity.function - ImportRepository::import has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely 341:29 [warning] complexity.function - ImportRepository::importCustomPostTypes has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely 619:29 [warning] complexity.function - ImportRepository::importOptionPages has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely 724:29 [error] complexity.function - ImportRepository::importMetaGroups has a cyclomatic complexity of 22, high risk (above 10): each of its 22 paths needs its own test, which makes it hard to follow and to change safely 938:29 [error] complexity.function - ImportRepository::importMetaField has a cyclomatic complexity of 46, high risk (above 10): each of its 46 paths needs its own test, which makes it hard to follow and to change safely 1540:29 [warning] complexity.function - ImportRepository::saveImportedTable has a cyclomatic complexity of 20, moderate risk (above 10): each of its 20 paths needs its own test, which makes it hard to follow and to change safely Duplication: 0 (F), based on 812 code lines 262:1 [warning] duplication.repeated_block - lines 262 to 274 repeat lines 250 to 262 (79 tokens); repeated code has to be fixed in every copy 382:1 [warning] duplication.repeated_block - lines 382 to 389 repeat lines 375 to 382 (58 tokens); repeated code has to be fixed in every copy 461:1 [warning] duplication.repeated_block - lines 461 to 468 repeat lines 387 to 394 (64 tokens); repeated code has to be fixed in every copy 486:1 [warning] duplication.repeated_block - lines 486 to 500 repeat lines 412 to 426 (91 tokens); repeated code has to be fixed in every copy 571:1 [warning] duplication.repeated_block - lines 571 to 578 repeat lines 461 to 468 (66 tokens); repeated code has to be fixed in every copy 578:1 [warning] duplication.repeated_block - lines 578 to 610 repeat lines 394 to 426 (105 tokens); repeated code has to be fixed in every copy 667:1 [warning] duplication.repeated_block - lines 667 to 676 repeat lines 658 to 667 (69 tokens); repeated code has to be fixed in every copy 676:1 [warning] duplication.repeated_block - lines 676 to 713 repeat lines 389 to 426 (149 tokens); repeated code has to be fixed in every copy 757:1 [warning] duplication.repeated_block - lines 757 to 762 repeat lines 752 to 757 (83 tokens); repeated code has to be fixed in every copy 907:1 [warning] duplication.repeated_block - lines 907 to 915 repeat lines 899 to 907 (61 tokens); repeated code has to be fixed in every copy 993:1 [warning] duplication.repeated_block - lines 993 to 1003 repeat lines 983 to 993 (53 tokens); repeated code has to be fixed in every copy 1042:1 [warning] duplication.repeated_block - lines 1042 to 1067 repeat lines 980 to 1005 (121 tokens); repeated code has to be fixed in every copy 1104:1 [warning] duplication.repeated_block - lines 1104 to 1115 repeat lines 984 to 995 (55 tokens); repeated code has to be fixed in every copy 1115:1 [warning] duplication.repeated_block - lines 1115 to 1124 repeat lines 996 to 1005 (51 tokens); repeated code has to be fixed in every copy 1126:1 [warning] duplication.repeated_block - lines 1126 to 1162 repeat lines 390 to 426 (147 tokens); repeated code has to be fixed in every copy 1381:1 [warning] duplication.repeated_block - lines 1381 to 1390 repeat lines 899 to 908 (63 tokens); repeated code has to be fixed in every copy 1390:1 [warning] duplication.repeated_block - lines 1390 to 1398 repeat lines 899 to 907 (62 tokens); repeated code has to be fixed in every copy 1671:1 [warning] duplication.repeated_block - lines 1671 to 1685 repeat lines 412 to 426 (91 tokens); repeated code has to be fixed in every copy NamingConvention: 92 (A), based on 66 names 25:42 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds 1405:18 [warning] naming.too_short - variable `a` is 1 character (at least 2); a one letter name hides its meaning 1406:18 [warning] naming.too_short - variable `b` is 1 character (at least 2); a one letter name hides its meaning 1407:18 [warning] naming.too_short - variable `c` is 1 character (at least 2); a one letter name hides its meaning 1408:18 [warning] naming.too_short - variable `d` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Core/Repository/MetaGroupBelongsRepository.php (other) CodeLength: not graded 18:28 [warning] length.function - MetaGroupBelongsRepository::get has 75 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 60 code lines NamingConvention: 100 (A), based on 11 names Security: not graded advanced-custom-post-type/src/Core/Repository/MetaKeyRepository.php (other) CodeLength: not graded 30:28 [warning] length.function - MetaKeyRepository::getMetaKeys has 78 lines in its body, above 50 146:29 [error] length.function - MetaKeyRepository::buildMetaKeysUnionParts has 215 lines in its body, above 100 CyclomaticComplexity: 62 (D), based on 3 functions 30:28 [error] complexity.function - MetaKeyRepository::getMetaKeys has a cyclomatic complexity of 21, high risk (above 10): each of its 21 paths needs its own test, which makes it hard to follow and to change safely 146:29 [warning] complexity.function - MetaKeyRepository::buildMetaKeysUnionParts has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 173 code lines NamingConvention: 98 (A), based on 40 names 153:10 [warning] naming.too_short - variable `b` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Core/Repository/MetaRepository.php (other) CodeLength: not graded 130:28 [warning] length.function - MetaRepository::deleteMetaGroup has 66 lines in its body, above 50 205:28 [warning] length.function - MetaRepository::deleteMetaBox has 73 lines in its body, above 50 357:28 [warning] length.function - MetaRepository::deleteMetaField has 67 lines in its body, above 50 533:28 [error] length.function - MetaRepository::get has 104 lines in its body, above 100 692:29 [error] length.function - MetaRepository::getResults has 307 lines in its body, above 100 1113:28 [warning] length.function - MetaRepository::getNames has 69 lines in its body, above 50 1197:28 [error] length.function - MetaRepository::hydrateMetaBoxFieldModel has 342 lines in its body, above 100 1548:28 [error] length.function - MetaRepository::getMetaBoxByName has 142 lines in its body, above 100 1697:28 [error] length.function - MetaRepository::getMetaFieldByName has 136 lines in its body, above 100 1842:28 [error] length.function - MetaRepository::getMetaBoxById has 211 lines in its body, above 100 2179:28 [error] length.function - MetaRepository::getMetaFieldById has 118 lines in its body, above 100 2305:28 [error] length.function - MetaRepository::getMetaFields has 126 lines in its body, above 100 2476:28 [error] length.function - MetaRepository::saveMetaGroup has 117 lines in its body, above 100 2600:28 [error] length.function - MetaRepository::saveMetaBox has 113 lines in its body, above 100 2720:28 [error] length.function - MetaRepository::saveMetaBoxField has 444 lines in its body, above 100 3171:29 [error] length.function - MetaRepository::saveMetaField has 115 lines in its body, above 100 3293:28 [warning] length.function - MetaRepository::saveMetaBlock has 59 lines in its body, above 50 3359:28 [error] length.function - MetaRepository::removeMetaOrphans has 248 lines in its body, above 100 3836:28 [warning] length.function - MetaRepository::removeOrphanVisibilityConditions has 70 lines in its body, above 50 3918:28 [warning] length.function - MetaRepository::removeOrphanBoxVisibilityConditions has 74 lines in its body, above 50 3998:28 [warning] length.function - MetaRepository::removeOrphanRelationships has 62 lines in its body, above 50 4068:28 [warning] length.function - MetaRepository::findInversedRelation has 60 lines in its body, above 50 4133:28 [error] length.function - MetaRepository::getAllAssociatedPostTypesAndTaxonomies has 109 lines in its body, above 100 31:7 [error] length.class - MetaRepository has 4250 lines, above 1000 for a other 1:1 [error] length.file - the file has 4280 lines, above 1200 for a other CyclomaticComplexity: 64 (D), based on 46 functions 533:28 [warning] complexity.function - MetaRepository::get has a cyclomatic complexity of 16, moderate risk (above 10): each of its 16 paths needs its own test, which makes it hard to follow and to change safely 692:29 [error] complexity.function - MetaRepository::getResults has a cyclomatic complexity of 39, high risk (above 10): each of its 39 paths needs its own test, which makes it hard to follow and to change safely 1197:28 [error] complexity.function - MetaRepository::hydrateMetaBoxFieldModel has a cyclomatic complexity of 45, high risk (above 10): each of its 45 paths needs its own test, which makes it hard to follow and to change safely 1548:28 [warning] complexity.function - MetaRepository::getMetaBoxByName has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely 1697:28 [error] complexity.function - MetaRepository::getMetaFieldByName has a cyclomatic complexity of 22, high risk (above 10): each of its 22 paths needs its own test, which makes it hard to follow and to change safely 1842:28 [warning] complexity.function - MetaRepository::getMetaBoxById has a cyclomatic complexity of 19, moderate risk (above 10): each of its 19 paths needs its own test, which makes it hard to follow and to change safely 2179:28 [warning] complexity.function - MetaRepository::getMetaFieldById has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely 2305:28 [warning] complexity.function - MetaRepository::getMetaFields has a cyclomatic complexity of 17, moderate risk (above 10): each of its 17 paths needs its own test, which makes it hard to follow and to change safely 2720:28 [error] complexity.function - MetaRepository::saveMetaBoxField has a cyclomatic complexity of 21, high risk (above 10): each of its 21 paths needs its own test, which makes it hard to follow and to change safely 3171:29 [warning] complexity.function - MetaRepository::saveMetaField has a cyclomatic complexity of 17, moderate risk (above 10): each of its 17 paths needs its own test, which makes it hard to follow and to change safely 3359:28 [error] complexity.function - MetaRepository::removeMetaOrphans has a cyclomatic complexity of 27, high risk (above 10): each of its 27 paths needs its own test, which makes it hard to follow and to change safely 3918:28 [warning] complexity.function - MetaRepository::removeOrphanBoxVisibilityConditions has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely 4133:28 [error] complexity.function - MetaRepository::getAllAssociatedPostTypesAndTaxonomies has a cyclomatic complexity of 21, high risk (above 10): each of its 21 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 2439 code lines 339:1 [warning] duplication.repeated_block - lines 339 to 359 repeat lines 187 to 207 (63 tokens); repeated code has to be fixed in every copy 389:1 [warning] duplication.repeated_block - lines 389 to 396 repeat lines 241 to 248 (59 tokens); repeated code has to be fixed in every copy 397:1 [warning] duplication.repeated_block - lines 397 to 407 repeat lines 250 to 260 (65 tokens); repeated code has to be fixed in every copy 411:1 [warning] duplication.repeated_block - lines 411 to 435 repeat lines 265 to 291 (106 tokens); repeated code has to be fixed in every copy 1471:1 [warning] duplication.repeated_block - lines 1471 to 1488 repeat lines 985 to 1001 (92 tokens); repeated code has to be fixed in every copy 1601:1 [warning] duplication.repeated_block - lines 1601 to 1612 repeat lines 886 to 897 (56 tokens); repeated code has to be fixed in every copy 1626:1 [warning] duplication.repeated_block - lines 1626 to 1657 repeat lines 971 to 1001 (172 tokens); repeated code has to be fixed in every copy 1931:1 [warning] duplication.repeated_block - lines 1931 to 1946 repeat lines 838 to 853 (76 tokens); repeated code has to be fixed in every copy 2012:1 [warning] duplication.repeated_block - lines 2012 to 2040 repeat lines 971 to 999 (171 tokens); repeated code has to be fixed in every copy 2132:1 [warning] duplication.repeated_block - lines 2132 to 2179 repeat lines 2074 to 2120 (173 tokens); repeated code has to be fixed in every copy 2227:1 [warning] duplication.repeated_block - lines 2227 to 2234 repeat lines 1198 to 1205 (50 tokens); repeated code has to be fixed in every copy 2407:1 [warning] duplication.repeated_block - lines 2407 to 2413 repeat lines 1199 to 1205 (51 tokens); repeated code has to be fixed in every copy 2455:1 [warning] duplication.repeated_block - lines 2455 to 2462 repeat lines 1424 to 1431 (63 tokens); repeated code has to be fixed in every copy 2692:1 [warning] duplication.repeated_block - lines 2692 to 2700 repeat lines 2684 to 2692 (54 tokens); repeated code has to be fixed in every copy 2953:1 [warning] duplication.repeated_block - lines 2953 to 2962 repeat lines 2684 to 2693 (66 tokens); repeated code has to be fixed in every copy 2963:1 [warning] duplication.repeated_block - lines 2963 to 2970 repeat lines 2685 to 2692 (54 tokens); repeated code has to be fixed in every copy 3091:1 [warning] duplication.repeated_block - lines 3091 to 3100 repeat lines 3082 to 3091 (66 tokens); repeated code has to be fixed in every copy 3393:1 [warning] duplication.repeated_block - lines 3393 to 3409 repeat lines 151 to 165 (58 tokens); repeated code has to be fixed in every copy 3487:1 [warning] duplication.repeated_block - lines 3487 to 3504 repeat lines 3469 to 3486 (66 tokens); repeated code has to be fixed in every copy 3644:1 [warning] duplication.repeated_block - lines 3644 to 3676 repeat lines 3602 to 3636 (128 tokens); repeated code has to be fixed in every copy 3676:1 [warning] duplication.repeated_block - lines 3676 to 3716 repeat lines 3636 to 3676 (154 tokens); repeated code has to be fixed in every copy 3716:1 [warning] duplication.repeated_block - lines 3716 to 3756 repeat lines 3636 to 3676 (154 tokens); repeated code has to be fixed in every copy 3843:1 [warning] duplication.repeated_block - lines 3843 to 3858 repeat lines 3804 to 3819 (55 tokens); repeated code has to be fixed in every copy 3862:1 [warning] duplication.repeated_block - lines 3862 to 3878 repeat lines 3811 to 3826 (78 tokens); repeated code has to be fixed in every copy 3929:1 [warning] duplication.repeated_block - lines 3929 to 3945 repeat lines 3854 to 3870 (55 tokens); repeated code has to be fixed in every copy 3945:1 [warning] duplication.repeated_block - lines 3945 to 3963 repeat lines 3858 to 3877 (92 tokens); repeated code has to be fixed in every copy 3974:1 [warning] duplication.repeated_block - lines 3974 to 3979 repeat lines 3897 to 3902 (62 tokens); repeated code has to be fixed in every copy 4101:1 [warning] duplication.repeated_block - lines 4101 to 4113 repeat lines 1508 to 1520 (87 tokens); repeated code has to be fixed in every copy NamingConvention: 95 (A), based on 231 names 652:29 [warning] naming.too_long - method `resolveVisibilityConditionTypeValue` is 35 characters (limit 30); very long names make code hard to read 2977:18 [warning] naming.too_short - variable `a` is 1 character (at least 2); a one letter name hides its meaning 2978:18 [warning] naming.too_short - variable `b` is 1 character (at least 2); a one letter name hides its meaning 2979:18 [warning] naming.too_short - variable `c` is 1 character (at least 2); a one letter name hides its meaning 2980:18 [warning] naming.too_short - variable `d` is 1 character (at least 2); a one letter name hides its meaning 3187:10 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds 3479:10 [warning] naming.too_long - variable `deleteBoxVisibilityConditionsQuery` is 34 characters (limit 30); very long names make code hard to read 3497:10 [warning] naming.too_long - variable `deleteVisibilityConditionsQuery` is 31 characters (limit 30); very long names make code hard to read 3836:28 [warning] naming.too_long - method `removeOrphanVisibilityConditions` is 32 characters (limit 30); very long names make code hard to read 3918:28 [warning] naming.too_long - method `removeOrphanBoxVisibilityConditions` is 35 characters (limit 30); very long names make code hard to read 4133:28 [warning] naming.too_long - method `getAllAssociatedPostTypesAndTaxonomies` is 38 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/Repository/OptionPageRepository.php (other) CodeLength: not graded 248:28 [error] length.function - OptionPageRepository::get has 164 lines in its body, above 100 446:28 [warning] length.function - OptionPageRepository::getById has 81 lines in its body, above 50 534:28 [warning] length.function - OptionPageRepository::save has 70 lines in its body, above 50 11:7 [warning] length.class - OptionPageRepository has 595 lines, above 500 for a other 1:1 [warning] length.file - the file has 605 lines, above 600 for a other CyclomaticComplexity: 90 (A), based on 12 functions 248:28 [warning] complexity.function - OptionPageRepository::get has a cyclomatic complexity of 19, moderate risk (above 10): each of its 19 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 321 code lines 229:1 [warning] duplication.repeated_block - lines 229 to 248 repeat lines 206 to 222 (52 tokens); repeated code has to be fixed in every copy 392:1 [warning] duplication.repeated_block - lines 392 to 403 repeat lines 339 to 352 (52 tokens); repeated code has to be fixed in every copy 467:1 [warning] duplication.repeated_block - lines 467 to 478 repeat lines 327 to 338 (76 tokens); repeated code has to be fixed in every copy 510:1 [warning] duplication.repeated_block - lines 510 to 520 repeat lines 387 to 398 (61 tokens); repeated code has to be fixed in every copy 586:1 [warning] duplication.repeated_block - lines 586 to 596 repeat lines 576 to 586 (60 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 51 names Security: not graded advanced-custom-post-type/src/Core/Repository/PermissionRepository.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 7 functions Duplication: 100 (A), based on 85 code lines NamingConvention: 94 (A), based on 17 names 47:29 [warning] naming.too_long - method `invalidateOwningEntityCacheTags` is 31 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/Repository/SettingsRepository.php (other) CodeLength: not graded 32:28 [warning] length.function - SettingsRepository::get has 60 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 72 code lines NamingConvention: 94 (A), based on 18 names 17:10 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/Repository/TableGroupRepository.php (other) CodeLength: not graded 105:28 [warning] length.function - TableGroupRepository::get has 73 lines in its body, above 50 186:28 [warning] length.function - TableGroupRepository::save has 99 lines in its body, above 50 328:29 [warning] length.function - TableGroupRepository::hydrateGroup has 54 lines in its body, above 50 CyclomaticComplexity: 87 (B), based on 8 functions 105:28 [warning] complexity.function - TableGroupRepository::get has a cyclomatic complexity of 15, moderate risk (above 10): each of its 15 paths needs its own test, which makes it hard to follow and to change safely 328:29 [warning] complexity.function - TableGroupRepository::hydrateGroup has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 226 code lines 130:1 [warning] duplication.repeated_block - lines 130 to 133 repeat lines 22 to 25 (57 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 38 names Security: not graded advanced-custom-post-type/src/Core/Repository/TableRecordRepository.php (other) CodeLength: not graded 628:29 [error] length.function - TableRecordRepository::getJSONStats has 351 lines in its body, above 100 14:7 [error] length.class - TableRecordRepository has 1052 lines, above 1000 for a other 1:1 [warning] length.file - the file has 1065 lines, above 600 for a other CyclomaticComplexity: 56 (F), based on 29 functions 332:29 [warning] complexity.function - TableRecordRepository::formatLocationValue has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely 628:29 [error] complexity.function - TableRecordRepository::getJSONStats has a cyclomatic complexity of 58, untestable risk (above 10): each of its 58 paths needs its own test, which makes it hard to follow and to change safely Duplication: 85 (B), based on 631 code lines 579:1 [warning] duplication.repeated_block - lines 579 to 585 repeat lines 544 to 550 (55 tokens); repeated code has to be fixed in every copy 738:1 [warning] duplication.repeated_block - lines 738 to 749 repeat lines 719 to 730 (53 tokens); repeated code has to be fixed in every copy 903:1 [warning] duplication.repeated_block - lines 903 to 914 repeat lines 840 to 851 (60 tokens); repeated code has to be fixed in every copy 917:1 [warning] duplication.repeated_block - lines 917 to 928 repeat lines 889 to 900 (63 tokens); repeated code has to be fixed in every copy NamingConvention: 99 (A), based on 82 names 407:10 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/Repository/TableRepository.php (other) CodeLength: not graded 210:29 [error] length.function - TableRepository::hydrateTable has 159 lines in its body, above 100 382:29 [error] length.function - TableRepository::hydrateColumn has 136 lines in its body, above 100 584:28 [warning] length.function - TableRepository::get has 75 lines in its body, above 50 735:28 [error] length.function - TableRepository::save has 242 lines in its body, above 100 989:29 [error] length.function - TableRepository::handleUiFieldRelationship has 145 lines in its body, above 100 23:7 [error] length.class - TableRepository has 1145 lines, above 1000 for a other 1:1 [warning] length.file - the file has 1167 lines, above 600 for a other CyclomaticComplexity: 55 (F), based on 15 functions 210:29 [error] complexity.function - TableRepository::hydrateTable has a cyclomatic complexity of 30, high risk (above 10): each of its 30 paths needs its own test, which makes it hard to follow and to change safely 382:29 [error] complexity.function - TableRepository::hydrateColumn has a cyclomatic complexity of 32, high risk (above 10): each of its 32 paths needs its own test, which makes it hard to follow and to change safely 584:28 [warning] complexity.function - TableRepository::get has a cyclomatic complexity of 15, moderate risk (above 10): each of its 15 paths needs its own test, which makes it hard to follow and to change safely 735:28 [error] complexity.function - TableRepository::save has a cyclomatic complexity of 22, high risk (above 10): each of its 22 paths needs its own test, which makes it hard to follow and to change safely 989:29 [warning] complexity.function - TableRepository::handleUiFieldRelationship has a cyclomatic complexity of 17, moderate risk (above 10): each of its 17 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 686 code lines 423:1 [warning] duplication.repeated_block - lines 423 to 429 repeat lines 408 to 414 (54 tokens); repeated code has to be fixed in every copy 429:1 [warning] duplication.repeated_block - lines 429 to 444 repeat lines 414 to 429 (79 tokens); repeated code has to be fixed in every copy 504:1 [warning] duplication.repeated_block - lines 504 to 515 repeat lines 239 to 250 (71 tokens); repeated code has to be fixed in every copy 610:1 [warning] duplication.repeated_block - lines 610 to 616 repeat lines 48 to 54 (59 tokens); repeated code has to be fixed in every copy 780:1 [warning] duplication.repeated_block - lines 780 to 795 repeat lines 766 to 780 (93 tokens); repeated code has to be fixed in every copy 844:1 [warning] duplication.repeated_block - lines 844 to 861 repeat lines 827 to 844 (156 tokens); repeated code has to be fixed in every copy 900:1 [warning] duplication.repeated_block - lines 900 to 909 repeat lines 891 to 900 (60 tokens); repeated code has to be fixed in every copy 941:1 [warning] duplication.repeated_block - lines 941 to 949 repeat lines 933 to 941 (58 tokens); repeated code has to be fixed in every copy 1153:1 [warning] duplication.repeated_block - lines 1153 to 1158 repeat lines 1146 to 1151 (82 tokens); repeated code has to be fixed in every copy 1160:1 [warning] duplication.repeated_block - lines 1160 to 1165 repeat lines 1146 to 1151 (82 tokens); repeated code has to be fixed in every copy NamingConvention: 98 (A), based on 101 names 304:30 [warning] naming.generic - variable `obj` is a generic name; it says nothing about what it holds 471:18 [warning] naming.too_short - variable `c` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Core/Repository/TaxonomyRepository.php (other) CodeLength: not graded 147:28 [error] length.function - TaxonomyRepository::get has 153 lines in its body, above 100 430:28 [warning] length.function - TaxonomyRepository::createCustomTaxonomy has 60 lines in its body, above 50 CyclomaticComplexity: 72 (C), based on 11 functions 147:28 [error] complexity.function - TaxonomyRepository::get has a cyclomatic complexity of 23, high risk (above 10): each of its 23 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 273 code lines 194:1 [warning] duplication.repeated_block - lines 194 to 197 repeat lines 61 to 64 (59 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 44 names Security: not graded advanced-custom-post-type/src/Core/Repository/WooCommerceProductDataRepository.php (other) CodeLength: not graded 153:28 [error] length.function - WooCommerceProductDataRepository::get has 110 lines in its body, above 100 472:28 [warning] length.function - WooCommerceProductDataRepository::saveFields has 94 lines in its body, above 50 11:7 [warning] length.class - WooCommerceProductDataRepository has 612 lines, above 500 for a other 1:1 [warning] length.file - the file has 622 lines, above 600 for a other CyclomaticComplexity: 100 (A), based on 17 functions Duplication: 70 (C), based on 331 code lines 70:1 [warning] duplication.repeated_block - lines 70 to 74 repeat lines 39 to 43 (72 tokens); repeated code has to be fixed in every copy 77:1 [warning] duplication.repeated_block - lines 77 to 101 repeat lines 22 to 46 (124 tokens); repeated code has to be fixed in every copy 297:1 [warning] duplication.repeated_block - lines 297 to 314 repeat lines 275 to 292 (59 tokens); repeated code has to be fixed in every copy NamingConvention: 98 (A), based on 54 names 11:7 [warning] naming.too_long - class `WooCommerceProductDataRepository` is 32 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/AbstractACPTShortcode.php (other) CodeLength: not graded 56:24 [error] length.function - AbstractACPTShortcode::renderShortcode has 192 lines in its body, above 100 CyclomaticComplexity: 26 (F), based on 5 functions 56:24 [error] complexity.function - AbstractACPTShortcode::renderShortcode has a cyclomatic complexity of 62, untestable risk (above 10): each of its 62 paths needs its own test, which makes it hard to follow and to change safely 280:22 [warning] complexity.function - AbstractACPTShortcode::renderCctField has a cyclomatic complexity of 17, moderate risk (above 10): each of its 17 paths needs its own test, which makes it hard to follow and to change safely Duplication: 85 (B), based on 237 code lines 211:1 [warning] duplication.repeated_block - lines 211 to 220 repeat lines 202 to 211 (54 tokens); repeated code has to be fixed in every copy NamingConvention: 98 (A), based on 48 names 161:26 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/AttachmentMetaShortcode.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 16 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/CctMetaShortcode.php (other) CodeLength: not graded 19:21 [warning] length.function - CctMetaShortcode::render has 74 lines in its body, above 50 CyclomaticComplexity: 52 (F), based on 2 functions 19:21 [error] complexity.function - CctMetaShortcode::render has a cyclomatic complexity of 24, high risk (above 10): each of its 24 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 92 code lines NamingConvention: 95 (A), based on 19 names 47:44 [warning] naming.too_short - variable `f` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/CommentMetaShortcode.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 14 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/DTO/ShortcodePayload.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 0 (F), based on 29 code lines 24:1 [warning] duplication.repeated_block - lines 24 to 33 repeat lines 14 to 24 (58 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 26 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/AbstractField.php (other) CodeLength: not graded 390:24 [warning] length.function - AbstractField::fetchRawData has 83 lines in its body, above 50 22:16 [warning] length.class - AbstractField has 520 lines, above 500 for a other CyclomaticComplexity: 84 (B), based on 23 functions 390:24 [error] complexity.function - AbstractField::fetchRawData has a cyclomatic complexity of 24, high risk (above 10): each of its 24 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 320 code lines NamingConvention: 96 (A), based on 67 names 65:30 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds 177:14 [warning] naming.inconsistent_style - variable `advanced_options` is snake_case, while most variables and parameters in this file are camelCase (11 of 40 names); mixed styles make code harder to scan 179:44 [warning] naming.inconsistent_style - variable `advanced_option` is snake_case, while most variables and parameters in this file are camelCase (11 of 40 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/AddressField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 24 code lines NamingConvention: 100 (A), based on 9 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/AddressMultiField.php (other) CodeLength: not graded 13:21 [warning] length.function - AddressMultiField::render has 51 lines in its body, above 50 CyclomaticComplexity: 70 (C), based on 1 function 13:21 [warning] complexity.function - AddressMultiField::render has a cyclomatic complexity of 16, moderate risk (above 10): each of its 16 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 45 code lines NamingConvention: 95 (A), based on 19 names 45:10 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/AudioField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 44 code lines NamingConvention: 100 (A), based on 12 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/AudioMultiField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 52 code lines NamingConvention: 100 (A), based on 13 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/BarcodeField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 37 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/CheckboxField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 25 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/CloneField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 8 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/ColorField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 15 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/CountryField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 26 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/CurrencyField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 26 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/DateField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 56 code lines NamingConvention: 100 (A), based on 9 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/DateRangeField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 38 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/DateTimeField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 31 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/EditorField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 26 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/EmailField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 22 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/EmbedField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 28 code lines NamingConvention: 88 (B), based on 8 names 33:67 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/FileField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 30 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/FlexibleContentField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 11 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/GalleryField.php (other) CodeLength: not graded 48:22 [warning] length.function - GalleryField::renderGallery has 92 lines in its body, above 50 CyclomaticComplexity: 79 (C), based on 3 functions 48:22 [warning] complexity.function - GalleryField::renderGallery has a cyclomatic complexity of 20, moderate risk (above 10): each of its 20 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 108 code lines 154:1 [warning] duplication.repeated_block - lines 154 to 159 repeat lines 147 to 152 (108 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 19 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/HTMLField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 16 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/IDField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 19 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/IconField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 15 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/ImageField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 47 code lines NamingConvention: 100 (A), based on 9 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/ImageSliderField.php (other) CodeLength: not graded CyclomaticComplexity: 70 (C), based on 1 function 21:21 [warning] complexity.function - ImageSliderField::render has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 39 code lines NamingConvention: 100 (A), based on 11 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/LengthField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 26 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/ListField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 25 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/MessageField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 24 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/NumberField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 17 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/PasswordField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 18 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/PhoneField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 29 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/PostField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 52 code lines NamingConvention: 89 (B), based on 9 names 46:58 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/PostObjectField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 16 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/PostObjectMultiField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 30 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/QRCodeField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 37 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/RadioField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 23 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/RangeField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 20 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/RatingField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 15 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/RepeaterField.php (other) CodeLength: not graded 15:21 [warning] length.function - RepeaterField::render has 61 lines in its body, above 50 CyclomaticComplexity: 85 (B), based on 3 functions 15:21 [warning] complexity.function - RepeaterField::render has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 97 code lines 44:1 [warning] duplication.repeated_block - lines 44 to 51 repeat lines 37 to 44 (60 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 18 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/SelectField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 24 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/SelectMultiField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 25 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/TableField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 25 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/TermObjectField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 19 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/TermObjectMultiField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 30 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/TextField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 19 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/TextareaField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 23 code lines NamingConvention: 83 (B), based on 6 names 37:45 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/TimeField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 29 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/ToggleField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 26 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/UrlField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 38 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/UserField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 16 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/UserMultiField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 27 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/VideoField.php (other) CodeLength: not graded CyclomaticComplexity: 74 (C), based on 2 functions 10:21 [warning] complexity.function - VideoField::render has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 40 code lines NamingConvention: 100 (A), based on 9 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/VideoMultiField.php (other) CodeLength: not graded 47:22 [warning] length.function - VideoMultiField::renderVideoGallery has 75 lines in its body, above 50 CyclomaticComplexity: 81 (B), based on 3 functions 47:22 [warning] complexity.function - VideoMultiField::renderVideoGallery has a cyclomatic complexity of 18, moderate risk (above 10): each of its 18 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 93 code lines 135:1 [warning] duplication.repeated_block - lines 135 to 140 repeat lines 128 to 133 (108 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 17 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/Fields/WeightField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 26 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/OptionPageMetaShortcode.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 18 code lines NamingConvention: 100 (A), based on 9 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/PostMetaShortcode.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 23 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/TaxonomyMetaShortcode.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 24 code lines NamingConvention: 100 (A), based on 9 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/UserMetaShortcode.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 18 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Core/Shortcodes/ACPT/WooCommerceProductAttributeShortcode.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 18 code lines NamingConvention: 89 (B), based on 9 names 8:7 [warning] naming.too_long - class `WooCommerceProductAttributeShortcode` is 36 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/Shortcodes/Form/FormShortcode.php (other) CodeLength: not graded 21:21 [warning] length.function - FormShortcode::render has 59 lines in its body, above 50 CyclomaticComplexity: 70 (C), based on 1 function 21:21 [warning] complexity.function - FormShortcode::render has a cyclomatic complexity of 20, moderate risk (above 10): each of its 20 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 49 code lines NamingConvention: 100 (A), based on 14 names Security: not graded advanced-custom-post-type/src/Core/Traits/BelongsToTrait.php (other) CodeLength: not graded 61:22 [warning] length.function - BelongsToTrait::returnTrueOrFalseForALogicBlock has 77 lines in its body, above 50 CyclomaticComplexity: 61 (D), based on 4 functions 61:22 [error] complexity.function - BelongsToTrait::returnTrueOrFalseForALogicBlock has a cyclomatic complexity of 25, high risk (above 10): each of its 25 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 113 code lines NamingConvention: 94 (A), based on 16 names 61:22 [warning] naming.too_long - method `returnTrueOrFalseForALogicBlock` is 31 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/Traits/CollectionsTrait.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 24 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Core/Traits/PermissionTrait.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 7 functions Duplication: 100 (A), based on 67 code lines NamingConvention: 100 (A), based on 18 names Security: not graded advanced-custom-post-type/src/Core/Traits/VisibilityTrait.php (other) CodeLength: not graded 30:21 [error] length.function - VisibilityTrait::evaluateVisibilityFromLocationRules has 360 lines in its body, above 100 432:22 [warning] length.function - VisibilityTrait::reviewCondition has 53 lines in its body, above 50 CyclomaticComplexity: 14 (F), based on 3 functions 30:21 [error] complexity.function - VisibilityTrait::evaluateVisibilityFromLocationRules has a cyclomatic complexity of 115, untestable risk (above 10): each of its 115 paths needs its own test, which makes it hard to follow and to change safely 432:22 [warning] complexity.function - VisibilityTrait::reviewCondition has a cyclomatic complexity of 18, moderate risk (above 10): each of its 18 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 313 code lines 238:1 [warning] duplication.repeated_block - lines 238 to 256 repeat lines 149 to 167 (60 tokens); repeated code has to be fixed in every copy 400:1 [warning] duplication.repeated_block - lines 400 to 410 repeat lines 127 to 137 (53 tokens); repeated code has to be fixed in every copy NamingConvention: 98 (A), based on 42 names 30:21 [warning] naming.too_long - method `evaluateVisibilityFromLocationRules` is 35 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Core/Validators/ArgumentsArrayValidator.php (other) CodeLength: not graded 30:21 [warning] length.function - ArgumentsArrayValidator::validate has 67 lines in its body, above 50 CyclomaticComplexity: 36 (F), based on 3 functions 30:21 [error] complexity.function - ArgumentsArrayValidator::validate has a cyclomatic complexity of 23, high risk (above 10): each of its 23 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 70 code lines NamingConvention: 88 (B), based on 17 names 57:18 [warning] naming.inconsistent_style - variable `get_type` is snake_case, while most variables and parameters in this file are camelCase (4 of 12 names); mixed styles make code harder to scan 66:45 [warning] naming.too_short - variable `v` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Core/Validators/ImportFileValidator.php (other) CodeLength: not graded 14:28 [warning] length.function - ImportFileValidator::validate has 89 lines in its body, above 50 CyclomaticComplexity: 50 (F), based on 10 functions 14:28 [error] complexity.function - ImportFileValidator::validate has a cyclomatic complexity of 28, high risk (above 10): each of its 28 paths needs its own test, which makes it hard to follow and to change safely 110:29 [warning] complexity.function - ImportFileValidator::validateMeta has a cyclomatic complexity of 14, moderate risk (above 10): each of its 14 paths needs its own test, which makes it hard to follow and to change safely 149:29 [error] complexity.function - ImportFileValidator::validateMetaField has a cyclomatic complexity of 24, high risk (above 10): each of its 24 paths needs its own test, which makes it hard to follow and to change safely 231:29 [error] complexity.function - ImportFileValidator::validateOptionPage has a cyclomatic complexity of 23, high risk (above 10): each of its 23 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 240 code lines 161:1 [warning] duplication.repeated_block - lines 161 to 173 repeat lines 125 to 137 (59 tokens); repeated code has to be fixed in every copy 222:1 [warning] duplication.repeated_block - lines 222 to 234 repeat lines 140 to 152 (52 tokens); repeated code has to be fixed in every copy 254:1 [warning] duplication.repeated_block - lines 254 to 265 repeat lines 235 to 246 (102 tokens); repeated code has to be fixed in every copy NamingConvention: 95 (A), based on 21 names 14:44 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/Validators/MetaDataValidator.php (other) CodeLength: not graded 17:28 [error] length.function - MetaDataValidator::validate has 149 lines in its body, above 100 CyclomaticComplexity: 2 (F), based on 2 functions 17:28 [error] complexity.function - MetaDataValidator::validate has a cyclomatic complexity of 60, untestable risk (above 10): each of its 60 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 132 code lines 134:1 [warning] duplication.repeated_block - lines 134 to 144 repeat lines 117 to 127 (68 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 18 names Security: not graded advanced-custom-post-type/src/Core/ValueObjects/AbstractValueObject.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 13 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Core/ValueObjects/CharsetAndCollateObject.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 33 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Core/ValueObjects/ColumnOptionObject.php (other) CodeLength: not graded 216:21 [warning] length.function - ColumnOptionObject::addColumnOptionExpression has 58 lines in its body, above 50 CyclomaticComplexity: 95 (A), based on 8 functions 180:22 [warning] complexity.function - ColumnOptionObject::validateValue has a cyclomatic complexity of 15, moderate risk (above 10): each of its 15 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 150 code lines NamingConvention: 100 (A), based on 21 names Security: not graded advanced-custom-post-type/src/Core/ValueObjects/ColumnRelationshipObject.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 11 functions Duplication: 40 (F), based on 89 code lines 65:1 [warning] duplication.repeated_block - lines 65 to 81 repeat lines 50 to 63 (56 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 19 names Security: not graded advanced-custom-post-type/src/Core/ValueObjects/ColumnValueObject.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 26 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Core/ValueObjects/ConditionalRenderingObject.php (other) CodeLength: not graded CyclomaticComplexity: 94 (A), based on 8 functions 93:21 [warning] complexity.function - ConditionalRenderingObject::fromArray has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 142 code lines NamingConvention: 100 (A), based on 24 names Security: not graded advanced-custom-post-type/src/Core/ValueObjects/DynamicBlockFieldOption.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 6 functions Duplication: 100 (A), based on 45 code lines NamingConvention: 100 (A), based on 14 names Security: not graded advanced-custom-post-type/src/Core/ValueObjects/FlexibleBlockObject.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 32 code lines NamingConvention: 100 (A), based on 9 names Security: not graded advanced-custom-post-type/src/Core/ValueObjects/FormSubmissionDatumObject.php (other) CodeLength: not graded 54:22 [warning] length.function - FormSubmissionDatumObject::setType has 68 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 7 functions Duplication: 0 (F), based on 111 code lines 70:1 [warning] duplication.repeated_block - lines 70 to 82 repeat lines 57 to 69 (52 tokens); repeated code has to be fixed in every copy 83:1 [warning] duplication.repeated_block - lines 83 to 108 repeat lines 57 to 82 (104 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 14 names Security: not graded advanced-custom-post-type/src/Core/ValueObjects/FormSubmissionErrorObject.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 29 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Core/ValueObjects/FormSubmissionLimitObject.php (other) CodeLength: not graded 123:21 [warning] length.function - FormSubmissionLimitObject::hasRuleMatched has 61 lines in its body, above 50 CyclomaticComplexity: 84 (B), based on 9 functions 123:21 [warning] complexity.function - FormSubmissionLimitObject::hasRuleMatched has a cyclomatic complexity of 15, moderate risk (above 10): each of its 15 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 118 code lines 158:1 [warning] duplication.repeated_block - lines 158 to 180 repeat lines 136 to 158 (71 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 24 names Security: not graded advanced-custom-post-type/src/Core/ValueObjects/IndexOptionObject.php (other) CodeLength: not graded CyclomaticComplexity: 88 (B), based on 4 functions 26:21 [warning] complexity.function - IndexOptionObject::isValid has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 73 code lines NamingConvention: 100 (A), based on 11 names Security: not graded advanced-custom-post-type/src/Core/ValueObjects/KeyPartObject.php (other) CodeLength: not graded CyclomaticComplexity: 74 (C), based on 3 functions 31:21 [warning] complexity.function - KeyPartObject::isValid has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely 72:21 [warning] complexity.function - KeyPartObject::fromArray has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 57 code lines NamingConvention: 100 (A), based on 9 names Security: not graded advanced-custom-post-type/src/Core/ValueObjects/KeyValueObject.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 26 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Core/ValueObjects/PermissionObject.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 36 code lines NamingConvention: 100 (A), based on 9 names Security: not graded advanced-custom-post-type/src/Core/ValueObjects/RelatedEntityValueObject.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 7 functions Duplication: 100 (A), based on 56 code lines NamingConvention: 100 (A), based on 12 names Security: not graded advanced-custom-post-type/src/Core/ValueObjects/SelectOptionObject.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 32 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Core/ValueObjects/TableLocationObject.php (other) CodeLength: not graded CyclomaticComplexity: 95 (A), based on 12 functions 136:21 [warning] complexity.function - TableLocationObject::fromArray has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 170 code lines NamingConvention: 98 (A), based on 46 names 254:14 [warning] naming.too_short - variable `v` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Core/ValueObjects/TableOptionObject.php (other) CodeLength: not graded 193:21 [warning] length.function - TableOptionObject::addTableElementExpression has 62 lines in its body, above 50 CyclomaticComplexity: 91 (A), based on 6 functions 136:22 [warning] complexity.function - TableOptionObject::validateValue has a cyclomatic complexity of 17, moderate risk (above 10): each of its 17 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 153 code lines NamingConvention: 100 (A), based on 20 names Security: not graded advanced-custom-post-type/src/Core/ValueObjects/TableSchemaProblemObject.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 44 code lines NamingConvention: 100 (A), based on 19 names Security: not graded advanced-custom-post-type/src/Core/ValueObjects/TableUISettingsObject.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 10 functions Duplication: 100 (A), based on 81 code lines NamingConvention: 97 (A), based on 31 names 122:45 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/ValueObjects/UIFieldObject.php (other) CodeLength: not graded 141:21 [warning] length.function - UIFieldObject::fromArray has 100 lines in its body, above 50 CyclomaticComplexity: 54 (F), based on 10 functions 141:21 [error] complexity.function - UIFieldObject::fromArray has a cyclomatic complexity of 37, high risk (above 10): each of its 37 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 203 code lines 27:1 [warning] duplication.repeated_block - lines 27 to 39 repeat lines 14 to 26 (52 tokens); repeated code has to be fixed in every copy 40:1 [warning] duplication.repeated_block - lines 40 to 65 repeat lines 14 to 39 (104 tokens); repeated code has to be fixed in every copy NamingConvention: 97 (A), based on 34 names 141:38 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Core/ValueObjects/ValidationRuleObject.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 45 code lines NamingConvention: 100 (A), based on 10 names Security: not graded advanced-custom-post-type/src/Includes/ACPT_Activator.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 19 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Includes/ACPT_Cache.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 9 functions Duplication: 85 (B), based on 165 code lines 262:1 [warning] duplication.repeated_block - lines 262 to 269 repeat lines 237 to 244 (56 tokens); repeated code has to be fixed in every copy NamingConvention: 86 (B), based on 22 names 150:22 [warning] naming.inconsistent_style - method `FilesCache` is PascalCase, while most methods in this file are camelCase (5 of 8 names); mixed styles make code harder to scan 187:22 [warning] naming.inconsistent_style - method `MemcachedCache` is PascalCase, while most methods in this file are camelCase (5 of 8 names); mixed styles make code harder to scan 221:22 [warning] naming.inconsistent_style - method `RedisCache` is PascalCase, while most methods in this file are camelCase (5 of 8 names); mixed styles make code harder to scan Security: not graded 254:21 [warning] security.include_variable - require_once of `$dependencyPath` builds the file path from data; a crafted path can load another file advanced-custom-post-type/src/Includes/ACPT_DB.php (other) CodeLength: not graded 286:29 [warning] length.function - ACPT_DB::createNativePostTypes has 55 lines in its body, above 50 390:28 [error] length.function - ACPT_DB::removeOrCreateFeatureTables has 126 lines in its body, above 100 1020:28 [warning] length.function - ACPT_DB::MySqlSyntaxError has 53 lines in its body, above 50 31:7 [error] length.class - ACPT_DB has 1069 lines, above 1000 for a other 1:1 [warning] length.file - the file has 1099 lines, above 600 for a other CyclomaticComplexity: 95 (A), based on 39 functions 390:28 [warning] complexity.function - ACPT_DB::removeOrCreateFeatureTables has a cyclomatic complexity of 18, moderate risk (above 10): each of its 18 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 660 code lines 319:1 [warning] duplication.repeated_block - lines 319 to 328 repeat lines 307 to 316 (53 tokens); repeated code has to be fixed in every copy 410:1 [warning] duplication.repeated_block - lines 410 to 412 repeat lines 407 to 409 (66 tokens); repeated code has to be fixed in every copy 413:1 [warning] duplication.repeated_block - lines 413 to 417 repeat lines 407 to 411 (90 tokens); repeated code has to be fixed in every copy 420:1 [warning] duplication.repeated_block - lines 420 to 426 repeat lines 406 to 412 (117 tokens); repeated code has to be fixed in every copy 430:1 [warning] duplication.repeated_block - lines 430 to 436 repeat lines 416 to 422 (62 tokens); repeated code has to be fixed in every copy 436:1 [warning] duplication.repeated_block - lines 436 to 442 repeat lines 417 to 423 (60 tokens); repeated code has to be fixed in every copy 442:1 [warning] duplication.repeated_block - lines 442 to 448 repeat lines 417 to 423 (60 tokens); repeated code has to be fixed in every copy 451:1 [warning] duplication.repeated_block - lines 451 to 455 repeat lines 406 to 410 (69 tokens); repeated code has to be fixed in every copy 477:1 [warning] duplication.repeated_block - lines 477 to 482 repeat lines 463 to 468 (50 tokens); repeated code has to be fixed in every copy 497:1 [warning] duplication.repeated_block - lines 497 to 504 repeat lines 472 to 479 (52 tokens); repeated code has to be fixed in every copy NamingConvention: 92 (A), based on 156 names 40:18 [warning] naming.too_long - constant `TABLE_CUSTOM_POST_TYPE_META_BOX` is 31 characters (limit 30); very long names make code hard to read 42:18 [warning] naming.too_long - constant `TABLE_CUSTOM_POST_TYPE_ADVANCED_OPTION` is 38 characters (limit 30); very long names make code hard to read 44:18 [warning] naming.too_long - constant `TABLE_CUSTOM_POST_TYPE_VISIBILITY` is 33 characters (limit 30); very long names make code hard to read 45:18 [warning] naming.too_long - constant `TABLE_CUSTOM_POST_TYPE_RELATION` is 31 characters (limit 30); very long names make code hard to read 61:18 [warning] naming.too_long - constant `TABLE_VALIDATION_RULE_FIELD_PIVOT` is 33 characters (limit 30); very long names make code hard to read 65:18 [warning] naming.too_long - constant `TABLE_WOOCOMMERCE_PRODUCT_DATA_FIELD` is 36 characters (limit 30); very long names make code hard to read 66:18 [warning] naming.too_long - constant `TABLE_WOOCOMMERCE_PRODUCT_DATA_OPTION` is 37 characters (limit 30); very long names make code hard to read 103:18 [warning] naming.too_long - constant `TABLE_VALIDATION_RULE_FORM_FIELD_PIVOT` is 38 characters (limit 30); very long names make code hard to read 162:10 [warning] naming.inconsistent_style - variable `charset_collate` is snake_case, while most variables and parameters in this file are camelCase (28 of 62 names); mixed styles make code harder to scan 611:22 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds 1020:28 [warning] naming.inconsistent_style - method `MySqlSyntaxError` is PascalCase, while most methods in this file are camelCase (33 of 38 names); mixed styles make code harder to scan 1043:47 [warning] naming.too_short - variable `q` is 1 character (at least 2); a one letter name hides its meaning Security: not graded 860:28 [warning] security.sql_interpolated - query `$wpdb->get_results` builds its SQL from `$table`; pass values through prepare with placeholders to prevent SQL injection 901:24 [warning] security.sql_interpolated - query `$wpdb->get_results` builds its SQL from `$table`; pass values through prepare with placeholders to prevent SQL injection 951:24 [warning] security.sql_interpolated - query `$wpdb->get_results` builds its SQL from `$table`; pass values through prepare with placeholders to prevent SQL injection 976:24 [warning] security.sql_interpolated - query `$wpdb->get_results` builds its SQL from `ACPT_DB::prefixedTableName($table)`; pass values through prepare with placeholders to prevent SQL injection advanced-custom-post-type/src/Includes/ACPT_DB_Tools.php (other) CodeLength: not graded 47:28 [warning] length.function - ACPT_DB_Tools::healthCheck has 58 lines in its body, above 50 107:29 [warning] length.function - ACPT_DB_Tools::tableShouldBeIncludedInHealthCheck has 52 lines in its body, above 50 235:29 [warning] length.function - ACPT_DB_Tools::alterTableQuery has 59 lines in its body, above 50 CyclomaticComplexity: 70 (C), based on 7 functions 47:28 [warning] complexity.function - ACPT_DB_Tools::healthCheck has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely 107:29 [error] complexity.function - ACPT_DB_Tools::tableShouldBeIncludedInHealthCheck has a cyclomatic complexity of 29, high risk (above 10): each of its 29 paths needs its own test, which makes it hard to follow and to change safely 235:29 [warning] complexity.function - ACPT_DB_Tools::alterTableQuery has a cyclomatic complexity of 19, moderate risk (above 10): each of its 19 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 203 code lines 125:1 [warning] duplication.repeated_block - lines 125 to 129 repeat lines 114 to 118 (50 tokens); repeated code has to be fixed in every copy NamingConvention: 97 (A), based on 37 names 107:29 [warning] naming.too_long - method `tableShouldBeIncludedInHealthCheck` is 34 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Includes/ACPT_Deactivator.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 15 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Includes/ACPT_Internalization.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 29 code lines NamingConvention: 100 (A), based on 9 names Security: not graded advanced-custom-post-type/src/Includes/ACPT_Lite_Importer.php (other) CodeLength: not graded 21:28 [error] length.function - ACPT_Lite_Importer::import has 135 lines in its body, above 100 CyclomaticComplexity: 70 (C), based on 1 function 21:28 [warning] complexity.function - ACPT_Lite_Importer::import has a cyclomatic complexity of 14, moderate risk (above 10): each of its 14 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 114 code lines 74:1 [warning] duplication.repeated_block - lines 74 to 85 repeat lines 49 to 60 (85 tokens); repeated code has to be fixed in every copy 90:1 [warning] duplication.repeated_block - lines 90 to 102 repeat lines 65 to 77 (50 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 17 names Security: not graded advanced-custom-post-type/src/Includes/ACPT_Loader.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 5 functions Duplication: 100 (A), based on 44 code lines NamingConvention: 100 (A), based on 13 names Security: not graded advanced-custom-post-type/src/Includes/ACPT_Plugin.php (other) CodeLength: not graded 415:22 [error] length.function - ACPT_Plugin::runLogger has 168 lines in its body, above 100 51:7 [warning] length.class - ACPT_Plugin has 706 lines, above 500 for a other 1:1 [warning] length.file - the file has 756 lines, above 600 for a other CyclomaticComplexity: 96 (A), based on 27 functions 172:28 [warning] complexity.function - ACPT_Plugin::setCache has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely 254:22 [warning] complexity.function - ACPT_Plugin::initSettingsConstants has a cyclomatic complexity of 19, moderate risk (above 10): each of its 19 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 452 code lines 474:1 [warning] duplication.repeated_block - lines 474 to 483 repeat lines 442 to 451 (50 tokens); repeated code has to be fixed in every copy 530:1 [warning] duplication.repeated_block - lines 530 to 542 repeat lines 439 to 451 (69 tokens); repeated code has to be fixed in every copy 545:1 [warning] duplication.repeated_block - lines 545 to 557 repeat lines 439 to 451 (69 tokens); repeated code has to be fixed in every copy NamingConvention: 99 (A), based on 81 names 303:14 [warning] naming.inconsistent_style - variable `old_version` is snake_case, while most variables and parameters in this file are camelCase (26 of 49 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Includes/ACPT_Schema.php (other) CodeLength: not graded 19:28 [error] length.function - ACPT_Schema::get has 2604 lines in its body, above 100 5:7 [error] length.class - ACPT_Schema has 2620 lines, above 1000 for a other 1:1 [error] length.file - the file has 2624 lines, above 1200 for a other CyclomaticComplexity: 100 (A), based on 1 function Duplication: 0 (F), based on 2258 code lines 79:1 [warning] duplication.repeated_block - lines 79 to 88 repeat lines 31 to 40 (56 tokens); repeated code has to be fixed in every copy 138:1 [warning] duplication.repeated_block - lines 138 to 147 repeat lines 31 to 40 (56 tokens); repeated code has to be fixed in every copy 225:1 [warning] duplication.repeated_block - lines 225 to 234 repeat lines 31 to 40 (56 tokens); repeated code has to be fixed in every copy 290:1 [warning] duplication.repeated_block - lines 290 to 300 repeat lines 203 to 213 (68 tokens); repeated code has to be fixed in every copy 313:1 [warning] duplication.repeated_block - lines 313 to 322 repeat lines 31 to 40 (56 tokens); repeated code has to be fixed in every copy 338:1 [warning] duplication.repeated_block - lines 338 to 350 repeat lines 163 to 175 (59 tokens); repeated code has to be fixed in every copy 364:1 [warning] duplication.repeated_block - lines 364 to 381 repeat lines 283 to 300 (106 tokens); repeated code has to be fixed in every copy 391:1 [warning] duplication.repeated_block - lines 391 to 400 repeat lines 31 to 40 (56 tokens); repeated code has to be fixed in every copy 452:1 [warning] duplication.repeated_block - lines 452 to 461 repeat lines 31 to 40 (56 tokens); repeated code has to be fixed in every copy 470:1 [warning] duplication.repeated_block - lines 470 to 478 repeat lines 118 to 126 (54 tokens); repeated code has to be fixed in every copy 487:1 [warning] duplication.repeated_block - lines 487 to 496 repeat lines 31 to 40 (56 tokens); repeated code has to be fixed in every copy 523:1 [warning] duplication.repeated_block - lines 523 to 534 repeat lines 115 to 126 (74 tokens); repeated code has to be fixed in every copy 544:1 [warning] duplication.repeated_block - lines 544 to 553 repeat lines 31 to 40 (56 tokens); repeated code has to be fixed in every copy 553:1 [warning] duplication.repeated_block - lines 553 to 566 repeat lines 461 to 474 (80 tokens); repeated code has to be fixed in every copy 603:1 [warning] duplication.repeated_block - lines 603 to 612 repeat lines 31 to 40 (56 tokens); repeated code has to be fixed in every copy 656:1 [warning] duplication.repeated_block - lines 656 to 666 repeat lines 264 to 274 (57 tokens); repeated code has to be fixed in every copy 684:1 [warning] duplication.repeated_block - lines 684 to 696 repeat lines 257 to 269 (61 tokens); repeated code has to be fixed in every copy 703:1 [warning] duplication.repeated_block - lines 703 to 713 repeat lines 116 to 126 (70 tokens); repeated code has to be fixed in every copy 720:1 [warning] duplication.repeated_block - lines 720 to 729 repeat lines 31 to 40 (56 tokens); repeated code has to be fixed in every copy 745:1 [warning] duplication.repeated_block - lines 745 to 753 repeat lines 576 to 584 (52 tokens); repeated code has to be fixed in every copy 766:1 [warning] duplication.repeated_block - lines 766 to 775 repeat lines 31 to 40 (56 tokens); repeated code has to be fixed in every copy 823:1 [warning] duplication.repeated_block - lines 823 to 834 repeat lines 60 to 71 (73 tokens); repeated code has to be fixed in every copy 849:1 [warning] duplication.repeated_block - lines 849 to 857 repeat lines 576 to 584 (52 tokens); repeated code has to be fixed in every copy 865:1 [warning] duplication.repeated_block - lines 865 to 874 repeat lines 31 to 40 (56 tokens); repeated code has to be fixed in every copy 874:1 [warning] duplication.repeated_block - lines 874 to 885 repeat lines 612 to 623 (65 tokens); repeated code has to be fixed in every copy 914:1 [warning] duplication.repeated_block - lines 914 to 923 repeat lines 31 to 40 (56 tokens); repeated code has to be fixed in every copy 923:1 [warning] duplication.repeated_block - lines 923 to 937 repeat lines 874 to 888 (76 tokens); repeated code has to be fixed in every copy 949:1 [warning] duplication.repeated_block - lines 949 to 961 repeat lines 522 to 534 (75 tokens); repeated code has to be fixed in every copy 970:1 [warning] duplication.repeated_block - lines 970 to 979 repeat lines 31 to 40 (56 tokens); repeated code has to be fixed in every copy 995:1 [warning] duplication.repeated_block - lines 995 to 1005 repeat lines 111 to 121 (55 tokens); repeated code has to be fixed in every copy 1005:1 [warning] duplication.repeated_block - lines 1005 to 1017 repeat lines 288 to 300 (73 tokens); repeated code has to be fixed in every copy 1029:1 [warning] duplication.repeated_block - lines 1029 to 1038 repeat lines 31 to 40 (56 tokens); repeated code has to be fixed in every copy 1068:1 [warning] duplication.repeated_block - lines 1068 to 1079 repeat lines 946 to 957 (62 tokens); repeated code has to be fixed in every copy 1114:1 [warning] duplication.repeated_block - lines 1114 to 1123 repeat lines 31 to 40 (56 tokens); repeated code has to be fixed in every copy 1125:1 [warning] duplication.repeated_block - lines 1125 to 1137 repeat lines 642 to 654 (59 tokens); repeated code has to be fixed in every copy 1146:1 [warning] duplication.repeated_block - lines 1146 to 1158 repeat lines 649 to 661 (61 tokens); repeated code has to be fixed in every copy 1188:1 [warning] duplication.repeated_block - lines 1188 to 1199 repeat lines 946 to 957 (62 tokens); repeated code has to be fixed in every copy 1209:1 [warning] duplication.repeated_block - lines 1209 to 1217 repeat lines 118 to 126 (54 tokens); repeated code has to be fixed in every copy 1227:1 [warning] duplication.repeated_block - lines 1227 to 1236 repeat lines 31 to 40 (56 tokens); repeated code has to be fixed in every copy 1236:1 [warning] duplication.repeated_block - lines 1236 to 1249 repeat lines 461 to 474 (80 tokens); repeated code has to be fixed in every copy 1264:1 [warning] duplication.repeated_block - lines 1264 to 1274 repeat lines 1207 to 1217 (70 tokens); repeated code has to be fixed in every copy 1284:1 [warning] duplication.repeated_block - lines 1284 to 1293 repeat lines 31 to 40 (56 tokens); repeated code has to be fixed in every copy 1293:1 [warning] duplication.repeated_block - lines 1293 to 1307 repeat lines 874 to 888 (76 tokens); repeated code has to be fixed in every copy 1307:1 [warning] duplication.repeated_block - lines 1307 to 1318 repeat lines 888 to 899 (65 tokens); repeated code has to be fixed in every copy 1320:1 [warning] duplication.repeated_block - lines 1320 to 1338 repeat lines 516 to 534 (114 tokens); repeated code has to be fixed in every copy 1351:1 [warning] duplication.repeated_block - lines 1351 to 1360 repeat lines 31 to 40 (56 tokens); repeated code has to be fixed in every copy 1360:1 [warning] duplication.repeated_block - lines 1360 to 1374 repeat lines 874 to 888 (76 tokens); repeated code has to be fixed in every copy 1416:1 [warning] duplication.repeated_block - lines 1416 to 1426 repeat lines 1207 to 1217 (57 tokens); repeated code has to be fixed in every copy 1439:1 [warning] duplication.repeated_block - lines 1439 to 1448 repeat lines 31 to 40 (56 tokens); repeated code has to be fixed in every copy 1448:1 [warning] duplication.repeated_block - lines 1448 to 1462 repeat lines 874 to 888 (76 tokens); repeated code has to be fixed in every copy 1462:1 [warning] duplication.repeated_block - lines 1462 to 1514 repeat lines 1045 to 1097 (305 tokens); repeated code has to be fixed in every copy 1529:1 [warning] duplication.repeated_block - lines 1529 to 1538 repeat lines 31 to 40 (56 tokens); repeated code has to be fixed in every copy 1575:1 [warning] duplication.repeated_block - lines 1575 to 1587 repeat lines 691 to 703 (63 tokens); repeated code has to be fixed in every copy 1587:1 [warning] duplication.repeated_block - lines 1587 to 1600 repeat lines 944 to 957 (78 tokens); repeated code has to be fixed in every copy 1601:1 [warning] duplication.repeated_block - lines 1601 to 1611 repeat lines 116 to 126 (70 tokens); repeated code has to be fixed in every copy 1617:1 [warning] duplication.repeated_block - lines 1617 to 1626 repeat lines 31 to 40 (56 tokens); repeated code has to be fixed in every copy 1642:1 [warning] duplication.repeated_block - lines 1642 to 1653 repeat lines 257 to 268 (60 tokens); repeated code has to be fixed in every copy 1664:1 [warning] duplication.repeated_block - lines 1664 to 1673 repeat lines 31 to 40 (56 tokens); repeated code has to be fixed in every copy 1680:1 [warning] duplication.repeated_block - lines 1680 to 1690 repeat lines 895 to 905 (55 tokens); repeated code has to be fixed in every copy 1701:1 [warning] duplication.repeated_block - lines 1701 to 1710 repeat lines 31 to 40 (56 tokens); repeated code has to be fixed in every copy 1712:1 [warning] duplication.repeated_block - lines 1712 to 1731 repeat lines 324 to 343 (97 tokens); repeated code has to be fixed in every copy 1738:1 [warning] duplication.repeated_block - lines 1738 to 1751 repeat lines 357 to 370 (74 tokens); repeated code has to be fixed in every copy 1768:1 [warning] duplication.repeated_block - lines 1768 to 1778 repeat lines 847 to 857 (68 tokens); repeated code has to be fixed in every copy 1788:1 [warning] duplication.repeated_block - lines 1788 to 1795 repeat lines 31 to 38 (53 tokens); repeated code has to be fixed in every copy 1866:1 [warning] duplication.repeated_block - lines 1866 to 1873 repeat lines 31 to 38 (53 tokens); repeated code has to be fixed in every copy 1959:1 [warning] duplication.repeated_block - lines 1959 to 1976 repeat lines 1832 to 1849 (111 tokens); repeated code has to be fixed in every copy 1996:1 [warning] duplication.repeated_block - lines 1996 to 2003 repeat lines 31 to 38 (53 tokens); repeated code has to be fixed in every copy 2110:1 [warning] duplication.repeated_block - lines 2110 to 2127 repeat lines 1832 to 1849 (111 tokens); repeated code has to be fixed in every copy 2139:1 [warning] duplication.repeated_block - lines 2139 to 2146 repeat lines 31 to 38 (53 tokens); repeated code has to be fixed in every copy 2197:1 [warning] duplication.repeated_block - lines 2197 to 2214 repeat lines 1832 to 1849 (111 tokens); repeated code has to be fixed in every copy 2225:1 [warning] duplication.repeated_block - lines 2225 to 2232 repeat lines 31 to 38 (53 tokens); repeated code has to be fixed in every copy 2278:1 [warning] duplication.repeated_block - lines 2278 to 2293 repeat lines 1834 to 1849 (95 tokens); repeated code has to be fixed in every copy 2337:1 [warning] duplication.repeated_block - lines 2337 to 2345 repeat lines 1841 to 1849 (54 tokens); repeated code has to be fixed in every copy 2353:1 [warning] duplication.repeated_block - lines 2353 to 2362 repeat lines 31 to 40 (56 tokens); repeated code has to be fixed in every copy 2378:1 [warning] duplication.repeated_block - lines 2378 to 2393 repeat lines 946 to 961 (94 tokens); repeated code has to be fixed in every copy 2406:1 [warning] duplication.repeated_block - lines 2406 to 2416 repeat lines 847 to 857 (68 tokens); repeated code has to be fixed in every copy 2416:1 [warning] duplication.repeated_block - lines 2416 to 2439 repeat lines 2393 to 2416 (126 tokens); repeated code has to be fixed in every copy 2448:1 [warning] duplication.repeated_block - lines 2448 to 2457 repeat lines 31 to 40 (56 tokens); repeated code has to be fixed in every copy 2459:1 [warning] duplication.repeated_block - lines 2459 to 2471 repeat lines 1561 to 1573 (59 tokens); repeated code has to be fixed in every copy 2487:1 [warning] duplication.repeated_block - lines 2487 to 2495 repeat lines 118 to 126 (54 tokens); repeated code has to be fixed in every copy 2506:1 [warning] duplication.repeated_block - lines 2506 to 2515 repeat lines 31 to 40 (56 tokens); repeated code has to be fixed in every copy 2515:1 [warning] duplication.repeated_block - lines 2515 to 2538 repeat lines 1123 to 1146 (129 tokens); repeated code has to be fixed in every copy 2543:1 [warning] duplication.repeated_block - lines 2543 to 2554 repeat lines 675 to 686 (67 tokens); repeated code has to be fixed in every copy 2555:1 [warning] duplication.repeated_block - lines 2555 to 2567 repeat lines 522 to 534 (75 tokens); repeated code has to be fixed in every copy 2576:1 [warning] duplication.repeated_block - lines 2576 to 2585 repeat lines 31 to 40 (56 tokens); repeated code has to be fixed in every copy 2592:1 [warning] duplication.repeated_block - lines 2592 to 2610 repeat lines 1300 to 1318 (103 tokens); repeated code has to be fixed in every copy 2610:1 [warning] duplication.repeated_block - lines 2610 to 2621 repeat lines 1644 to 1655 (53 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 9 names Security: not graded advanced-custom-post-type/src/Includes/ACPT_Schema_Manager.php (other) CodeLength: not graded 70:28 [warning] length.function - ACPT_Schema_Manager::down has 62 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 5 functions Duplication: 0 (F), based on 132 code lines 88:1 [warning] duplication.repeated_block - lines 88 to 100 repeat lines 75 to 87 (52 tokens); repeated code has to be fixed in every copy 101:1 [warning] duplication.repeated_block - lines 101 to 113 repeat lines 75 to 87 (52 tokens); repeated code has to be fixed in every copy 135:1 [warning] duplication.repeated_block - lines 135 to 161 repeat lines 71 to 97 (98 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 20 names Security: not graded 165:20 [warning] security.sql_interpolated - query `$wpdb->query` builds its SQL from `$table`; pass values through prepare with placeholders to prevent SQL injection advanced-custom-post-type/src/Includes/ACPT_Schema_Migration.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 32 code lines NamingConvention: 100 (A), based on 9 names Security: not graded 61:16 [warning] security.sql_interpolated - query `$wpdb->query` builds its SQL from `$table`; pass values through prepare with placeholders to prevent SQL injection advanced-custom-post-type/src/Includes/ACPT_Script_Module_Polyfill.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions and file level code Duplication: 100 (A), based on 27 code lines NamingConvention: 100 (A), based on 11 names Security: not graded advanced-custom-post-type/src/Integrations/ACFW/ACFWProvider.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 27 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Integrations/ACFW/ACPT_ACFW.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 24 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Integrations/AbilitiesAPI/ACPT_AbilitiesAPI.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 32 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Integrations/AbstractIntegration.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 32 code lines NamingConvention: 100 (A), based on 14 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/ACPT_Breakdance.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 32 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Constants/BreakdanceField.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 31 code lines NamingConvention: 100 (A), based on 28 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Blocks/ACPTBlock.php (other) CodeLength: not graded 106:21 [warning] length.function - ACPTBlock::hasSubFields has 72 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 11 functions Duplication: 85 (B), based on 121 code lines 125:1 [warning] duplication.repeated_block - lines 125 to 130 repeat lines 118 to 123 (53 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 37 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/BreakdanceProvider.php (other) CodeLength: not graded 115:29 [warning] length.function - BreakdanceProvider::getFieldsAndBlocks has 56 lines in its body, above 50 194:29 [error] length.function - BreakdanceProvider::getBreakdanceField has 128 lines in its body, above 100 CyclomaticComplexity: 65 (D), based on 7 functions 115:29 [warning] complexity.function - BreakdanceProvider::getFieldsAndBlocks has a cyclomatic complexity of 15, moderate risk (above 10): each of its 15 paths needs its own test, which makes it hard to follow and to change safely 194:29 [error] complexity.function - BreakdanceProvider::getBreakdanceField has a cyclomatic complexity of 34, high risk (above 10): each of its 34 paths needs its own test, which makes it hard to follow and to change safely Duplication: 0 (F), based on 246 code lines 216:1 [warning] duplication.repeated_block - lines 216 to 230 repeat lines 200 to 214 (52 tokens); repeated code has to be fixed in every copy 242:1 [warning] duplication.repeated_block - lines 242 to 258 repeat lines 200 to 216 (57 tokens); repeated code has to be fixed in every copy 259:1 [warning] duplication.repeated_block - lines 259 to 295 repeat lines 200 to 236 (122 tokens); repeated code has to be fixed in every copy 321:1 [warning] duplication.repeated_block - lines 321 to 364 repeat lines 183 to 226 (127 tokens); repeated code has to be fixed in every copy NamingConvention: 94 (A), based on 36 names 37:43 [warning] naming.too_short - variable `f` is 1 character (at least 2); a one letter name hides its meaning 58:43 [warning] naming.too_short - variable `b` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Fields/ACPTBarcodeField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 45 code lines NamingConvention: 100 (A), based on 9 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Fields/ACPTCountryField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 50 code lines NamingConvention: 100 (A), based on 11 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Fields/ACPTCurrencyField.php (other) CodeLength: not graded 14:21 [warning] length.function - ACPTCurrencyField::controls has 80 lines in its body, above 50 117:21 [warning] length.function - ACPTCurrencyField::handler has 51 lines in its body, above 50 CyclomaticComplexity: 89 (B), based on 3 functions 117:21 [warning] complexity.function - ACPTCurrencyField::handler has a cyclomatic complexity of 18, moderate risk (above 10): each of its 18 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 135 code lines 38:1 [warning] duplication.repeated_block - lines 38 to 46 repeat lines 26 to 34 (61 tokens); repeated code has to be fixed in every copy 50:1 [warning] duplication.repeated_block - lines 50 to 58 repeat lines 26 to 34 (61 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 16 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Fields/ACPTDateField.php (other) CodeLength: not graded CyclomaticComplexity: 87 (B), based on 4 functions 71:21 [warning] complexity.function - ACPTDateField::handler has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 88 code lines NamingConvention: 100 (A), based on 13 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Fields/ACPTDateRangeField.php (other) CodeLength: not graded 13:21 [warning] length.function - ACPTDateRangeField::controls has 53 lines in its body, above 50 86:21 [warning] length.function - ACPTDateRangeField::handler has 61 lines in its body, above 50 CyclomaticComplexity: 85 (B), based on 3 functions 86:21 [warning] complexity.function - ACPTDateRangeField::handler has a cyclomatic complexity of 20, moderate risk (above 10): each of its 20 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 110 code lines NamingConvention: 100 (A), based on 17 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Fields/ACPTDateTimeField.php (other) CodeLength: not graded 14:21 [warning] length.function - ACPTDateTimeField::controls has 54 lines in its body, above 50 CyclomaticComplexity: 88 (B), based on 4 functions 87:21 [warning] complexity.function - ACPTDateTimeField::handler has a cyclomatic complexity of 18, moderate risk (above 10): each of its 18 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 107 code lines NamingConvention: 100 (A), based on 14 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Fields/ACPTEmailAsUrlField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 16 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Fields/ACPTEmailField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 40 (F), based on 77 code lines 34:1 [warning] duplication.repeated_block - lines 34 to 43 repeat lines 25 to 34 (53 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 12 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Fields/ACPTField.php (other) CodeLength: not graded 101:29 [error] length.function - ACPTField::resolveValue has 163 lines in its body, above 100 272:29 [warning] length.function - ACPTField::getContext has 56 lines in its body, above 50 CyclomaticComplexity: 51 (F), based on 7 functions 101:29 [error] complexity.function - ACPTField::resolveValue has a cyclomatic complexity of 24, high risk (above 10): each of its 24 paths needs its own test, which makes it hard to follow and to change safely 272:29 [warning] complexity.function - ACPTField::getContext has a cyclomatic complexity of 15, moderate risk (above 10): each of its 15 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 209 code lines 213:1 [warning] duplication.repeated_block - lines 213 to 223 repeat lines 155 to 165 (63 tokens); repeated code has to be fixed in every copy 225:1 [warning] duplication.repeated_block - lines 225 to 238 repeat lines 165 to 178 (50 tokens); repeated code has to be fixed in every copy 243:1 [warning] duplication.repeated_block - lines 243 to 251 repeat lines 156 to 164 (51 tokens); repeated code has to be fixed in every copy NamingConvention: 93 (A), based on 29 names 122:10 [warning] naming.too_short - variable `a` is 1 character (at least 2); a one letter name hides its meaning 123:10 [warning] naming.too_short - variable `b` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Fields/ACPTFieldInterface.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 5 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Fields/ACPTFileAsUrlField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 21 code lines NamingConvention: 100 (A), based on 9 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Fields/ACPTFileField.php (other) CodeLength: not graded CyclomaticComplexity: 85 (B), based on 3 functions 60:21 [warning] complexity.function - ACPTFileField::handler has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 63 code lines NamingConvention: 100 (A), based on 14 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Fields/ACPTGalleryField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 7 functions Duplication: 100 (A), based on 72 code lines NamingConvention: 100 (A), based on 22 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Fields/ACPTIconField.php (other) CodeLength: not graded 14:21 [warning] length.function - ACPTIconField::controls has 60 lines in its body, above 50 CyclomaticComplexity: 94 (A), based on 5 functions 93:21 [warning] complexity.function - ACPTIconField::handler has a cyclomatic complexity of 15, moderate risk (above 10): each of its 15 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 127 code lines NamingConvention: 100 (A), based on 19 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Fields/ACPTImageAsUrlField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 19 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Fields/ACPTImageField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 6 functions Duplication: 100 (A), based on 48 code lines NamingConvention: 100 (A), based on 19 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Fields/ACPTLabelValueField.php (other) CodeLength: not graded CyclomaticComplexity: 82 (B), based on 3 functions 48:21 [warning] complexity.function - ACPTLabelValueField::handler has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 53 code lines NamingConvention: 100 (A), based on 13 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Fields/ACPTLengthField.php (other) CodeLength: not graded 14:21 [warning] length.function - ACPTLengthField::controls has 80 lines in its body, above 50 117:21 [warning] length.function - ACPTLengthField::handler has 58 lines in its body, above 50 CyclomaticComplexity: 88 (B), based on 3 functions 117:21 [warning] complexity.function - ACPTLengthField::handler has a cyclomatic complexity of 20, moderate risk (above 10): each of its 20 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 141 code lines 38:1 [warning] duplication.repeated_block - lines 38 to 46 repeat lines 26 to 34 (61 tokens); repeated code has to be fixed in every copy 50:1 [warning] duplication.repeated_block - lines 50 to 58 repeat lines 26 to 34 (61 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 16 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Fields/ACPTListField.php (other) CodeLength: not graded 73:21 [warning] length.function - ACPTListField::handler has 54 lines in its body, above 50 CyclomaticComplexity: 84 (B), based on 3 functions 73:21 [warning] complexity.function - ACPTListField::handler has a cyclomatic complexity of 16, moderate risk (above 10): each of its 16 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 92 code lines NamingConvention: 100 (A), based on 14 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Fields/ACPTNumberField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 0 (F), based on 71 code lines 33:1 [warning] duplication.repeated_block - lines 33 to 42 repeat lines 24 to 33 (55 tokens); repeated code has to be fixed in every copy 42:1 [warning] duplication.repeated_block - lines 42 to 50 repeat lines 24 to 32 (52 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 12 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Fields/ACPTOembedField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 6 functions Duplication: 100 (A), based on 48 code lines NamingConvention: 100 (A), based on 19 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Fields/ACPTPhoneAsUrlField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 17 code lines NamingConvention: 88 (B), based on 8 names 24:10 [warning] naming.generic - variable `val` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Fields/ACPTPhoneField.php (other) CodeLength: not graded 14:21 [warning] length.function - ACPTPhoneField::controls has 54 lines in its body, above 50 CyclomaticComplexity: 91 (A), based on 3 functions 89:21 [warning] complexity.function - ACPTPhoneField::handler has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 90 code lines 43:1 [warning] duplication.repeated_block - lines 43 to 52 repeat lines 34 to 43 (53 tokens); repeated code has to be fixed in every copy NamingConvention: 94 (A), based on 16 names 102:10 [warning] naming.generic - variable `val` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Fields/ACPTQRCodeAsUrlField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 16 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Fields/ACPTQRCodeField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 39 code lines NamingConvention: 100 (A), based on 9 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Fields/ACPTRatingField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 58 code lines NamingConvention: 100 (A), based on 13 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Fields/ACPTRepeaterField.php (other) CodeLength: not graded 119:21 [warning] length.function - ACPTRepeaterField::hasSubFields has 76 lines in its body, above 50 CyclomaticComplexity: 81 (B), based on 9 functions 119:21 [warning] complexity.function - ACPTRepeaterField::hasSubFields has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely Duplication: 85 (B), based on 115 code lines 148:1 [warning] duplication.repeated_block - lines 148 to 153 repeat lines 135 to 140 (56 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 29 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Fields/ACPTStringAsUrlField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 16 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Fields/ACPTStringField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 7 functions Duplication: 100 (A), based on 52 code lines NamingConvention: 100 (A), based on 20 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Fields/ACPTTableField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 7 functions Duplication: 100 (A), based on 56 code lines NamingConvention: 100 (A), based on 23 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Fields/ACPTTextareaField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 24 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Fields/ACPTTimeField.php (other) CodeLength: not graded CyclomaticComplexity: 83 (B), based on 3 functions 64:21 [warning] complexity.function - ACPTTimeField::handler has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 76 code lines NamingConvention: 100 (A), based on 11 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Fields/ACPTUrlAsUrlField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 16 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Fields/ACPTUrlField.php (other) CodeLength: not graded CyclomaticComplexity: 89 (B), based on 3 functions 80:21 [warning] complexity.function - ACPTUrlField::handler has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 83 code lines 34:1 [warning] duplication.repeated_block - lines 34 to 43 repeat lines 25 to 34 (53 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 14 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Fields/ACPTVideoAsUrlField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 19 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Fields/ACPTVideoField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 24 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Fields/ACPTWeightField.php (other) CodeLength: not graded 14:21 [warning] length.function - ACPTWeightField::controls has 80 lines in its body, above 50 117:21 [warning] length.function - ACPTWeightField::handler has 58 lines in its body, above 50 CyclomaticComplexity: 88 (B), based on 3 functions 117:21 [warning] complexity.function - ACPTWeightField::handler has a cyclomatic complexity of 20, moderate risk (above 10): each of its 20 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 141 code lines 38:1 [warning] duplication.repeated_block - lines 38 to 46 repeat lines 26 to 34 (61 tokens); repeated code has to be fixed in every copy 50:1 [warning] duplication.repeated_block - lines 50 to 58 repeat lines 26 to 34 (61 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 16 names Security: not graded advanced-custom-post-type/src/Integrations/Breakdance/Provider/Helper/RawValueConverter.php (other) CodeLength: not graded 17:28 [warning] length.function - RawValueConverter::convert has 58 lines in its body, above 50 CyclomaticComplexity: 70 (C), based on 1 function 17:28 [warning] complexity.function - RawValueConverter::convert has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 36 code lines NamingConvention: 100 (A), based on 9 names Security: not graded advanced-custom-post-type/src/Integrations/Bricks/ACPT_Bricks.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 40 code lines NamingConvention: 100 (A), based on 11 names Security: not graded advanced-custom-post-type/src/Integrations/Bricks/providers/provider-acpt.php (other) CodeLength: not graded 105:22 [error] length.function - Provider_ACPT::register_tag has 144 lines in its body, above 100 284:31 [error] length.function - Provider_ACPT::get_group_fields has 279 lines in its body, above 100 580:29 [error] length.function - Provider_ACPT::get_relational_through_fields has 101 lines in its body, above 100 699:21 [error] length.function - Provider_ACPT::get_tag_value has 1104 lines in its body, above 100 1928:22 [warning] length.function - Provider_ACPT::render_list_item has 55 lines in its body, above 50 1992:22 [error] length.function - Provider_ACPT::get_raw_value has 162 lines in its body, above 100 2250:22 [warning] length.function - Provider_ACPT::get_post_meta_value has 60 lines in its body, above 50 2418:22 [warning] length.function - Provider_ACPT::get_option_page_meta_value has 60 lines in its body, above 50 2504:22 [warning] length.function - Provider_ACPT::get_post_meta_block_values has 80 lines in its body, above 50 2592:22 [warning] length.function - Provider_ACPT::get_option_page_meta_block_values has 80 lines in its body, above 50 2692:29 [warning] length.function - Provider_ACPT::get_fields_by_context has 68 lines in its body, above 50 2772:21 [error] length.function - Provider_ACPT::set_loop_query has 197 lines in its body, above 100 3017:21 [warning] length.function - Provider_ACPT::set_loop_object has 73 lines in its body, above 50 33:7 [error] length.class - Provider_ACPT has 3059 lines, above 1000 for a other 1:1 [error] length.file - the file has 3091 lines, above 1200 for a other CyclomaticComplexity: 31 (F), based on 27 functions and file level code 105:22 [error] complexity.function - Provider_ACPT::register_tag has a cyclomatic complexity of 34, high risk (above 10): each of its 34 paths needs its own test, which makes it hard to follow and to change safely 284:31 [error] complexity.function - Provider_ACPT::get_group_fields has a cyclomatic complexity of 37, high risk (above 10): each of its 37 paths needs its own test, which makes it hard to follow and to change safely 580:29 [warning] complexity.function - Provider_ACPT::get_relational_through_fields has a cyclomatic complexity of 18, moderate risk (above 10): each of its 18 paths needs its own test, which makes it hard to follow and to change safely 699:21 [error] complexity.function - Provider_ACPT::get_tag_value has a cyclomatic complexity of 298, untestable risk (above 10): each of its 298 paths needs its own test, which makes it hard to follow and to change safely 1836:28 [warning] complexity.function - Provider_ACPT::localized_toggle_condition_result has a cyclomatic complexity of 14, moderate risk (above 10): each of its 14 paths needs its own test, which makes it hard to follow and to change safely 1882:22 [warning] complexity.function - Provider_ACPT::render_amount_field has a cyclomatic complexity of 16, moderate risk (above 10): each of its 16 paths needs its own test, which makes it hard to follow and to change safely 1928:22 [warning] complexity.function - Provider_ACPT::render_list_item has a cyclomatic complexity of 19, moderate risk (above 10): each of its 19 paths needs its own test, which makes it hard to follow and to change safely 1992:22 [error] complexity.function - Provider_ACPT::get_raw_value has a cyclomatic complexity of 42, high risk (above 10): each of its 42 paths needs its own test, which makes it hard to follow and to change safely 2169:22 [warning] complexity.function - Provider_ACPT::get_through_relation_value has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely 2220:22 [warning] complexity.function - Provider_ACPT::get_acpt_value has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely 2504:22 [error] complexity.function - Provider_ACPT::get_post_meta_block_values has a cyclomatic complexity of 30, high risk (above 10): each of its 30 paths needs its own test, which makes it hard to follow and to change safely 2592:22 [error] complexity.function - Provider_ACPT::get_option_page_meta_block_values has a cyclomatic complexity of 30, high risk (above 10): each of its 30 paths needs its own test, which makes it hard to follow and to change safely 2772:21 [error] complexity.function - Provider_ACPT::set_loop_query has a cyclomatic complexity of 67, untestable risk (above 10): each of its 67 paths needs its own test, which makes it hard to follow and to change safely 3017:21 [warning] complexity.function - Provider_ACPT::set_loop_object has a cyclomatic complexity of 17, moderate risk (above 10): each of its 17 paths needs its own test, which makes it hard to follow and to change safely Duplication: 0 (F), based on 2100 code lines 199:1 [warning] duplication.repeated_block - lines 199 to 210 repeat lines 162 to 173 (56 tokens); repeated code has to be fixed in every copy 211:1 [warning] duplication.repeated_block - lines 211 to 223 repeat lines 195 to 207 (94 tokens); repeated code has to be fixed in every copy 319:1 [warning] duplication.repeated_block - lines 319 to 330 repeat lines 308 to 319 (80 tokens); repeated code has to be fixed in every copy 350:1 [warning] duplication.repeated_block - lines 350 to 362 repeat lines 332 to 344 (85 tokens); repeated code has to be fixed in every copy 370:1 [warning] duplication.repeated_block - lines 370 to 375 repeat lines 313 to 318 (60 tokens); repeated code has to be fixed in every copy 381:1 [warning] duplication.repeated_block - lines 381 to 387 repeat lines 294 to 300 (57 tokens); repeated code has to be fixed in every copy 387:1 [warning] duplication.repeated_block - lines 387 to 395 repeat lines 310 to 318 (61 tokens); repeated code has to be fixed in every copy 399:1 [warning] duplication.repeated_block - lines 399 to 408 repeat lines 381 to 387 (96 tokens); repeated code has to be fixed in every copy 410:1 [warning] duplication.repeated_block - lines 410 to 421 repeat lines 333 to 344 (74 tokens); repeated code has to be fixed in every copy 442:1 [warning] duplication.repeated_block - lines 442 to 453 repeat lines 333 to 344 (74 tokens); repeated code has to be fixed in every copy 453:1 [warning] duplication.repeated_block - lines 453 to 464 repeat lines 436 to 447 (51 tokens); repeated code has to be fixed in every copy 464:1 [warning] duplication.repeated_block - lines 464 to 473 repeat lines 431 to 440 (50 tokens); repeated code has to be fixed in every copy 480:1 [warning] duplication.repeated_block - lines 480 to 493 repeat lines 330 to 343 (85 tokens); repeated code has to be fixed in every copy 503:1 [warning] duplication.repeated_block - lines 503 to 526 repeat lines 480 to 503 (139 tokens); repeated code has to be fixed in every copy 526:1 [warning] duplication.repeated_block - lines 526 to 544 repeat lines 480 to 499 (92 tokens); repeated code has to be fixed in every copy 544:1 [warning] duplication.repeated_block - lines 544 to 555 repeat lines 332 to 343 (75 tokens); repeated code has to be fixed in every copy 975:1 [warning] duplication.repeated_block - lines 975 to 988 repeat lines 938 to 950 (61 tokens); repeated code has to be fixed in every copy 998:1 [warning] duplication.repeated_block - lines 998 to 1005 repeat lines 957 to 964 (70 tokens); repeated code has to be fixed in every copy 1008:1 [warning] duplication.repeated_block - lines 1008 to 1026 repeat lines 933 to 950 (74 tokens); repeated code has to be fixed in every copy 1026:1 [warning] duplication.repeated_block - lines 1026 to 1052 repeat lines 989 to 1015 (115 tokens); repeated code has to be fixed in every copy 1197:1 [warning] duplication.repeated_block - lines 1197 to 1212 repeat lines 859 to 874 (71 tokens); repeated code has to be fixed in every copy 1230:1 [warning] duplication.repeated_block - lines 1230 to 1244 repeat lines 860 to 874 (57 tokens); repeated code has to be fixed in every copy 1413:1 [warning] duplication.repeated_block - lines 1413 to 1417 repeat lines 1392 to 1396 (50 tokens); repeated code has to be fixed in every copy 1417:1 [warning] duplication.repeated_block - lines 1417 to 1425 repeat lines 1396 to 1404 (54 tokens); repeated code has to be fixed in every copy 1476:1 [warning] duplication.repeated_block - lines 1476 to 1488 repeat lines 1443 to 1455 (54 tokens); repeated code has to be fixed in every copy 1583:1 [warning] duplication.repeated_block - lines 1583 to 1596 repeat lines 1540 to 1553 (53 tokens); repeated code has to be fixed in every copy 1626:1 [warning] duplication.repeated_block - lines 1626 to 1649 repeat lines 1448 to 1469 (82 tokens); repeated code has to be fixed in every copy 1659:1 [warning] duplication.repeated_block - lines 1659 to 1672 repeat lines 1622 to 1635 (53 tokens); repeated code has to be fixed in every copy 1727:1 [warning] duplication.repeated_block - lines 1727 to 1745 repeat lines 1699 to 1717 (64 tokens); repeated code has to be fixed in every copy 2110:1 [warning] duplication.repeated_block - lines 2110 to 2115 repeat lines 2101 to 2106 (51 tokens); repeated code has to be fixed in every copy 2303:1 [warning] duplication.repeated_block - lines 2303 to 2310 repeat lines 2294 to 2301 (55 tokens); repeated code has to be fixed in every copy 2320:1 [warning] duplication.repeated_block - lines 2320 to 2327 repeat lines 2252 to 2259 (50 tokens); repeated code has to be fixed in every copy 2327:1 [warning] duplication.repeated_block - lines 2327 to 2339 repeat lines 2259 to 2271 (72 tokens); repeated code has to be fixed in every copy 2339:1 [warning] duplication.repeated_block - lines 2339 to 2351 repeat lines 2271 to 2283 (65 tokens); repeated code has to be fixed in every copy 2354:1 [warning] duplication.repeated_block - lines 2354 to 2370 repeat lines 2304 to 2320 (59 tokens); repeated code has to be fixed in every copy 2370:1 [warning] duplication.repeated_block - lines 2370 to 2377 repeat lines 2252 to 2259 (50 tokens); repeated code has to be fixed in every copy 2377:1 [warning] duplication.repeated_block - lines 2377 to 2389 repeat lines 2259 to 2271 (72 tokens); repeated code has to be fixed in every copy 2389:1 [warning] duplication.repeated_block - lines 2389 to 2401 repeat lines 2271 to 2283 (65 tokens); repeated code has to be fixed in every copy 2404:1 [warning] duplication.repeated_block - lines 2404 to 2420 repeat lines 2304 to 2320 (59 tokens); repeated code has to be fixed in every copy 2420:1 [warning] duplication.repeated_block - lines 2420 to 2427 repeat lines 2252 to 2259 (50 tokens); repeated code has to be fixed in every copy 2427:1 [warning] duplication.repeated_block - lines 2427 to 2439 repeat lines 2259 to 2271 (72 tokens); repeated code has to be fixed in every copy 2439:1 [warning] duplication.repeated_block - lines 2439 to 2463 repeat lines 2271 to 2295 (94 tokens); repeated code has to be fixed in every copy 2471:1 [warning] duplication.repeated_block - lines 2471 to 2478 repeat lines 2462 to 2469 (55 tokens); repeated code has to be fixed in every copy 2510:1 [warning] duplication.repeated_block - lines 2510 to 2520 repeat lines 2258 to 2268 (66 tokens); repeated code has to be fixed in every copy 2560:1 [warning] duplication.repeated_block - lines 2560 to 2563 repeat lines 2556 to 2559 (66 tokens); repeated code has to be fixed in every copy 2598:1 [warning] duplication.repeated_block - lines 2598 to 2608 repeat lines 2426 to 2436 (66 tokens); repeated code has to be fixed in every copy 2608:1 [warning] duplication.repeated_block - lines 2608 to 2628 repeat lines 2520 to 2540 (95 tokens); repeated code has to be fixed in every copy 2628:1 [warning] duplication.repeated_block - lines 2628 to 2677 repeat lines 2540 to 2592 (327 tokens); repeated code has to be fixed in every copy 2713:1 [warning] duplication.repeated_block - lines 2713 to 2717 repeat lines 2705 to 2709 (63 tokens); repeated code has to be fixed in every copy 2722:1 [warning] duplication.repeated_block - lines 2722 to 2731 repeat lines 2699 to 2706 (77 tokens); repeated code has to be fixed in every copy 2731:1 [warning] duplication.repeated_block - lines 2731 to 2740 repeat lines 2699 to 2706 (70 tokens); repeated code has to be fixed in every copy 2740:1 [warning] duplication.repeated_block - lines 2740 to 2748 repeat lines 2699 to 2705 (60 tokens); repeated code has to be fixed in every copy 2748:1 [warning] duplication.repeated_block - lines 2748 to 2753 repeat lines 2706 to 2709 (50 tokens); repeated code has to be fixed in every copy 2754:1 [warning] duplication.repeated_block - lines 2754 to 2757 repeat lines 2749 to 2754 (54 tokens); repeated code has to be fixed in every copy 2945:1 [warning] duplication.repeated_block - lines 2945 to 2960 repeat lines 2929 to 2944 (90 tokens); repeated code has to be fixed in every copy NamingConvention: 89 (B), based on 228 names 114:10 [warning] naming.inconsistent_style - variable `contextsByType` is camelCase, while most variables and parameters in this file are snake_case (111 of 197 names); mixed styles make code harder to scan 115:10 [warning] naming.inconsistent_style - variable `belongsTo` is camelCase, while most variables and parameters in this file are snake_case (111 of 197 names); mixed styles make code harder to scan 119:18 [warning] naming.inconsistent_style - variable `prefixName` is camelCase, while most variables and parameters in this file are snake_case (111 of 197 names); mixed styles make code harder to scan 258:10 [warning] naming.inconsistent_style - variable `fieldGroups` is camelCase, while most variables and parameters in this file are snake_case (111 of 197 names); mixed styles make code harder to scan 263:35 [warning] naming.inconsistent_style - variable `fieldGroup` is camelCase, while most variables and parameters in this file are snake_case (111 of 197 names); mixed styles make code harder to scan 290:10 [warning] naming.inconsistent_style - variable `excludedFields` is camelCase, while most variables and parameters in this file are snake_case (111 of 197 names); mixed styles make code harder to scan 321:26 [warning] naming.inconsistent_style - variable `nestedChildren` is camelCase, while most variables and parameters in this file are snake_case (111 of 197 names); mixed styles make code harder to scan 330:34 [warning] naming.too_long - variable `nested_child_display_field_name` is 31 characters (limit 30); very long names make code hard to read 408:50 [warning] naming.too_long - variable `nested_block_display_field_name` is 31 characters (limit 30); very long names make code hard to read 948:22 [warning] naming.inconsistent_style - variable `dateTimeObjects` is camelCase, while most variables and parameters in this file are snake_case (111 of 197 names); mixed styles make code harder to scan 986:22 [warning] naming.inconsistent_style - variable `dateTimeObject` is camelCase, while most variables and parameters in this file are snake_case (111 of 197 names); mixed styles make code harder to scan 1105:75 [warning] naming.too_short - parameter `o` is 1 character (at least 2); a one letter name hides its meaning 1307:22 [warning] naming.generic - variable `val` is a generic name; it says nothing about what it holds 1387:22 [warning] naming.inconsistent_style - variable `relationTaxonomy` is camelCase, while most variables and parameters in this file are snake_case (111 of 197 names); mixed styles make code harder to scan 1392:49 [warning] naming.generic - variable `obj` is a generic name; it says nothing about what it holds 1502:26 [warning] naming.inconsistent_style - variable `cellIndex` is camelCase, while most variables and parameters in this file are snake_case (111 of 197 names); mixed styles make code harder to scan 1506:30 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds 1836:28 [warning] naming.too_long - method `localized_toggle_condition_result` is 33 characters (limit 30); very long names make code hard to read 1889:10 [warning] naming.inconsistent_style - variable `decimalSeparator` is camelCase, while most variables and parameters in this file are snake_case (111 of 197 names); mixed styles make code harder to scan 1890:10 [warning] naming.inconsistent_style - variable `thousandsSeparator` is camelCase, while most variables and parameters in this file are snake_case (111 of 197 names); mixed styles make code harder to scan 2564:103 [warning] naming.too_long - variable `deep_nested_block_field_value_index` is 35 characters (limit 30); very long names make code hard to read 2592:22 [warning] naming.too_long - method `get_option_page_meta_block_values` is 33 characters (limit 30); very long names make code hard to read 2677:29 [warning] naming.inconsistent_style - method `unsafeFields` is camelCase, while most methods in this file are snake_case (25 of 26 names); mixed styles make code harder to scan 2923:52 [warning] naming.too_short - variable `r` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Integrations/Bricks/query-filters/field-acpt.php (other) CodeLength: not graded 179:21 [error] length.function - Field_ACPT::custom_field_index_rows has 230 lines in its body, above 100 469:21 [warning] length.function - Field_ACPT::custom_field_meta_query has 80 lines in its body, above 50 623:21 [warning] length.function - Field_ACPT::modify_custom_field_choices has 70 lines in its body, above 50 13:7 [warning] length.class - Field_ACPT has 815 lines, above 500 for a other 1:1 [warning] length.file - the file has 827 lines, above 600 for a other CyclomaticComplexity: 57 (F), based on 17 functions and file level code 179:21 [error] complexity.function - Field_ACPT::custom_field_index_rows has a cyclomatic complexity of 55, untestable risk (above 10): each of its 55 paths needs its own test, which makes it hard to follow and to change safely 469:21 [warning] complexity.function - Field_ACPT::custom_field_meta_query has a cyclomatic complexity of 20, moderate risk (above 10): each of its 20 paths needs its own test, which makes it hard to follow and to change safely 623:21 [warning] complexity.function - Field_ACPT::modify_custom_field_choices has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 443 code lines 576:1 [warning] duplication.repeated_block - lines 576 to 597 repeat lines 548 to 571 (54 tokens); repeated code has to be fixed in every copy NamingConvention: 91 (A), based on 88 names 220:18 [warning] naming.generic - variable `val` is a generic name; it says nothing about what it holds 253:42 [warning] naming.generic - variable `obj` is a generic name; it says nothing about what it holds 292:42 [warning] naming.inconsistent_style - variable `postId` is camelCase, while most variables and parameters in this file are snake_case (40 of 66 names); mixed styles make code harder to scan 306:42 [warning] naming.inconsistent_style - variable `termId` is camelCase, while most variables and parameters in this file are snake_case (40 of 66 names); mixed styles make code harder to scan 323:42 [warning] naming.inconsistent_style - variable `userId` is camelCase, while most variables and parameters in this file are snake_case (40 of 66 names); mixed styles make code harder to scan 342:26 [warning] naming.inconsistent_style - variable `dateTimeObject` is camelCase, while most variables and parameters in this file are snake_case (40 of 66 names); mixed styles make code harder to scan 589:21 [warning] naming.too_long - method `datepicker_custom_field_meta_query` is 34 characters (limit 30); very long names make code hard to read 778:21 [warning] naming.too_long - method `get_field_settings_from_dd_provider` is 35 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Integrations/Divi/ACPT_Divi.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 5 functions Duplication: 100 (A), based on 79 code lines NamingConvention: 94 (A), based on 17 names 43:10 [warning] naming.inconsistent_style - variable `isActive` is camelCase, while most variables and parameters in this file are snake_case (3 of 9 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Integrations/Divi/includes/ACPT_Divi_Assets.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 12 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Integrations/Divi/includes/ACPT_Divi_Dynamic_Content_Fields.php (other) CodeLength: not graded 23:28 [warning] length.function - ACPT_Divi_Dynamic_Content_Fields::get_fields has 51 lines in its body, above 50 219:29 [warning] length.function - ACPT_Divi_Dynamic_Content_Fields::get_textual_value_for_field has 100 lines in its body, above 50 CyclomaticComplexity: 64 (D), based on 6 functions 83:29 [error] complexity.function - ACPT_Divi_Dynamic_Content_Fields::get_type has a cyclomatic complexity of 30, high risk (above 10): each of its 30 paths needs its own test, which makes it hard to follow and to change safely 219:29 [error] complexity.function - ACPT_Divi_Dynamic_Content_Fields::get_textual_value_for_field has a cyclomatic complexity of 31, high risk (above 10): each of its 31 paths needs its own test, which makes it hard to follow and to change safely Duplication: 85 (B), based on 235 code lines 108:1 [warning] duplication.repeated_block - lines 108 to 117 repeat lines 98 to 107 (50 tokens); repeated code has to be fixed in every copy NamingConvention: 76 (C), based on 33 names 12:7 [warning] naming.too_long - class `ACPT_Divi_Dynamic_Content_Fields` is 32 characters (limit 30); very long names make code hard to read 23:40 [warning] naming.inconsistent_style - parameter `custom_fields` is snake_case, while most variables and parameters in this file are camelCase (7 of 26 names); mixed styles make code harder to scan 23:56 [warning] naming.inconsistent_style - parameter `post_id` is snake_case, while most variables and parameters in this file are camelCase (7 of 26 names); mixed styles make code harder to scan 23:66 [warning] naming.inconsistent_style - parameter `raw_custom_fields` is snake_case, while most variables and parameters in this file are camelCase (7 of 26 names); mixed styles make code harder to scan 138:39 [warning] naming.inconsistent_style - parameter `meta_value` is snake_case, while most variables and parameters in this file are camelCase (7 of 26 names); mixed styles make code harder to scan 138:52 [warning] naming.inconsistent_style - parameter `meta_key` is snake_case, while most variables and parameters in this file are camelCase (7 of 26 names); mixed styles make code harder to scan 152:14 [warning] naming.inconsistent_style - variable `is_blog_query` is snake_case, while most variables and parameters in this file are camelCase (7 of 26 names); mixed styles make code harder to scan 328:28 [warning] naming.too_long - method `add_dynamic_support_for_gallery_field` is 37 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Integrations/Divi/includes/ACPT_Divi_Dynamic_Content_Tags.php (other) CodeLength: not graded 42:21 [warning] length.function - ACPT_Divi_Dynamic_Content_Tags::register_option_callback has 82 lines in its body, above 50 129:22 [warning] length.function - ACPT_Divi_Dynamic_Content_Tags::get_fields has 53 lines in its body, above 50 187:21 [warning] length.function - ACPT_Divi_Dynamic_Content_Tags::render_callback has 77 lines in its body, above 50 284:22 [error] length.function - ACPT_Divi_Dynamic_Content_Tags::renderField has 626 lines in its body, above 100 19:7 [warning] length.class - ACPT_Divi_Dynamic_Content_Tags has 994 lines, above 500 for a other 1:1 [warning] length.file - the file has 1012 lines, above 600 for a other CyclomaticComplexity: 24 (F), based on 9 functions 187:21 [error] complexity.function - ACPT_Divi_Dynamic_Content_Tags::render_callback has a cyclomatic complexity of 24, high risk (above 10): each of its 24 paths needs its own test, which makes it hard to follow and to change safely 284:22 [error] complexity.function - ACPT_Divi_Dynamic_Content_Tags::renderField has a cyclomatic complexity of 178, untestable risk (above 10): each of its 178 paths needs its own test, which makes it hard to follow and to change safely Duplication: 85 (B), based on 633 code lines 453:1 [warning] duplication.repeated_block - lines 453 to 464 repeat lines 404 to 415 (63 tokens); repeated code has to be fixed in every copy 585:1 [warning] duplication.repeated_block - lines 585 to 603 repeat lines 393 to 411 (67 tokens); repeated code has to be fixed in every copy 754:1 [warning] duplication.repeated_block - lines 754 to 767 repeat lines 659 to 672 (52 tokens); repeated code has to be fixed in every copy 796:1 [warning] duplication.repeated_block - lines 796 to 807 repeat lines 404 to 415 (60 tokens); repeated code has to be fixed in every copy 896:1 [warning] duplication.repeated_block - lines 896 to 907 repeat lines 393 to 404 (59 tokens); repeated code has to be fixed in every copy NamingConvention: 81 (B), based on 84 names 42:67 [warning] naming.inconsistent_style - parameter `post_id` is snake_case, while most variables and parameters in this file are camelCase (12 of 73 names); mixed styles make code harder to scan 137:10 [warning] naming.inconsistent_style - variable `field_options` is snake_case, while most variables and parameters in this file are camelCase (12 of 73 names); mixed styles make code harder to scan 157:38 [warning] naming.inconsistent_style - variable `belongs_to` is snake_case, while most variables and parameters in this file are camelCase (12 of 73 names); mixed styles make code harder to scan 193:14 [warning] naming.inconsistent_style - variable `date_format` is snake_case, while most variables and parameters in this file are camelCase (12 of 73 names); mixed styles make code harder to scan 194:14 [warning] naming.inconsistent_style - variable `custom_date_format` is snake_case, while most variables and parameters in this file are camelCase (12 of 73 names); mixed styles make code harder to scan 195:14 [warning] naming.inconsistent_style - variable `display_as` is snake_case, while most variables and parameters in this file are camelCase (12 of 73 names); mixed styles make code harder to scan 196:14 [warning] naming.inconsistent_style - variable `list_style` is snake_case, while most variables and parameters in this file are camelCase (12 of 73 names); mixed styles make code harder to scan 197:14 [warning] naming.inconsistent_style - variable `enable_html` is snake_case, while most variables and parameters in this file are camelCase (12 of 73 names); mixed styles make code harder to scan 198:14 [warning] naming.inconsistent_style - variable `phone_format` is snake_case, while most variables and parameters in this file are camelCase (12 of 73 names); mixed styles make code harder to scan 210:14 [warning] naming.inconsistent_style - variable `meta_key` is snake_case, while most variables and parameters in this file are camelCase (12 of 73 names); mixed styles make code harder to scan 212:14 [warning] naming.inconsistent_style - variable `meta_key_array` is snake_case, while most variables and parameters in this file are camelCase (12 of 73 names); mixed styles make code harder to scan 251:14 [warning] naming.generic - variable `val` is a generic name; it says nothing about what it holds 284:22 [warning] naming.inconsistent_style - method `renderField` is camelCase, while most methods in this file are snake_case (5 of 9 names); mixed styles make code harder to scan 933:22 [warning] naming.inconsistent_style - method `renderEditorContent` is camelCase, while most methods in this file are snake_case (5 of 9 names); mixed styles make code harder to scan 955:22 [warning] naming.inconsistent_style - method `formatDate` is camelCase, while most methods in this file are snake_case (5 of 9 names); mixed styles make code harder to scan 984:22 [warning] naming.inconsistent_style - method `renderList` is camelCase, while most methods in this file are snake_case (5 of 9 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Integrations/Divi/includes/ACPT_Divi_Extension.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function and file level code Duplication: 100 (A), based on 13 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Integrations/Divi/includes/ACPT_Divi_Helper.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 40 (F), based on 100 code lines 35:1 [warning] duplication.repeated_block - lines 35 to 47 repeat lines 22 to 34 (52 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 18 names Security: not graded advanced-custom-post-type/src/Integrations/Divi/includes/loader.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on file level code Duplication: 100 (A), based on 9 code lines NamingConvention: 100 (A), based on 2 names Security: not graded 12:9 [warning] security.include_variable - require_once of `$module_file` builds the file path from data; a crafted path can load another file advanced-custom-post-type/src/Integrations/Divi/includes/modules/Fields/Fields.php (other) CodeLength: not graded 111:22 [warning] length.function - ACPT_Fields_Divi_Module::getLayoutFields has 56 lines in its body, above 50 203:22 [warning] length.function - ACPT_Fields_Divi_Module::getFieldsForDivi5 has 59 lines in its body, above 50 278:22 [warning] length.function - ACPT_Fields_Divi_Module::getMainOptionFields has 86 lines in its body, above 50 379:22 [error] length.function - ACPT_Fields_Divi_Module::getSpecificSettingsFields has 105 lines in its body, above 100 497:22 [error] length.function - ACPT_Fields_Divi_Module::getImageAndIconFields has 146 lines in its body, above 100 750:29 [warning] length.function - ACPT_Fields_Divi_Module::render_the_gallery_field has 72 lines in its body, above 50 1000:29 [warning] length.function - ACPT_Fields_Divi_Module::get_acpt_field has 51 lines in its body, above 50 11:7 [error] length.class - ACPT_Fields_Divi_Module has 1042 lines, above 1000 for a other 1:1 [warning] length.file - the file has 1058 lines, above 600 for a other CyclomaticComplexity: 87 (B), based on 20 functions and file level code 203:22 [warning] complexity.function - ACPT_Fields_Divi_Module::getFieldsForDivi5 has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely 750:29 [warning] complexity.function - ACPT_Fields_Divi_Module::render_the_gallery_field has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely 876:29 [error] complexity.function - ACPT_Fields_Divi_Module::render_value_formatted_with_props has a cyclomatic complexity of 36, high risk (above 10): each of its 36 paths needs its own test, which makes it hard to follow and to change safely 1000:29 [error] complexity.function - ACPT_Fields_Divi_Module::get_acpt_field has a cyclomatic complexity of 29, high risk (above 10): each of its 29 paths needs its own test, which makes it hard to follow and to change safely Duplication: 85 (B), based on 768 code lines 576:1 [warning] duplication.repeated_block - lines 576 to 586 repeat lines 501 to 511 (83 tokens); repeated code has to be fixed in every copy 611:1 [warning] duplication.repeated_block - lines 611 to 622 repeat lines 544 to 555 (121 tokens); repeated code has to be fixed in every copy 626:1 [warning] duplication.repeated_block - lines 626 to 636 repeat lines 559 to 569 (87 tokens); repeated code has to be fixed in every copy 842:1 [warning] duplication.repeated_block - lines 842 to 852 repeat lines 769 to 779 (59 tokens); repeated code has to be fixed in every copy NamingConvention: 81 (B), based on 74 names 77:55 [warning] naming.inconsistent_style - parameter `conditional_tags` is snake_case, while most variables and parameters in this file are camelCase (18 of 47 names); mixed styles make code harder to scan 77:84 [warning] naming.inconsistent_style - parameter `current_page` is snake_case, while most variables and parameters in this file are camelCase (18 of 47 names); mixed styles make code harder to scan 102:22 [warning] naming.inconsistent_style - method `selectMessage` is camelCase, while most methods in this file are snake_case (11 of 20 names); mixed styles make code harder to scan 111:22 [warning] naming.inconsistent_style - method `getLayoutFields` is camelCase, while most methods in this file are snake_case (11 of 20 names); mixed styles make code harder to scan 114:14 [warning] naming.inconsistent_style - variable `field_options` is snake_case, while most variables and parameters in this file are camelCase (18 of 47 names); mixed styles make code harder to scan 173:22 [warning] naming.inconsistent_style - method `getFieldsForDivi4` is camelCase, while most methods in this file are snake_case (11 of 20 names); mixed styles make code harder to scan 203:22 [warning] naming.inconsistent_style - method `getFieldsForDivi5` is camelCase, while most methods in this file are snake_case (11 of 20 names); mixed styles make code harder to scan 218:34 [warning] naming.inconsistent_style - variable `belongs_to` is snake_case, while most variables and parameters in this file are camelCase (18 of 47 names); mixed styles make code harder to scan 278:22 [warning] naming.inconsistent_style - method `getMainOptionFields` is camelCase, while most methods in this file are snake_case (11 of 20 names); mixed styles make code harder to scan 379:22 [warning] naming.inconsistent_style - method `getSpecificSettingsFields` is camelCase, while most methods in this file are snake_case (11 of 20 names); mixed styles make code harder to scan 497:22 [warning] naming.inconsistent_style - method `getImageAndIconFields` is camelCase, while most methods in this file are snake_case (11 of 20 names); mixed styles make code harder to scan 668:47 [warning] naming.inconsistent_style - parameter `render_slug` is snake_case, while most variables and parameters in this file are camelCase (18 of 47 names); mixed styles make code harder to scan 731:10 [warning] naming.generic - variable `val` is a generic name; it says nothing about what it holds 876:29 [warning] naming.too_long - method `render_value_formatted_with_props` is 33 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Integrations/Elementor/ACPT_Elementor.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 9 functions Duplication: 100 (A), based on 100 code lines NamingConvention: 89 (B), based on 28 names 86:48 [warning] naming.inconsistent_style - parameter `controls_manager` is snake_case, while most variables and parameters in this file are camelCase (12 of 17 names); mixed styles make code harder to scan 96:49 [warning] naming.inconsistent_style - parameter `elements_manager` is snake_case, while most variables and parameters in this file are camelCase (12 of 17 names); mixed styles make code harder to scan 166:22 [warning] naming.too_long - method `checkIfElementorVersionIsCompatible` is 35 characters (limit 30); very long names make code hard to read Security: not graded 174:9 [warning] security.include_variable - require_once of `$elementorPlugin` builds the file path from data; a crafted path can load another file advanced-custom-post-type/src/Integrations/Elementor/Constants/WidgetConstants.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 5 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Integrations/Elementor/Controls/ShortcodeControl.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 12 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Integrations/Elementor/Widgets/WidgetGenerator.php (other) CodeLength: not graded 78:21 [error] length.function - WidgetGenerator::get_icon has 109 lines in its body, above 100 212:24 [error] length.function - WidgetGenerator::register_controls has 403 lines in its body, above 100 11:7 [warning] length.class - WidgetGenerator has 645 lines, above 500 for a other 1:1 [warning] length.file - the file has 655 lines, above 600 for a other CyclomaticComplexity: 65 (D), based on 9 functions 78:21 [error] complexity.function - WidgetGenerator::get_icon has a cyclomatic complexity of 39, high risk (above 10): each of its 39 paths needs its own test, which makes it hard to follow and to change safely 212:24 [warning] complexity.function - WidgetGenerator::register_controls has a cyclomatic complexity of 16, moderate risk (above 10): each of its 16 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 505 code lines 306:1 [warning] duplication.repeated_block - lines 306 to 316 repeat lines 238 to 248 (53 tokens); repeated code has to be fixed in every copy 358:1 [warning] duplication.repeated_block - lines 358 to 379 repeat lines 276 to 297 (150 tokens); repeated code has to be fixed in every copy 399:1 [warning] duplication.repeated_block - lines 399 to 416 repeat lines 381 to 398 (101 tokens); repeated code has to be fixed in every copy 492:1 [warning] duplication.repeated_block - lines 492 to 503 repeat lines 440 to 451 (57 tokens); repeated code has to be fixed in every copy 509:1 [warning] duplication.repeated_block - lines 509 to 527 repeat lines 450 to 468 (94 tokens); repeated code has to be fixed in every copy 563:1 [warning] duplication.repeated_block - lines 563 to 577 repeat lines 416 to 430 (94 tokens); repeated code has to be fixed in every copy 597:1 [warning] duplication.repeated_block - lines 597 to 606 repeat lines 416 to 425 (61 tokens); repeated code has to be fixed in every copy NamingConvention: 89 (B), based on 18 names 31:34 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds 637:22 [warning] naming.inconsistent_style - method `getContexts` is camelCase, while most methods in this file are snake_case (6 of 8 names); mixed styles make code harder to scan Security: not graded 628:13 [warning] security.unescaped_output - echo of `WidgetRender::render($this->boxFieldModel, $settings)` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) advanced-custom-post-type/src/Integrations/Elementor/Widgets/WidgetRender.php (other) CodeLength: not graded 35:28 [error] length.function - WidgetRender::render has 149 lines in its body, above 100 203:29 [warning] length.function - WidgetRender::renderField has 51 lines in its body, above 50 344:29 [warning] length.function - WidgetRender::renderRepeater has 54 lines in its body, above 50 419:29 [warning] length.function - WidgetRender::renderFlexible has 78 lines in its body, above 50 552:29 [error] length.function - WidgetRender::replacingValue has 458 lines in its body, above 100 25:7 [warning] length.class - WidgetRender has 987 lines, above 500 for a other 1:1 [warning] length.file - the file has 1011 lines, above 600 for a other CyclomaticComplexity: 28 (F), based on 7 functions 35:28 [error] complexity.function - WidgetRender::render has a cyclomatic complexity of 40, high risk (above 10): each of its 40 paths needs its own test, which makes it hard to follow and to change safely 203:29 [warning] complexity.function - WidgetRender::renderField has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely 287:29 [warning] complexity.function - WidgetRender::renderShortcode has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely 419:29 [warning] complexity.function - WidgetRender::renderFlexible has a cyclomatic complexity of 15, moderate risk (above 10): each of its 15 paths needs its own test, which makes it hard to follow and to change safely 552:29 [error] complexity.function - WidgetRender::replacingValue has a cyclomatic complexity of 128, untestable risk (above 10): each of its 128 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 681 code lines 266:1 [warning] duplication.repeated_block - lines 266 to 302 repeat lines 182 to 220 (72 tokens); repeated code has to be fixed in every copy 441:1 [warning] duplication.repeated_block - lines 441 to 457 repeat lines 360 to 376 (75 tokens); repeated code has to be fixed in every copy 459:1 [warning] duplication.repeated_block - lines 459 to 467 repeat lines 375 to 383 (51 tokens); repeated code has to be fixed in every copy 666:1 [warning] duplication.repeated_block - lines 666 to 684 repeat lines 613 to 631 (76 tokens); repeated code has to be fixed in every copy 686:1 [warning] duplication.repeated_block - lines 686 to 694 repeat lines 638 to 647 (55 tokens); repeated code has to be fixed in every copy 696:1 [warning] duplication.repeated_block - lines 696 to 714 repeat lines 613 to 631 (78 tokens); repeated code has to be fixed in every copy 734:1 [warning] duplication.repeated_block - lines 734 to 756 repeat lines 694 to 716 (95 tokens); repeated code has to be fixed in every copy 756:1 [warning] duplication.repeated_block - lines 756 to 770 repeat lines 686 to 701 (58 tokens); repeated code has to be fixed in every copy 799:1 [warning] duplication.repeated_block - lines 799 to 809 repeat lines 603 to 613 (80 tokens); repeated code has to be fixed in every copy 842:1 [warning] duplication.repeated_block - lines 842 to 849 repeat lines 780 to 787 (50 tokens); repeated code has to be fixed in every copy 957:1 [warning] duplication.repeated_block - lines 957 to 967 repeat lines 603 to 613 (80 tokens); repeated code has to be fixed in every copy NamingConvention: 94 (A), based on 84 names 379:18 [warning] naming.generic - variable `var` is a generic name; it says nothing about what it holds 384:83 [warning] naming.too_short - parameter `s` is 1 character (at least 2); a one letter name hides its meaning 468:85 [warning] naming.too_short - parameter `b` is 1 character (at least 2); a one letter name hides its meaning 471:53 [warning] naming.too_short - variable `f` is 1 character (at least 2); a one letter name hides its meaning 630:22 [warning] naming.generic - variable `val` is a generic name; it says nothing about what it holds Security: not graded 50:69 [warning] security.unsanitized_input - read of `$_GET['post']` with no sanitizer around it; sanitize request input where you read it 50:111 [warning] security.unsanitized_input - read of `$_GET['post']` with no sanitizer around it; sanitize request input where you read it 149:14 [warning] security.unsanitized_input - read of `$_SERVER['PHP_SELF']` with no sanitizer around it; sanitize request input where you read it 150:14 [warning] security.unsanitized_input - read of `$_SERVER['PHP_SELF']` with no sanitizer around it; sanitize request input where you read it advanced-custom-post-type/src/Integrations/ElementorPro/ACPT_Elementor_Pro.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 5 functions Duplication: 100 (A), based on 47 code lines NamingConvention: 93 (A), based on 14 names 53:67 [warning] naming.inconsistent_style - parameter `dynamic_tags_manager` is snake_case, while most variables and parameters in this file are camelCase (2 of 8 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Integrations/ElementorPro/Constants/TagsConstants.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 10 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Integrations/ElementorPro/DisplayConditions/ACPTFieldsCondition.php (other) CodeLength: not graded 124:22 [error] length.function - ACPTFieldsCondition::get_condition_value has 146 lines in its body, above 100 CyclomaticComplexity: 54 (F), based on 8 functions and file level code 124:22 [error] complexity.function - ACPTFieldsCondition::get_condition_value has a cyclomatic complexity of 41, high risk (above 10): each of its 41 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 191 code lines NamingConvention: 96 (A), based on 24 names 183:22 [warning] naming.generic - variable `val` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Integrations/ElementorPro/DynamicDataProvider.php (other) CodeLength: not graded 152:22 [warning] length.function - DynamicDataProvider::contextGroups has 72 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 7 functions Duplication: 100 (A), based on 156 code lines NamingConvention: 100 (A), based on 24 names Security: not graded advanced-custom-post-type/src/Integrations/ElementorPro/Tags/ACPTAbstractDataTag.php (other) CodeLength: not graded 58:24 [warning] length.function - ACPTAbstractDataTag::register_controls has 51 lines in its body, above 50 209:24 [warning] length.function - ACPTAbstractDataTag::getRawData has 52 lines in its body, above 50 CyclomaticComplexity: 84 (B), based on 5 functions 154:24 [warning] complexity.function - ACPTAbstractDataTag::getCurrentPostId has a cyclomatic complexity of 17, moderate risk (above 10): each of its 17 paths needs its own test, which makes it hard to follow and to change safely 209:24 [warning] complexity.function - ACPTAbstractDataTag::getRawData has a cyclomatic complexity of 18, moderate risk (above 10): each of its 18 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 168 code lines NamingConvention: 90 (A), based on 30 names 114:24 [warning] naming.inconsistent_style - method `extractField` is camelCase, while most methods in this file are snake_case (5 of 8 names); mixed styles make code harder to scan 154:24 [warning] naming.inconsistent_style - method `getCurrentPostId` is camelCase, while most methods in this file are snake_case (5 of 8 names); mixed styles make code harder to scan 209:24 [warning] naming.inconsistent_style - method `getRawData` is camelCase, while most methods in this file are snake_case (5 of 8 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Integrations/ElementorPro/Tags/ACPTAbstractTag.php (other) CodeLength: not graded 175:24 [warning] length.function - ACPTAbstractTag::getRawData has 69 lines in its body, above 50 CyclomaticComplexity: 70 (C), based on 6 functions 175:24 [error] complexity.function - ACPTAbstractTag::getRawData has a cyclomatic complexity of 21, high risk (above 10): each of its 21 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 143 code lines NamingConvention: 88 (B), based on 25 names 135:24 [warning] naming.inconsistent_style - method `extractField` is camelCase, while most methods in this file are snake_case (6 of 9 names); mixed styles make code harder to scan 165:24 [warning] naming.inconsistent_style - method `getCurrentPostId` is camelCase, while most methods in this file are snake_case (6 of 9 names); mixed styles make code harder to scan 175:24 [warning] naming.inconsistent_style - method `getRawData` is camelCase, while most methods in this file are snake_case (6 of 9 names); mixed styles make code harder to scan Security: not graded 169:55 [warning] security.unsanitized_input - read of `$_GET['post']` with no sanitizer around it; sanitize request input where you read it advanced-custom-post-type/src/Integrations/ElementorPro/Tags/ACPTColorTag.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 37 code lines NamingConvention: 100 (A), based on 11 names Security: not graded advanced-custom-post-type/src/Integrations/ElementorPro/Tags/ACPTDateTimeTag.php (other) CodeLength: not graded 99:21 [error] length.function - ACPTDateTimeTag::render has 104 lines in its body, above 100 CyclomaticComplexity: 55 (F), based on 5 functions 99:21 [error] complexity.function - ACPTDateTimeTag::render has a cyclomatic complexity of 28, high risk (above 10): each of its 28 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 146 code lines 184:1 [warning] duplication.repeated_block - lines 184 to 195 repeat lines 171 to 182 (56 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 23 names Security: not graded advanced-custom-post-type/src/Integrations/ElementorPro/Tags/ACPTGalleryTag.php (other) CodeLength: not graded CyclomaticComplexity: 76 (C), based on 4 functions 36:21 [warning] complexity.function - ACPTGalleryTag::get_value has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 53 code lines NamingConvention: 100 (A), based on 12 names Security: not graded advanced-custom-post-type/src/Integrations/ElementorPro/Tags/ACPTImageTag.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 5 functions Duplication: 100 (A), based on 49 code lines NamingConvention: 92 (A), based on 12 names 76:22 [warning] naming.inconsistent_style - method `emptyImage` is camelCase, while most methods in this file are snake_case (4 of 5 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Integrations/ElementorPro/Tags/ACPTMediaTag.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 5 functions Duplication: 100 (A), based on 49 code lines NamingConvention: 92 (A), based on 12 names 71:22 [warning] naming.inconsistent_style - method `emptyFile` is camelCase, while most methods in this file are snake_case (4 of 5 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Integrations/ElementorPro/Tags/ACPTNumberTag.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 42 code lines NamingConvention: 100 (A), based on 12 names Security: not graded advanced-custom-post-type/src/Integrations/ElementorPro/Tags/ACPTPhoneTag.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 5 functions Duplication: 100 (A), based on 59 code lines NamingConvention: 93 (A), based on 15 names 93:14 [warning] naming.generic - variable `val` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Integrations/ElementorPro/Tags/ACPTSelectTag.php (other) CodeLength: not graded CyclomaticComplexity: 88 (B), based on 7 functions 72:22 [warning] complexity.function - ACPTSelectTag::renderValueOrLabel has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 73 code lines NamingConvention: 88 (B), based on 16 names 72:22 [warning] naming.inconsistent_style - method `renderValueOrLabel` is camelCase, while most methods in this file are snake_case (4 of 7 names); mixed styles make code harder to scan 108:22 [warning] naming.inconsistent_style - method `optionLabel` is camelCase, while most methods in this file are snake_case (4 of 7 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Integrations/ElementorPro/Tags/ACPTTextTag.php (other) CodeLength: not graded 57:21 [error] length.function - ACPTTextTag::render has 141 lines in its body, above 100 CyclomaticComplexity: 35 (F), based on 4 functions 57:21 [error] complexity.function - ACPTTextTag::render has a cyclomatic complexity of 47, high risk (above 10): each of its 47 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 120 code lines NamingConvention: 94 (A), based on 18 names 152:26 [warning] naming.generic - variable `val` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Integrations/ElementorPro/Tags/ACPTUnitOfMeasureTag.php (other) CodeLength: not graded 44:21 [warning] length.function - ACPTUnitOfMeasureTag::register_controls has 94 lines in its body, above 50 202:22 [warning] length.function - ACPTUnitOfMeasureTag::renderUom has 56 lines in its body, above 50 CyclomaticComplexity: 92 (A), based on 6 functions 202:22 [warning] complexity.function - ACPTUnitOfMeasureTag::renderUom has a cyclomatic complexity of 20, moderate risk (above 10): each of its 20 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 188 code lines NamingConvention: 95 (A), based on 21 names 202:22 [warning] naming.inconsistent_style - method `renderUom` is camelCase, while most methods in this file are snake_case (4 of 6 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Integrations/ElementorPro/Tags/ACPTUrlTag.php (other) CodeLength: not graded 49:21 [warning] length.function - ACPTUrlTag::render has 62 lines in its body, above 50 CyclomaticComplexity: 75 (C), based on 4 functions 49:21 [warning] complexity.function - ACPTUrlTag::render has a cyclomatic complexity of 20, moderate risk (above 10): each of its 20 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 66 code lines NamingConvention: 93 (A), based on 14 names 95:26 [warning] naming.generic - variable `val` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Integrations/Etch/ACPT_Etch.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 58 code lines NamingConvention: 92 (A), based on 12 names 63:42 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Integrations/Etch/Provider/EtchProvider.php (other) CodeLength: not graded 95:21 [warning] length.function - EtchProvider::fields has 69 lines in its body, above 50 172:22 [warning] length.function - EtchProvider::convertWPAttachmentsToStdObjects has 65 lines in its body, above 50 CyclomaticComplexity: 78 (C), based on 5 functions 95:21 [warning] complexity.function - EtchProvider::fields has a cyclomatic complexity of 15, moderate risk (above 10): each of its 15 paths needs its own test, which makes it hard to follow and to change safely 172:22 [warning] complexity.function - EtchProvider::convertWPAttachmentsToStdObjects has a cyclomatic complexity of 18, moderate risk (above 10): each of its 18 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 146 code lines 148:1 [warning] duplication.repeated_block - lines 148 to 161 repeat lines 111 to 124 (74 tokens); repeated code has to be fixed in every copy NamingConvention: 96 (A), based on 23 names 172:22 [warning] naming.too_long - method `convertWPAttachmentsToStdObjects` is 32 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Integrations/FacetWP/ACPT_FacetWP.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 25 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Integrations/FacetWP/Provider/FacetWPProvider.php (other) CodeLength: not graded 118:21 [warning] length.function - FacetWPProvider::indexAcptValues has 98 lines in its body, above 50 226:22 [error] length.function - FacetWPProvider::getValuesToIndex has 133 lines in its body, above 100 575:21 [warning] length.function - FacetWPProvider::indexSourceOther has 62 lines in its body, above 50 652:21 [error] length.function - FacetWPProvider::layoutBuilderValues has 145 lines in its body, above 100 11:7 [warning] length.class - FacetWPProvider has 788 lines, above 500 for a other 1:1 [warning] length.file - the file has 798 lines, above 600 for a other CyclomaticComplexity: 52 (F), based on 14 functions 118:21 [warning] complexity.function - FacetWPProvider::indexAcptValues has a cyclomatic complexity of 19, moderate risk (above 10): each of its 19 paths needs its own test, which makes it hard to follow and to change safely 226:22 [error] complexity.function - FacetWPProvider::getValuesToIndex has a cyclomatic complexity of 47, high risk (above 10): each of its 47 paths needs its own test, which makes it hard to follow and to change safely 387:22 [warning] complexity.function - FacetWPProvider::processFieldValue has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely 575:21 [warning] complexity.function - FacetWPProvider::indexSourceOther has a cyclomatic complexity of 16, moderate risk (above 10): each of its 16 paths needs its own test, which makes it hard to follow and to change safely 652:21 [error] complexity.function - FacetWPProvider::layoutBuilderValues has a cyclomatic complexity of 57, untestable risk (above 10): each of its 57 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 488 code lines 190:1 [warning] duplication.repeated_block - lines 190 to 208 repeat lines 151 to 167 (64 tokens); repeated code has to be fixed in every copy 276:1 [warning] duplication.repeated_block - lines 276 to 283 repeat lines 252 to 259 (69 tokens); repeated code has to be fixed in every copy 283:1 [warning] duplication.repeated_block - lines 283 to 298 repeat lines 268 to 283 (87 tokens); repeated code has to be fixed in every copy 588:1 [warning] duplication.repeated_block - lines 588 to 600 repeat lines 142 to 153 (58 tokens); repeated code has to be fixed in every copy NamingConvention: 90 (A), based on 80 names 40:19 [warning] naming.inconsistent_style - property `fieldsLoaded` is camelCase, while most properties in this file are snake_case (2 of 4 names); mixed styles make code harder to scan 81:42 [warning] naming.inconsistent_style - parameter `orderBy` is camelCase, while most variables and parameters in this file are snake_case (18 of 60 names); mixed styles make code harder to scan 182:49 [warning] naming.generic - variable `val` is a generic name; it says nothing about what it holds 367:41 [warning] naming.generic - parameter `str` is a generic name; it says nothing about what it holds 480:14 [warning] naming.inconsistent_style - variable `fieldGroups` is camelCase, while most variables and parameters in this file are snake_case (18 of 60 names); mixed styles make code harder to scan 488:35 [warning] naming.inconsistent_style - variable `fieldGroup` is camelCase, while most variables and parameters in this file are snake_case (18 of 60 names); mixed styles make code harder to scan 489:50 [warning] naming.inconsistent_style - variable `metaBox` is camelCase, while most variables and parameters in this file are snake_case (18 of 60 names); mixed styles make code harder to scan 667:10 [warning] naming.too_short - variable `f` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/ACPT_GenerateBlocks.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 27 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/DynamicDataProvider.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 44 code lines NamingConvention: 100 (A), based on 12 names Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/DynamicTags.php (other) CodeLength: not graded 53:21 [error] length.function - DynamicTags::getMetaPreValue has 102 lines in its body, above 100 CyclomaticComplexity: 57 (F), based on 4 functions 53:21 [error] complexity.function - DynamicTags::getMetaPreValue has a cyclomatic complexity of 24, high risk (above 10): each of its 24 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 132 code lines 202:1 [warning] duplication.repeated_block - lines 202 to 217 repeat lines 173 to 188 (53 tokens); repeated code has to be fixed in every copy NamingConvention: 87 (B), based on 23 names 53:38 [warning] naming.inconsistent_style - parameter `pre_value` is snake_case, while most variables and parameters in this file are camelCase (2 of 18 names); mixed styles make code harder to scan 137:26 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds 140:49 [warning] naming.too_short - variable `d` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/Fields/AbstractField.php (other) CodeLength: not graded 278:24 [warning] length.function - AbstractField::mediaRenderOptions has 95 lines in its body, above 50 14:16 [warning] length.class - AbstractField has 580 lines, above 500 for a other CyclomaticComplexity: 97 (A), based on 20 functions 164:22 [warning] complexity.function - AbstractField::getRawValue has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 441 code lines 328:1 [warning] duplication.repeated_block - lines 328 to 341 repeat lines 291 to 304 (79 tokens); repeated code has to be fixed in every copy 347:1 [warning] duplication.repeated_block - lines 347 to 358 repeat lines 316 to 327 (61 tokens); repeated code has to be fixed in every copy 358:1 [warning] duplication.repeated_block - lines 358 to 368 repeat lines 294 to 304 (66 tokens); repeated code has to be fixed in every copy NamingConvention: 95 (A), based on 38 names 166:10 [warning] naming.too_short - variable `a` is 1 character (at least 2); a one letter name hides its meaning 167:10 [warning] naming.too_short - variable `b` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/Fields/AddressField.php (other) CodeLength: not graded CyclomaticComplexity: 75 (C), based on 2 functions 25:24 [warning] complexity.function - AddressField::render has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 54 code lines NamingConvention: 100 (A), based on 9 names Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/Fields/AudioField.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 4 code lines NamingConvention: 100 (A), based on 1 name Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/Fields/AudioMultiField.php (other) CodeLength: not graded 41:24 [warning] length.function - AudioMultiField::render has 80 lines in its body, above 50 CyclomaticComplexity: 46 (F), based on 2 functions 41:24 [error] complexity.function - AudioMultiField::render has a cyclomatic complexity of 24, high risk (above 10): each of its 24 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 90 code lines NamingConvention: 100 (A), based on 15 names Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/Fields/CheckboxField.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 4 code lines NamingConvention: 100 (A), based on 1 name Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/Fields/ColorField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 18 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/Fields/CountryField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 42 code lines NamingConvention: 100 (A), based on 10 names Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/Fields/CurrencyField.php (other) CodeLength: not graded 52:24 [warning] length.function - CurrencyField::render has 51 lines in its body, above 50 CyclomaticComplexity: 82 (B), based on 2 functions 52:24 [warning] complexity.function - CurrencyField::render has a cyclomatic complexity of 14, moderate risk (above 10): each of its 14 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 81 code lines NamingConvention: 86 (B), based on 14 names 52:32 [warning] naming.inconsistent_style - parameter `rawValue` is camelCase, while most variables and parameters in this file are snake_case (2 of 11 names); mixed styles make code harder to scan 62:10 [warning] naming.generic - variable `val` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/Fields/DateField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 66 code lines NamingConvention: 100 (A), based on 12 names Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/Fields/DateRangeField.php (other) CodeLength: not graded 34:24 [warning] length.function - DateRangeField::render has 62 lines in its body, above 50 CyclomaticComplexity: 83 (B), based on 4 functions 34:24 [warning] complexity.function - DateRangeField::render has a cyclomatic complexity of 14, moderate risk (above 10): each of its 14 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 95 code lines NamingConvention: 100 (A), based on 17 names Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/Fields/DateTimeField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 48 code lines NamingConvention: 100 (A), based on 11 names Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/Fields/EditorField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 30 code lines NamingConvention: 100 (A), based on 10 names Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/Fields/EmailField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 31 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/Fields/FileField.php (other) CodeLength: not graded 27:24 [warning] length.function - FileField::render has 51 lines in its body, above 50 CyclomaticComplexity: 75 (C), based on 2 functions 27:24 [warning] complexity.function - FileField::render has a cyclomatic complexity of 17, moderate risk (above 10): each of its 17 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 53 code lines NamingConvention: 100 (A), based on 10 names Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/Fields/GalleryField.php (other) CodeLength: not graded 47:24 [warning] length.function - GalleryField::render has 77 lines in its body, above 50 CyclomaticComplexity: 78 (C), based on 2 functions 47:24 [warning] complexity.function - GalleryField::render has a cyclomatic complexity of 20, moderate risk (above 10): each of its 20 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 94 code lines NamingConvention: 100 (A), based on 16 names Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/Fields/HTMLField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 21 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/Fields/ImageField.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 4 code lines NamingConvention: 100 (A), based on 1 name Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/Fields/ImageSliderField.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 4 code lines NamingConvention: 100 (A), based on 1 name Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/Fields/LengthField.php (other) CodeLength: not graded 12:24 [warning] length.function - LengthField::render has 51 lines in its body, above 50 CyclomaticComplexity: 70 (C), based on 1 function 12:24 [warning] complexity.function - LengthField::render has a cyclomatic complexity of 14, moderate risk (above 10): each of its 14 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 45 code lines NamingConvention: 85 (B), based on 13 names 12:32 [warning] naming.inconsistent_style - parameter `rawValue` is camelCase, while most variables and parameters in this file are snake_case (2 of 11 names); mixed styles make code harder to scan 22:10 [warning] naming.generic - variable `val` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/Fields/ListField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 52 code lines NamingConvention: 100 (A), based on 12 names Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/Fields/NumberField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 53 code lines NamingConvention: 91 (A), based on 11 names 44:32 [warning] naming.inconsistent_style - parameter `rawValue` is camelCase, while most variables and parameters in this file are snake_case (2 of 8 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/Fields/PhoneField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 41 code lines NamingConvention: 92 (A), based on 12 names 49:10 [warning] naming.generic - variable `val` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/Fields/PostField.php (other) CodeLength: not graded CyclomaticComplexity: 83 (B), based on 3 functions 66:22 [warning] complexity.function - PostField::renderElement has a cyclomatic complexity of 15, moderate risk (above 10): each of its 15 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 78 code lines NamingConvention: 100 (A), based on 15 names Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/Fields/PostObjectField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 41 code lines NamingConvention: 100 (A), based on 11 names Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/Fields/RadioField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 21 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/Fields/SelectField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 21 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/Fields/SelectMultiField.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 4 code lines NamingConvention: 100 (A), based on 1 name Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/Fields/TermObjectField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 44 code lines NamingConvention: 100 (A), based on 11 names Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/Fields/TextField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 21 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/Fields/TextareaField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 21 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/Fields/TimeField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 40 code lines NamingConvention: 100 (A), based on 9 names Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/Fields/UrlField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 46 code lines NamingConvention: 100 (A), based on 11 names Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/Fields/UserField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 40 code lines NamingConvention: 100 (A), based on 10 names Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/Fields/VideoField.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 4 code lines NamingConvention: 100 (A), based on 1 name Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/Fields/VideoMultiField.php (other) CodeLength: not graded 41:24 [warning] length.function - VideoMultiField::render has 72 lines in its body, above 50 CyclomaticComplexity: 78 (C), based on 2 functions 41:24 [warning] complexity.function - VideoMultiField::render has a cyclomatic complexity of 18, moderate risk (above 10): each of its 18 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 84 code lines NamingConvention: 100 (A), based on 15 names Security: not graded advanced-custom-post-type/src/Integrations/GenerateBlocks/Provider/Fields/WeightField.php (other) CodeLength: not graded 12:24 [warning] length.function - WeightField::render has 51 lines in its body, above 50 CyclomaticComplexity: 70 (C), based on 1 function 12:24 [warning] complexity.function - WeightField::render has a cyclomatic complexity of 14, moderate risk (above 10): each of its 14 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 45 code lines NamingConvention: 85 (B), based on 13 names 12:32 [warning] naming.inconsistent_style - parameter `rawValue` is camelCase, while most variables and parameters in this file are snake_case (2 of 11 names); mixed styles make code harder to scan 22:10 [warning] naming.generic - variable `val` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Integrations/Gutenberg/ACPT_Gutenberg.php (other) CodeLength: not graded CyclomaticComplexity: 86 (B), based on 8 functions 33:24 [warning] complexity.function - ACPT_Gutenberg::isActive has a cyclomatic complexity of 15, moderate risk (above 10): each of its 15 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 94 code lines NamingConvention: 94 (A), based on 17 names 178:14 [warning] naming.too_short - variable `g` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Integrations/Gutenberg/Generators/ACPTBlocks/Blocks/AbstractBlockRenderer.php (other) CodeLength: not graded 14:24 [warning] length.function - AbstractBlockRenderer::rawValue has 74 lines in its body, above 50 CyclomaticComplexity: 30 (F), based on 1 function 14:24 [error] complexity.function - AbstractBlockRenderer::rawValue has a cyclomatic complexity of 23, high risk (above 10): each of its 23 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 62 code lines NamingConvention: 100 (A), based on 13 names Security: not graded 41:28 [warning] security.unsanitized_input - read of `$_SERVER['HTTP_REFERER']` with no sanitizer around it; sanitize request input where you read it advanced-custom-post-type/src/Integrations/Gutenberg/Generators/ACPTBlocks/Blocks/BasicBlockRenderer.php (other) CodeLength: not graded 65:22 [error] length.function - BasicBlockRenderer::getRawData has 877 lines in its body, above 100 25:7 [warning] length.class - BasicBlockRenderer has 984 lines, above 500 for a other 1:1 [warning] length.file - the file has 1008 lines, above 600 for a other CyclomaticComplexity: 6 (F), based on 4 functions 65:22 [error] complexity.function - BasicBlockRenderer::getRawData has a cyclomatic complexity of 260, untestable risk (above 10): each of its 260 paths needs its own test, which makes it hard to follow and to change safely 952:22 [warning] complexity.function - BasicBlockRenderer::renderImage has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 656 code lines 131:1 [warning] duplication.repeated_block - lines 131 to 138 repeat lines 118 to 125 (57 tokens); repeated code has to be fixed in every copy 200:1 [warning] duplication.repeated_block - lines 200 to 209 repeat lines 182 to 191 (108 tokens); repeated code has to be fixed in every copy 270:1 [warning] duplication.repeated_block - lines 270 to 277 repeat lines 234 to 241 (72 tokens); repeated code has to be fixed in every copy 397:1 [warning] duplication.repeated_block - lines 397 to 414 repeat lines 351 to 367 (62 tokens); repeated code has to be fixed in every copy 427:1 [warning] duplication.repeated_block - lines 427 to 444 repeat lines 351 to 367 (66 tokens); repeated code has to be fixed in every copy 651:1 [warning] duplication.repeated_block - lines 651 to 670 repeat lines 310 to 329 (107 tokens); repeated code has to be fixed in every copy 670:1 [warning] duplication.repeated_block - lines 670 to 695 repeat lines 329 to 354 (127 tokens); repeated code has to be fixed in every copy 787:1 [warning] duplication.repeated_block - lines 787 to 804 repeat lines 351 to 367 (64 tokens); repeated code has to be fixed in every copy 889:1 [warning] duplication.repeated_block - lines 889 to 908 repeat lines 310 to 329 (107 tokens); repeated code has to be fixed in every copy 908:1 [warning] duplication.repeated_block - lines 908 to 930 repeat lines 329 to 351 (122 tokens); repeated code has to be fixed in every copy 966:1 [warning] duplication.repeated_block - lines 966 to 968 repeat lines 556 to 558 (58 tokens); repeated code has to be fixed in every copy NamingConvention: 99 (A), based on 93 names 365:18 [warning] naming.generic - variable `val` is a generic name; it says nothing about what it holds Security: not graded 85:28 [warning] security.unsanitized_input - read of `$_SERVER['HTTP_REFERER']` with no sanitizer around it; sanitize request input where you read it advanced-custom-post-type/src/Integrations/Gutenberg/Generators/ACPTBlocks/Blocks/RelationalBlockRenderer.php (other) CodeLength: not graded 16:21 [warning] length.function - RelationalBlockRenderer::render has 53 lines in its body, above 50 CyclomaticComplexity: 85 (B), based on 2 functions 16:21 [warning] complexity.function - RelationalBlockRenderer::render has a cyclomatic complexity of 14, moderate risk (above 10): each of its 14 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 72 code lines NamingConvention: 88 (B), based on 16 names 37:22 [warning] naming.too_short - variable `c` is 1 character (at least 2); a one letter name hides its meaning 39:41 [warning] naming.generic - variable `val` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Integrations/Gutenberg/Generators/ACPTBlocks/Blocks/RepeaterLoopBlockRenderer.php (other) CodeLength: not graded 118:22 [warning] length.function - RepeaterLoopBlockRenderer::renderFlexibleField has 64 lines in its body, above 50 282:22 [error] length.function - RepeaterLoopBlockRenderer::realValue has 751 lines in its body, above 100 19:7 [error] length.class - RepeaterLoopBlockRenderer has 1135 lines, above 1000 for a other 1:1 [warning] length.file - the file has 1153 lines, above 600 for a other CyclomaticComplexity: 21 (F), based on 9 functions 61:22 [warning] complexity.function - RepeaterLoopBlockRenderer::renderRepeaterField has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely 118:22 [warning] complexity.function - RepeaterLoopBlockRenderer::renderFlexibleField has a cyclomatic complexity of 16, moderate risk (above 10): each of its 16 paths needs its own test, which makes it hard to follow and to change safely 282:22 [error] complexity.function - RepeaterLoopBlockRenderer::realValue has a cyclomatic complexity of 264, untestable risk (above 10): each of its 264 paths needs its own test, which makes it hard to follow and to change safely 1078:22 [warning] complexity.function - RepeaterLoopBlockRenderer::renderList has a cyclomatic complexity of 15, moderate risk (above 10): each of its 15 paths needs its own test, which makes it hard to follow and to change safely 1117:22 [warning] complexity.function - RepeaterLoopBlockRenderer::renderAmount has a cyclomatic complexity of 16, moderate risk (above 10): each of its 16 paths needs its own test, which makes it hard to follow and to change safely Duplication: 85 (B), based on 700 code lines 159:1 [warning] duplication.repeated_block - lines 159 to 168 repeat lines 89 to 98 (83 tokens); repeated code has to be fixed in every copy 829:1 [warning] duplication.repeated_block - lines 829 to 839 repeat lines 704 to 714 (55 tokens); repeated code has to be fixed in every copy 862:1 [warning] duplication.repeated_block - lines 862 to 869 repeat lines 735 to 742 (57 tokens); repeated code has to be fixed in every copy 951:1 [warning] duplication.repeated_block - lines 951 to 961 repeat lines 704 to 714 (55 tokens); repeated code has to be fixed in every copy 982:1 [warning] duplication.repeated_block - lines 982 to 989 repeat lines 735 to 742 (53 tokens); repeated code has to be fixed in every copy NamingConvention: 95 (A), based on 96 names 83:18 [warning] naming.too_short - variable `s` is 1 character (at least 2); a one letter name hides its meaning 85:45 [warning] naming.too_short - variable `v` is 1 character (at least 2); a one letter name hides its meaning 134:34 [warning] naming.too_short - variable `b` is 1 character (at least 2); a one letter name hides its meaning 146:61 [warning] naming.generic - variable `val` is a generic name; it says nothing about what it holds 651:18 [warning] naming.inconsistent_style - variable `decimal_point` is snake_case, while most variables and parameters in this file are camelCase (21 of 86 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Integrations/Gutenberg/Generators/ACPTBlocks/Generators/AbstractACPTBlockGenerator.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 5 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Integrations/Gutenberg/Generators/ACPTBlocks/Generators/BasicBlockGenerator.php (other) CodeLength: not graded 23:22 [error] length.function - BasicBlockGenerator::registerBlock has 154 lines in its body, above 100 CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 171 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Integrations/Gutenberg/Generators/ACPTBlocks/Generators/RelationalBlockGenerator.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 39 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Integrations/Gutenberg/Generators/ACPTBlocks/Generators/RepeaterBlockGenerator.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 35 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Integrations/Gutenberg/Generators/DynamicBlocks/DynamicBlockGenerator.php (other) CodeLength: not graded 54:22 [warning] length.function - DynamicBlockGenerator::isPostTypeEnabled has 53 lines in its body, above 50 228:22 [warning] length.function - DynamicBlockGenerator::generateInlineJs has 60 lines in its body, above 50 CyclomaticComplexity: 92 (A), based on 10 functions 54:22 [warning] complexity.function - DynamicBlockGenerator::isPostTypeEnabled has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 135 code lines NamingConvention: 96 (A), based on 26 names 117:58 [warning] naming.too_short - parameter `p` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Integrations/Gutenberg/Generators/DynamicBlocks/DynamicBlocksGenerator.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 21 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Integrations/Oxygen/ACPT_Oxygen.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 19 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Integrations/Oxygen/Provider/Helper/OxygenDataKey.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 28 code lines NamingConvention: 92 (A), based on 13 names 39:10 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Integrations/Oxygen/Provider/OxygenDataProvider.php (other) CodeLength: not graded 31:21 [warning] length.function - OxygenDataProvider::initDynamicData has 98 lines in its body, above 50 137:21 [error] length.function - OxygenDataProvider::addButton has 272 lines in its body, above 100 419:21 [error] length.function - OxygenDataProvider::dynamicDataContentHandler has 444 lines in its body, above 100 871:22 [warning] length.function - OxygenDataProvider::getRawMetaValue has 79 lines in its body, above 50 958:21 [warning] length.function - OxygenDataProvider::addUrlButton has 74 lines in its body, above 50 1042:21 [error] length.function - OxygenDataProvider::dynamicDataUrlHandler has 101 lines in its body, above 100 23:7 [error] length.class - OxygenDataProvider has 1194 lines, above 1000 for a other 1:1 [error] length.file - the file has 1216 lines, above 1200 for a other CyclomaticComplexity: 45 (F), based on 8 functions 137:21 [warning] complexity.function - OxygenDataProvider::addButton has a cyclomatic complexity of 20, moderate risk (above 10): each of its 20 paths needs its own test, which makes it hard to follow and to change safely 419:21 [error] complexity.function - OxygenDataProvider::dynamicDataContentHandler has a cyclomatic complexity of 118, untestable risk (above 10): each of its 118 paths needs its own test, which makes it hard to follow and to change safely 871:22 [warning] complexity.function - OxygenDataProvider::getRawMetaValue has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely 1042:21 [error] complexity.function - OxygenDataProvider::dynamicDataUrlHandler has a cyclomatic complexity of 24, high risk (above 10): each of its 24 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 873 code lines 94:1 [warning] duplication.repeated_block - lines 94 to 103 repeat lines 83 to 92 (50 tokens); repeated code has to be fixed in every copy 285:1 [warning] duplication.repeated_block - lines 285 to 294 repeat lines 211 to 220 (53 tokens); repeated code has to be fixed in every copy 348:1 [warning] duplication.repeated_block - lines 348 to 358 repeat lines 284 to 294 (54 tokens); repeated code has to be fixed in every copy 559:1 [warning] duplication.repeated_block - lines 559 to 576 repeat lines 534 to 551 (68 tokens); repeated code has to be fixed in every copy 583:1 [warning] duplication.repeated_block - lines 583 to 603 repeat lines 556 to 576 (74 tokens); repeated code has to be fixed in every copy 976:1 [warning] duplication.repeated_block - lines 976 to 988 repeat lines 301 to 313 (132 tokens); repeated code has to be fixed in every copy 989:1 [warning] duplication.repeated_block - lines 989 to 1011 repeat lines 315 to 337 (165 tokens); repeated code has to be fixed in every copy 1014:1 [warning] duplication.repeated_block - lines 1014 to 1043 repeat lines 391 to 420 (137 tokens); repeated code has to be fixed in every copy 1044:1 [warning] duplication.repeated_block - lines 1044 to 1069 repeat lines 423 to 448 (95 tokens); repeated code has to be fixed in every copy 1085:1 [warning] duplication.repeated_block - lines 1085 to 1111 repeat lines 667 to 693 (129 tokens); repeated code has to be fixed in every copy 1159:1 [warning] duplication.repeated_block - lines 1159 to 1166 repeat lines 1014 to 1021 (100 tokens); repeated code has to be fixed in every copy 1186:1 [warning] duplication.repeated_block - lines 1186 to 1198 repeat lines 1043 to 1055 (51 tokens); repeated code has to be fixed in every copy NamingConvention: 99 (A), based on 78 names 777:18 [warning] naming.generic - variable `val` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Integrations/Polylang/ACPT_Polylang.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 33 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Integrations/Polylang/Helper/PolylangChecker.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 15 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Integrations/Polylang/Strings/PolylangStrings.php (other) CodeLength: not graded 69:21 [error] length.function - PolylangStrings::register has 127 lines in its body, above 100 CyclomaticComplexity: 79 (C), based on 4 functions 69:21 [warning] complexity.function - PolylangStrings::register has a cyclomatic complexity of 17, moderate risk (above 10): each of its 17 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 162 code lines 166:1 [warning] duplication.repeated_block - lines 166 to 169 repeat lines 160 to 163 (67 tokens); repeated code has to be fixed in every copy 185:1 [warning] duplication.repeated_block - lines 185 to 192 repeat lines 171 to 178 (54 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 30 names Security: not graded advanced-custom-post-type/src/Integrations/RankMath/ACPT_RankMath.php (other) CodeLength: not graded 63:21 [warning] length.function - ACPT_RankMath::registerFields has 60 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 40 (F), based on 150 code lines 107:1 [warning] duplication.repeated_block - lines 107 to 122 repeat lines 74 to 89 (81 tokens); repeated code has to be fixed in every copy 195:1 [warning] duplication.repeated_block - lines 195 to 207 repeat lines 182 to 194 (52 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 24 names Security: not graded advanced-custom-post-type/src/Integrations/RankMath/Provider/FieldProvider.php (other) CodeLength: not graded 82:21 [warning] length.function - FieldProvider::getData has 52 lines in its body, above 50 141:22 [error] length.function - FieldProvider::renderField has 343 lines in its body, above 100 CyclomaticComplexity: 21 (F), based on 7 functions 141:22 [error] complexity.function - FieldProvider::renderField has a cyclomatic complexity of 87, untestable risk (above 10): each of its 87 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 308 code lines 299:1 [warning] duplication.repeated_block - lines 299 to 313 repeat lines 277 to 292 (62 tokens); repeated code has to be fixed in every copy 316:1 [warning] duplication.repeated_block - lines 316 to 319 repeat lines 294 to 297 (56 tokens); repeated code has to be fixed in every copy 338:1 [warning] duplication.repeated_block - lines 338 to 355 repeat lines 277 to 294 (80 tokens); repeated code has to be fixed in every copy 363:1 [warning] duplication.repeated_block - lines 363 to 378 repeat lines 299 to 313 (64 tokens); repeated code has to be fixed in every copy NamingConvention: 97 (A), based on 33 names 158:10 [warning] naming.generic - variable `val` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Integrations/SeoPress/ACPT_SeoPress.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 20 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Integrations/SeoPress/Provider/Fields/Address.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 11 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Integrations/SeoPress/Provider/Fields/AddressMulti.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 17 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Integrations/SeoPress/Provider/Fields/ArrayValues.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 14 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Integrations/SeoPress/Provider/Fields/Attachment.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 20 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Integrations/SeoPress/Provider/Fields/Base.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 20 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Integrations/SeoPress/Provider/Fields/Currency.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 12 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Integrations/SeoPress/Provider/Fields/Date.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 15 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Integrations/SeoPress/Provider/Fields/DateRange.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 16 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Integrations/SeoPress/Provider/Fields/DateTime.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 15 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Integrations/SeoPress/Provider/Fields/File.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 16 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Integrations/SeoPress/Provider/Fields/Length.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 12 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Integrations/SeoPress/Provider/Fields/Phone.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 14 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Integrations/SeoPress/Provider/Fields/Post.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 11 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Integrations/SeoPress/Provider/Fields/PostMulti.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 17 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Integrations/SeoPress/Provider/Fields/Relationship.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 21 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Integrations/SeoPress/Provider/Fields/Term.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 11 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Integrations/SeoPress/Provider/Fields/TermMulti.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 17 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Integrations/SeoPress/Provider/Fields/Time.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 15 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Integrations/SeoPress/Provider/Fields/Url.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 12 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Integrations/SeoPress/Provider/Fields/User.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 11 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Integrations/SeoPress/Provider/Fields/UserMulti.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 17 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Integrations/SeoPress/Provider/Fields/Weight.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 12 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Integrations/SeoPress/Provider/SeoPressProvider.php (other) CodeLength: not graded 288:21 [warning] length.function - SeoPressProvider::getFieldValue has 70 lines in its body, above 50 365:22 [error] length.function - SeoPressProvider::renderField has 166 lines in its body, above 100 CyclomaticComplexity: 59 (F), based on 10 functions 107:22 [warning] complexity.function - SeoPressProvider::setFields has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely 288:21 [warning] complexity.function - SeoPressProvider::getFieldValue has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely 365:22 [error] complexity.function - SeoPressProvider::renderField has a cyclomatic complexity of 38, high risk (above 10): each of its 38 paths needs its own test, which makes it hard to follow and to change safely Duplication: 0 (F), based on 323 code lines 56:1 [warning] duplication.repeated_block - lines 56 to 68 repeat lines 43 to 55 (52 tokens); repeated code has to be fixed in every copy 69:1 [warning] duplication.repeated_block - lines 69 to 86 repeat lines 43 to 60 (72 tokens); repeated code has to be fixed in every copy 412:1 [warning] duplication.repeated_block - lines 412 to 424 repeat lines 397 to 409 (57 tokens); repeated code has to be fixed in every copy 434:1 [warning] duplication.repeated_block - lines 434 to 453 repeat lines 397 to 412 (62 tokens); repeated code has to be fixed in every copy 455:1 [warning] duplication.repeated_block - lines 455 to 468 repeat lines 432 to 445 (59 tokens); repeated code has to be fixed in every copy 484:1 [warning] duplication.repeated_block - lines 484 to 504 repeat lines 462 to 483 (69 tokens); repeated code has to be fixed in every copy NamingConvention: 98 (A), based on 43 names 390:10 [warning] naming.generic - variable `val` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Integrations/SeoPress/Provider/SeoPressTagValueAdapter.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 15 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Integrations/SlimSeo/ACPT_SlimSeo.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 20 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Integrations/SlimSeo/Provider/AbstractSlimSeoProvider.php (other) CodeLength: not graded 124:22 [warning] length.function - AbstractSlimSeoProvider::addFields has 72 lines in its body, above 50 388:22 [error] length.function - AbstractSlimSeoProvider::aggregateGroupsData has 102 lines in its body, above 100 CyclomaticComplexity: 68 (D), based on 11 functions 124:22 [warning] complexity.function - AbstractSlimSeoProvider::addFields has a cyclomatic complexity of 18, moderate risk (above 10): each of its 18 paths needs its own test, which makes it hard to follow and to change safely 211:21 [warning] complexity.function - AbstractSlimSeoProvider::addData has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely 388:22 [error] complexity.function - AbstractSlimSeoProvider::aggregateGroupsData has a cyclomatic complexity of 47, high risk (above 10): each of its 47 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 328 code lines 33:1 [warning] duplication.repeated_block - lines 33 to 45 repeat lines 20 to 32 (52 tokens); repeated code has to be fixed in every copy 46:1 [warning] duplication.repeated_block - lines 46 to 63 repeat lines 20 to 37 (72 tokens); repeated code has to be fixed in every copy 298:1 [warning] duplication.repeated_block - lines 298 to 314 repeat lines 282 to 298 (50 tokens); repeated code has to be fixed in every copy 459:1 [warning] duplication.repeated_block - lines 459 to 466 repeat lines 443 to 450 (71 tokens); repeated code has to be fixed in every copy NamingConvention: 98 (A), based on 63 names 211:36 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Integrations/SlimSeo/Provider/FieldRenderer.php (other) CodeLength: not graded 48:21 [error] length.function - FieldRenderer::render has 166 lines in its body, above 100 CyclomaticComplexity: 31 (F), based on 2 functions 48:21 [error] complexity.function - FieldRenderer::render has a cyclomatic complexity of 37, high risk (above 10): each of its 37 paths needs its own test, which makes it hard to follow and to change safely Duplication: 0 (F), based on 111 code lines 99:1 [warning] duplication.repeated_block - lines 99 to 111 repeat lines 84 to 96 (57 tokens); repeated code has to be fixed in every copy 121:1 [warning] duplication.repeated_block - lines 121 to 140 repeat lines 84 to 99 (62 tokens); repeated code has to be fixed in every copy 142:1 [warning] duplication.repeated_block - lines 142 to 155 repeat lines 119 to 132 (59 tokens); repeated code has to be fixed in every copy 171:1 [warning] duplication.repeated_block - lines 171 to 191 repeat lines 149 to 170 (69 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 10 names Security: not graded advanced-custom-post-type/src/Integrations/SlimSeo/Provider/Fields/Address.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 11 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Integrations/SlimSeo/Provider/Fields/AddressMulti.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 17 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Integrations/SlimSeo/Provider/Fields/ArrayValues.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 14 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Integrations/SlimSeo/Provider/Fields/Attachment.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 20 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Integrations/SlimSeo/Provider/Fields/Base.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 20 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Integrations/SlimSeo/Provider/Fields/Currency.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 12 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Integrations/SlimSeo/Provider/Fields/Date.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 15 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Integrations/SlimSeo/Provider/Fields/DateRange.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 16 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Integrations/SlimSeo/Provider/Fields/DateTime.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 15 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Integrations/SlimSeo/Provider/Fields/File.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 16 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Integrations/SlimSeo/Provider/Fields/Length.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 12 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Integrations/SlimSeo/Provider/Fields/Phone.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 13 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Integrations/SlimSeo/Provider/Fields/Post.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 11 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Integrations/SlimSeo/Provider/Fields/PostMulti.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 17 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Integrations/SlimSeo/Provider/Fields/Relationship.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 21 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Integrations/SlimSeo/Provider/Fields/Term.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 11 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Integrations/SlimSeo/Provider/Fields/TermMulti.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 17 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Integrations/SlimSeo/Provider/Fields/Time.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 15 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Integrations/SlimSeo/Provider/Fields/Url.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 12 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Integrations/SlimSeo/Provider/Fields/User.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 11 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Integrations/SlimSeo/Provider/Fields/UserMulti.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 17 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Integrations/SlimSeo/Provider/Fields/Weight.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 12 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Integrations/SlimSeo/Provider/SlimSeoProvider.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 9 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Integrations/SlimSeo/Provider/SlimSeoSchemaProvider.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 9 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Integrations/WPAllExport/ACPT_WPAllExport.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 25 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Integrations/WPAllExport/Helper/WPAETableRecordXmlFormatter.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 50 code lines NamingConvention: 100 (A), based on 17 names Security: not graded advanced-custom-post-type/src/Integrations/WPAllExport/Helper/WPAEXmlFormatter.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 36 code lines NamingConvention: 100 (A), based on 14 names Security: not graded advanced-custom-post-type/src/Integrations/WPAllImport/ACPT_WPAllImport.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 20 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Integrations/WPAllImport/Addon/WPAIAddon.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 6 functions Duplication: 100 (A), based on 62 code lines NamingConvention: 80 (B), based on 15 names 64:30 [warning] naming.too_short - parameter `m` is 1 character (at least 2); a one letter name hides its meaning 76:21 [warning] naming.inconsistent_style - method `admin_init` is snake_case, while most methods in this file are camelCase (2 of 5 names); mixed styles make code harder to scan 101:51 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded 65:13 [warning] security.unescaped_output - print of `date("H:i:s")` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) advanced-custom-post-type/src/Integrations/WPAllImport/Helper/RapidAddon.php (other) CodeLength: not graded 102:21 [warning] length.function - RapidAddon::is_active_addon has 53 lines in its body, above 50 413:21 [warning] length.function - RapidAddon::import has 92 lines in its body, above 50 512:21 [warning] length.function - RapidAddon::wpai_api_metabox has 54 lines in its body, above 50 574:21 [error] length.function - RapidAddon::render_field has 119 lines in its body, above 100 732:21 [error] length.function - RapidAddon::convert_field has 120 lines in its body, above 100 915:21 [warning] length.function - RapidAddon::helper_metabox_top has 96 lines in its body, above 50 15:7 [error] length.class - RapidAddon has 1507 lines, above 1000 for a other 1:1 [error] length.file - the file has 1521 lines, above 1200 for a other CyclomaticComplexity: 79 (C), based on 49 functions 102:21 [error] complexity.function - RapidAddon::is_active_addon has a cyclomatic complexity of 22, high risk (above 10): each of its 22 paths needs its own test, which makes it hard to follow and to change safely 413:21 [warning] complexity.function - RapidAddon::import has a cyclomatic complexity of 15, moderate risk (above 10): each of its 15 paths needs its own test, which makes it hard to follow and to change safely 512:21 [warning] complexity.function - RapidAddon::wpai_api_metabox has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely 574:21 [error] complexity.function - RapidAddon::render_field has a cyclomatic complexity of 28, high risk (above 10): each of its 28 paths needs its own test, which makes it hard to follow and to change safely 732:21 [warning] complexity.function - RapidAddon::convert_field has a cyclomatic complexity of 20, moderate risk (above 10): each of its 20 paths needs its own test, which makes it hard to follow and to change safely 1205:21 [warning] complexity.function - RapidAddon::can_update_meta has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely 1239:21 [warning] complexity.function - RapidAddon::can_update_taxonomy has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely 1329:21 [warning] complexity.function - RapidAddon::admin_notice has a cyclomatic complexity of 16, moderate risk (above 10): each of its 16 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 944 code lines 460:1 [warning] duplication.repeated_block - lines 460 to 470 repeat lines 438 to 450 (63 tokens); repeated code has to be fixed in every copy 596:1 [warning] duplication.repeated_block - lines 596 to 604 repeat lines 586 to 594 (93 tokens); repeated code has to be fixed in every copy 606:1 [warning] duplication.repeated_block - lines 606 to 614 repeat lines 586 to 594 (93 tokens); repeated code has to be fixed in every copy 641:1 [warning] duplication.repeated_block - lines 641 to 647 repeat lines 620 to 626 (54 tokens); repeated code has to be fixed in every copy 753:1 [warning] duplication.repeated_block - lines 753 to 763 repeat lines 741 to 751 (140 tokens); repeated code has to be fixed in every copy 765:1 [warning] duplication.repeated_block - lines 765 to 775 repeat lines 741 to 751 (140 tokens); repeated code has to be fixed in every copy 777:1 [warning] duplication.repeated_block - lines 777 to 782 repeat lines 741 to 746 (77 tokens); repeated code has to be fixed in every copy 796:1 [warning] duplication.repeated_block - lines 796 to 801 repeat lines 741 to 746 (77 tokens); repeated code has to be fixed in every copy 801:1 [warning] duplication.repeated_block - lines 801 to 814 repeat lines 782 to 794 (107 tokens); repeated code has to be fixed in every copy 816:1 [warning] duplication.repeated_block - lines 816 to 821 repeat lines 741 to 746 (77 tokens); repeated code has to be fixed in every copy 835:1 [warning] duplication.repeated_block - lines 835 to 840 repeat lines 741 to 746 (74 tokens); repeated code has to be fixed in every copy NamingConvention: 92 (A), based on 159 names 69:21 [warning] naming.inconsistent_style - property `isWizard` is camelCase, while most properties in this file are snake_case (6 of 14 names); mixed styles make code harder to scan 72:14 [warning] naming.inconsistent_style - property `acfGroups` is camelCase, while most properties in this file are snake_case (6 of 14 names); mixed styles make code harder to scan 203:28 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds 209:10 [warning] naming.inconsistent_style - variable `parsedData` is camelCase, while most variables and parameters in this file are snake_case (58 of 96 names); mixed styles make code harder to scan 402:39 [warning] naming.inconsistent_style - parameter `importData` is camelCase, while most variables and parameters in this file are snake_case (58 of 96 names); mixed styles make code harder to scan 670:14 [warning] naming.inconsistent_style - variable `fieldData` is camelCase, while most variables and parameters in this file are snake_case (58 of 96 names); mixed styles make code harder to scan 1139:21 [warning] naming.too_long - method `is_enable_default_images_section` is 32 characters (limit 30); very long names make code hard to read 1149:35 [warning] naming.inconsistent_style - parameter `parsingData` is camelCase, while most variables and parameters in this file are snake_case (58 of 96 names); mixed styles make code harder to scan 1341:14 [warning] naming.inconsistent_style - variable `themeInfo` is camelCase, while most variables and parameters in this file are snake_case (58 of 96 names); mixed styles make code harder to scan 1342:14 [warning] naming.inconsistent_style - variable `parentInfo` is camelCase, while most variables and parameters in this file are snake_case (58 of 96 names); mixed styles make code harder to scan 1343:14 [warning] naming.inconsistent_style - variable `currentTheme` is camelCase, while most variables and parameters in this file are snake_case (58 of 96 names); mixed styles make code harder to scan 1379:26 [warning] naming.too_short - parameter `m` is 1 character (at least 2); a one letter name hides its meaning Security: not graded 518:9 [warning] security.unescaped_output - echo of `$this->helper_metabox_top($this->name)` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 545:9 [warning] security.unescaped_output - echo of `$this->helper_metabox_bottom()` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 679:17 [warning] security.unescaped_output - echo of `pmai_render_field($fieldData, $current_values)` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 683:210 [warning] security.unescaped_output - echo of `$field_params['tooltip']` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 687:17 [warning] security.unescaped_output - echo of `$field_params['name']` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 689:42 [warning] security.unescaped_output - echo of `$field_params['name']` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 1306:106 [warning] security.unescaped_output - echo of `sanitize_key($this->slug)` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) advanced-custom-post-type/src/Integrations/WPGraphQL/ACPT_WPGraphQL.php (other) CodeLength: not graded 99:22 [error] length.function - ACPT_WPGraphQL::registerAcptTypes has 626 lines in its body, above 100 808:22 [warning] length.function - ACPT_WPGraphQL::acptMetaFieldSettings has 62 lines in its body, above 50 877:22 [warning] length.function - ACPT_WPGraphQL::registerAcptOptionPages has 87 lines in its body, above 50 972:22 [warning] length.function - ACPT_WPGraphQL::applyArgsFilterToOptionPages has 58 lines in its body, above 50 1039:22 [warning] length.function - ACPT_WPGraphQL::fetchMetaGroups has 96 lines in its body, above 50 1142:22 [error] length.function - ACPT_WPGraphQL::registerAcptForms has 104 lines in its body, above 100 1253:22 [warning] length.function - ACPT_WPGraphQL::registerAcptBlocks has 69 lines in its body, above 50 1351:22 [warning] length.function - ACPT_WPGraphQL::registerAcptCct has 58 lines in its body, above 50 29:7 [error] length.class - ACPT_WPGraphQL has 1491 lines, above 1000 for a other 1:1 [error] length.file - the file has 1519 lines, above 1200 for a other CyclomaticComplexity: 93 (A), based on 17 functions 972:22 [error] complexity.function - ACPT_WPGraphQL::applyArgsFilterToOptionPages has a cyclomatic complexity of 29, high risk (above 10): each of its 29 paths needs its own test, which makes it hard to follow and to change safely 1039:22 [warning] complexity.function - ACPT_WPGraphQL::fetchMetaGroups has a cyclomatic complexity of 14, moderate risk (above 10): each of its 14 paths needs its own test, which makes it hard to follow and to change safely 1142:22 [warning] complexity.function - ACPT_WPGraphQL::registerAcptForms has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 1175 code lines 543:1 [warning] duplication.repeated_block - lines 543 to 556 repeat lines 510 to 523 (95 tokens); repeated code has to be fixed in every copy 931:1 [warning] duplication.repeated_block - lines 931 to 946 repeat lines 912 to 927 (124 tokens); repeated code has to be fixed in every copy 1101:1 [warning] duplication.repeated_block - lines 1101 to 1117 repeat lines 842 to 853 (53 tokens); repeated code has to be fixed in every copy 1120:1 [warning] duplication.repeated_block - lines 1120 to 1128 repeat lines 855 to 863 (59 tokens); repeated code has to be fixed in every copy 1262:1 [warning] duplication.repeated_block - lines 1262 to 1272 repeat lines 1151 to 1161 (64 tokens); repeated code has to be fixed in every copy 1299:1 [warning] duplication.repeated_block - lines 1299 to 1315 repeat lines 1223 to 1239 (74 tokens); repeated code has to be fixed in every copy 1360:1 [warning] duplication.repeated_block - lines 1360 to 1369 repeat lines 1151 to 1160 (59 tokens); repeated code has to be fixed in every copy 1386:1 [warning] duplication.repeated_block - lines 1386 to 1402 repeat lines 1223 to 1239 (71 tokens); repeated code has to be fixed in every copy NamingConvention: 91 (A), based on 96 names 764:84 [warning] naming.inconsistent_style - parameter `query_args` is snake_case, while most variables and parameters in this file are camelCase (32 of 78 names); mixed styles make code harder to scan 1011:34 [warning] naming.inconsistent_style - variable `value_num` is snake_case, while most variables and parameters in this file are camelCase (32 of 78 names); mixed styles make code harder to scan 1014:58 [warning] naming.too_short - variable `v` is 1 character (at least 2); a one letter name hides its meaning 1165:64 [warning] naming.too_short - variable `m` is 1 character (at least 2); a one letter name hides its meaning 1172:66 [warning] naming.too_short - variable `f` is 1 character (at least 2); a one letter name hides its meaning 1195:71 [warning] naming.too_short - variable `s` is 1 character (at least 2); a one letter name hides its meaning 1196:34 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds 1198:60 [warning] naming.too_short - variable `d` is 1 character (at least 2); a one letter name hides its meaning 1274:69 [warning] naming.too_short - variable `c` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Integrations/WPGraphQL/Utils/GraphQLValidator.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 31 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Integrations/WPGridBuilder/ACPT_WPGridBuilder.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 20 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Integrations/WPGridBuilder/Provider/WPGridBuilderDataProvider.php (other) CodeLength: not graded 41:22 [warning] length.function - WPGridBuilderDataProvider::setFields has 65 lines in its body, above 50 209:22 [warning] length.function - WPGridBuilderDataProvider::indexACPT has 68 lines in its body, above 50 285:22 [error] length.function - WPGridBuilderDataProvider::indexField has 400 lines in its body, above 100 694:21 [warning] length.function - WPGridBuilderDataProvider::customFieldBlock has 59 lines in its body, above 50 761:22 [error] length.function - WPGridBuilderDataProvider::returnValue has 411 lines in its body, above 100 18:7 [error] length.class - WPGridBuilderDataProvider has 1202 lines, above 1000 for a other 1:1 [error] length.file - the file has 1219 lines, above 1200 for a other CyclomaticComplexity: 22 (F), based on 13 functions 209:22 [warning] complexity.function - WPGridBuilderDataProvider::indexACPT has a cyclomatic complexity of 19, moderate risk (above 10): each of its 19 paths needs its own test, which makes it hard to follow and to change safely 285:22 [error] complexity.function - WPGridBuilderDataProvider::indexField has a cyclomatic complexity of 88, untestable risk (above 10): each of its 88 paths needs its own test, which makes it hard to follow and to change safely 694:21 [warning] complexity.function - WPGridBuilderDataProvider::customFieldBlock has a cyclomatic complexity of 14, moderate risk (above 10): each of its 14 paths needs its own test, which makes it hard to follow and to change safely 761:22 [error] complexity.function - WPGridBuilderDataProvider::returnValue has a cyclomatic complexity of 120, untestable risk (above 10): each of its 120 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 793 code lines 82:1 [warning] duplication.repeated_block - lines 82 to 91 repeat lines 64 to 76 (84 tokens); repeated code has to be fixed in every copy 415:1 [warning] duplication.repeated_block - lines 415 to 428 repeat lines 390 to 403 (63 tokens); repeated code has to be fixed in every copy 502:1 [warning] duplication.repeated_block - lines 502 to 522 repeat lines 457 to 477 (81 tokens); repeated code has to be fixed in every copy 523:1 [warning] duplication.repeated_block - lines 523 to 555 repeat lines 490 to 522 (117 tokens); repeated code has to be fixed in every copy 628:1 [warning] duplication.repeated_block - lines 628 to 645 repeat lines 457 to 474 (69 tokens); repeated code has to be fixed in every copy 711:1 [warning] duplication.repeated_block - lines 711 to 718 repeat lines 224 to 231 (67 tokens); repeated code has to be fixed in every copy 790:1 [warning] duplication.repeated_block - lines 790 to 802 repeat lines 292 to 303 (50 tokens); repeated code has to be fixed in every copy 1064:1 [warning] duplication.repeated_block - lines 1064 to 1094 repeat lines 1020 to 1050 (99 tokens); repeated code has to be fixed in every copy 1120:1 [warning] duplication.repeated_block - lines 1120 to 1133 repeat lines 1029 to 1042 (51 tokens); repeated code has to be fixed in every copy NamingConvention: 92 (A), based on 75 names 129:60 [warning] naming.too_short - parameter `f` is 1 character (at least 2); a one letter name hides its meaning 401:18 [warning] naming.generic - variable `val` is a generic name; it says nothing about what it holds 778:14 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds 1207:59 [warning] naming.inconsistent_style - parameter `meta_type` is snake_case, while most variables and parameters in this file are camelCase (13 of 61 names); mixed styles make code harder to scan 1207:75 [warning] naming.inconsistent_style - parameter `object_id` is snake_case, while most variables and parameters in this file are camelCase (13 of 61 names); mixed styles make code harder to scan 1207:94 [warning] naming.inconsistent_style - parameter `meta_key` is snake_case, while most variables and parameters in this file are camelCase (13 of 61 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Integrations/WPML/ACPT_WPML.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 28 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Integrations/WPML/Constants/WPMLConstants.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 12 code lines NamingConvention: 100 (A), based on 9 names Security: not graded advanced-custom-post-type/src/Integrations/WPML/Handlers/ACPT_Table_Field_WPML_Handler.php (other) CodeLength: not graded CyclomaticComplexity: 86 (B), based on 3 functions 76:28 [warning] complexity.function - ACPT_Table_Field_WPML_Handler::translate_table_value has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 69 code lines NamingConvention: 94 (A), based on 18 names 92:22 [warning] naming.inconsistent_style - variable `cellIndex` is camelCase, while most variables and parameters in this file are snake_case (6 of 15 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Integrations/WPML/Helper/WPMLChecker.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 11 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Integrations/WPML/Helper/WPMLConfig.php (other) CodeLength: not graded 123:28 [error] length.function - WPMLConfig::xml has 116 lines in its body, above 100 CyclomaticComplexity: 56 (F), based on 8 functions 123:28 [error] complexity.function - WPMLConfig::xml has a cyclomatic complexity of 31, high risk (above 10): each of its 31 paths needs its own test, which makes it hard to follow and to change safely Duplication: 85 (B), based on 146 code lines 157:1 [warning] duplication.repeated_block - lines 157 to 160 repeat lines 137 to 140 (71 tokens); repeated code has to be fixed in every copy 193:1 [warning] duplication.repeated_block - lines 193 to 197 repeat lines 175 to 179 (50 tokens); repeated code has to be fixed in every copy 211:1 [warning] duplication.repeated_block - lines 211 to 215 repeat lines 175 to 179 (50 tokens); repeated code has to be fixed in every copy NamingConvention: 97 (A), based on 31 names 94:44 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Integrations/WPML/Helper/WPMLStrings.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 11 functions Duplication: 100 (A), based on 80 code lines NamingConvention: 91 (A), based on 23 names 163:58 [warning] naming.inconsistent_style - parameter `original_value` is snake_case, while most variables and parameters in this file are camelCase (5 of 11 names); mixed styles make code harder to scan 163:97 [warning] naming.inconsistent_style - parameter `language_code` is snake_case, while most variables and parameters in this file are camelCase (5 of 11 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Integrations/WPML/Provider/MetaFieldsProvider.php (other) CodeLength: not graded 257:22 [warning] length.function - MetaFieldsProvider::formatField has 54 lines in its body, above 50 CyclomaticComplexity: 88 (B), based on 11 functions 87:22 [warning] complexity.function - MetaFieldsProvider::postTypes has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely 257:22 [warning] complexity.function - MetaFieldsProvider::formatField has a cyclomatic complexity of 15, moderate risk (above 10): each of its 15 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 198 code lines 120:1 [warning] duplication.repeated_block - lines 120 to 141 repeat lines 81 to 102 (137 tokens); repeated code has to be fixed in every copy 167:1 [warning] duplication.repeated_block - lines 167 to 181 repeat lines 153 to 167 (50 tokens); repeated code has to be fixed in every copy 291:1 [warning] duplication.repeated_block - lines 291 to 294 repeat lines 93 to 96 (55 tokens); repeated code has to be fixed in every copy NamingConvention: 97 (A), based on 36 names 101:26 [warning] naming.inconsistent_style - variable `display_as_translated` is snake_case, while most variables and parameters in this file are camelCase (8 of 22 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Integrations/WooCommerce/ACPT_WooCommerce.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 7 functions Duplication: 100 (A), based on 91 code lines NamingConvention: 88 (B), based on 16 names 117:28 [warning] naming.too_long - method `isWooCommerceProductAttributePage` is 33 characters (limit 30); very long names make code hard to read 157:28 [warning] naming.too_long - method `getWooCommerceProductAttributeName` is 34 characters (limit 30); very long names make code hard to read Security: not graded 164:33 [warning] security.sql_interpolated - query `$wpdb->get_var` builds its SQL from `$id`; pass values through prepare with placeholders to prevent SQL injection advanced-custom-post-type/src/Integrations/WooCommerce/Ajax/WooCommerceAjax.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 18 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Integrations/WooCommerce/Ajax/WooCommerceController.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 7 functions Duplication: 0 (F), based on 152 code lines 60:1 [warning] duplication.repeated_block - lines 60 to 74 repeat lines 16 to 31 (90 tokens); repeated code has to be fixed in every copy 74:1 [warning] duplication.repeated_block - lines 74 to 106 repeat lines 32 to 65 (123 tokens); repeated code has to be fixed in every copy 116:1 [warning] duplication.repeated_block - lines 116 to 130 repeat lines 52 to 68 (76 tokens); repeated code has to be fixed in every copy 184:1 [warning] duplication.repeated_block - lines 184 to 196 repeat lines 138 to 150 (51 tokens); repeated code has to be fixed in every copy 212:1 [warning] duplication.repeated_block - lines 212 to 225 repeat lines 183 to 196 (57 tokens); repeated code has to be fixed in every copy NamingConvention: 43 (F), based on 14 names 16:21 [warning] naming.too_long - method `deleteWooCommerceProductDataAction` is 34 characters (limit 30); very long names make code hard to read 19:14 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds 60:21 [warning] naming.too_long - method `deleteWooCommerceProductDataFieldsAction` is 40 characters (limit 30); very long names make code hard to read 101:21 [warning] naming.too_long - method `fetchWooCommerceProductDataAction` is 33 characters (limit 30); very long names make code hard to read 122:21 [warning] naming.too_long - method `fetchWooCommerceProductDataFieldsAction` is 39 characters (limit 30); very long names make code hard to read 163:21 [warning] naming.too_long - method `resetWooCommerceProductDataAction` is 33 characters (limit 30); very long names make code hard to read 173:21 [warning] naming.too_long - method `saveWooCommerceProductDataAction` is 32 characters (limit 30); very long names make code hard to read 203:21 [warning] naming.too_long - method `saveWooCommerceProductDataFieldsAction` is 38 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Integrations/WooCommerce/Filters/WooCommerceFilters.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 48 code lines NamingConvention: 80 (B), based on 10 names 43:22 [warning] naming.too_long - method `addWooCommerceProductDataToACPTList` is 35 characters (limit 30); very long names make code hard to read 45:68 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Integrations/WooCommerce/Generators/WooCommerceProductAttributeMetaField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 39 code lines NamingConvention: 92 (A), based on 13 names 12:7 [warning] naming.too_long - class `WooCommerceProductAttributeMetaField` is 36 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Integrations/WooCommerce/Generators/WooCommerceProductAttributeMetaGroup.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 31 code lines NamingConvention: 92 (A), based on 13 names 7:7 [warning] naming.too_long - class `WooCommerceProductAttributeMetaGroup` is 36 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Integrations/WooCommerce/Generators/WooCommerceProductAttributeMetaGroups.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 35 code lines NamingConvention: 83 (B), based on 12 names 11:7 [warning] naming.too_long - class `WooCommerceProductAttributeMetaGroups` is 37 characters (limit 30); very long names make code hard to read 27:78 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded 54:17 [warning] security.unescaped_output - echo of `$generator->render()` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) advanced-custom-post-type/src/Integrations/WooCommerce/Generators/WooCommerceProductData.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 16 code lines NamingConvention: 75 (C), based on 4 names 20:18 [warning] naming.too_long - variable `wooCommerceProductDataGenerator` is 31 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Integrations/WooCommerce/Generators/WooCommerceProductVariationMetaBox.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 60 code lines NamingConvention: 92 (A), based on 24 names 10:7 [warning] naming.too_long - class `WooCommerceProductVariationMetaBox` is 34 characters (limit 30); very long names make code hard to read 95:18 [warning] naming.too_short - variable `f` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Integrations/WooCommerce/Generators/WooCommerceProductVariationMetaField.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 32 code lines NamingConvention: 92 (A), based on 13 names 10:7 [warning] naming.too_long - class `WooCommerceProductVariationMetaField` is 36 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Integrations/WooCommerce/Generators/WooCommerceProductVariationMetaGroup.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 32 code lines NamingConvention: 93 (A), based on 14 names 8:7 [warning] naming.too_long - class `WooCommerceProductVariationMetaGroup` is 36 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Integrations/WooCommerce/Generators/WooCommerceProductVariationMetaGroups.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 48 code lines NamingConvention: 92 (A), based on 12 names 10:7 [warning] naming.too_long - class `WooCommerceProductVariationMetaGroups` is 37 characters (limit 30); very long names make code hard to read Security: not graded 44:17 [warning] security.unescaped_output - echo of `$generator->render()` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) advanced-custom-post-type/src/Integrations/Yoast/ACPT_Yoast.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 5 functions Duplication: 100 (A), based on 52 code lines NamingConvention: 100 (A), based on 12 names Security: not graded advanced-custom-post-type/src/Integrations/Yoast/Provider/FieldProvider.php (other) CodeLength: not graded 57:28 [warning] length.function - FieldProvider::getFieldRefs has 54 lines in its body, above 50 214:29 [error] length.function - FieldProvider::getReplace has 270 lines in its body, above 100 533:29 [error] length.function - FieldProvider::doResolveContext has 103 lines in its body, above 100 18:7 [warning] length.class - FieldProvider has 620 lines, above 500 for a other 1:1 [warning] length.file - the file has 637 lines, above 600 for a other CyclomaticComplexity: 27 (F), based on 10 functions 57:28 [warning] complexity.function - FieldProvider::getFieldRefs has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely 214:29 [error] complexity.function - FieldProvider::getReplace has a cyclomatic complexity of 64, untestable risk (above 10): each of its 64 paths needs its own test, which makes it hard to follow and to change safely 533:29 [error] complexity.function - FieldProvider::doResolveContext has a cyclomatic complexity of 21, high risk (above 10): each of its 21 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 396 code lines 182:1 [warning] duplication.repeated_block - lines 182 to 194 repeat lines 169 to 181 (52 tokens); repeated code has to be fixed in every copy 347:1 [warning] duplication.repeated_block - lines 347 to 360 repeat lines 329 to 343 (51 tokens); repeated code has to be fixed in every copy 382:1 [warning] duplication.repeated_block - lines 382 to 398 repeat lines 329 to 345 (71 tokens); repeated code has to be fixed in every copy 406:1 [warning] duplication.repeated_block - lines 406 to 420 repeat lines 347 to 360 (55 tokens); repeated code has to be fixed in every copy NamingConvention: 96 (A), based on 46 names 153:10 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds 246:10 [warning] naming.generic - variable `val` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Integrations/Zion/ACPT_Zion.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 21 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Integrations/Zion/Provider/Constants/ZionConstants.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 6 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Integrations/Zion/Provider/Fields/AcptFieldBase.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 10 functions Duplication: 100 (A), based on 113 code lines NamingConvention: 87 (B), based on 31 names 52:28 [warning] naming.inconsistent_style - method `getSupportedFieldTypes` is camelCase, while most methods in this file are snake_case (6 of 10 names); mixed styles make code harder to scan 80:21 [warning] naming.inconsistent_style - method `getAcptFieldsOptionByType` is camelCase, while most methods in this file are snake_case (6 of 10 names); mixed styles make code harder to scan 136:22 [warning] naming.inconsistent_style - method `getAcptMetaGroup` is camelCase, while most methods in this file are snake_case (6 of 10 names); mixed styles make code harder to scan 182:24 [warning] naming.inconsistent_style - method `isSupportedFieldType` is camelCase, while most methods in this file are snake_case (6 of 10 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Integrations/Zion/Provider/Fields/AcptFieldTypeCountry.php (other) CodeLength: not graded 78:21 [warning] length.function - AcptFieldTypeCountry::render has 52 lines in its body, above 50 CyclomaticComplexity: 82 (B), based on 6 functions 78:21 [warning] complexity.function - AcptFieldTypeCountry::render has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 81 code lines NamingConvention: 94 (A), based on 16 names 17:28 [warning] naming.inconsistent_style - method `getSupportedFieldTypes` is camelCase, while most methods in this file are snake_case (4 of 6 names); mixed styles make code harder to scan Security: not graded 117:21 [warning] security.unescaped_output - echo of `Country::getFlag($countryCode)` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 121:21 [warning] security.unescaped_output - echo of `Country::fullFormat($countryCode, $countryName)` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 126:21 [warning] security.unescaped_output - echo of `$countryName` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) advanced-custom-post-type/src/Integrations/Zion/Provider/Fields/AcptFieldTypeDate.php (other) CodeLength: not graded 100:21 [warning] length.function - AcptFieldTypeDate::render has 86 lines in its body, above 50 CyclomaticComplexity: 57 (F), based on 6 functions 100:21 [error] complexity.function - AcptFieldTypeDate::render has a cyclomatic complexity of 21, high risk (above 10): each of its 21 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 123 code lines NamingConvention: 95 (A), based on 22 names 18:28 [warning] naming.inconsistent_style - method `getSupportedFieldTypes` is camelCase, while most methods in this file are snake_case (4 of 6 names); mixed styles make code harder to scan Security: not graded 149:17 [warning] security.unescaped_output - echo of `Date::format($format, $dataTimeObject)` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 156:17 [warning] security.unescaped_output - echo of `Date::format($format, $dataTimeObject)` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 180:17 [warning] security.unescaped_output - echo of `$startDate` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 184:17 [warning] security.unescaped_output - echo of `$rawValue` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) advanced-custom-post-type/src/Integrations/Zion/Provider/Fields/AcptFieldTypeIcon.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 7 functions Duplication: 100 (A), based on 79 code lines NamingConvention: 88 (B), based on 17 names 16:28 [warning] naming.inconsistent_style - method `getSupportedFieldTypes` is camelCase, while most methods in this file are snake_case (4 of 7 names); mixed styles make code harder to scan 120:22 [warning] naming.inconsistent_style - method `styleAttributes` is camelCase, while most methods in this file are snake_case (4 of 7 names); mixed styles make code harder to scan Security: not graded 110:9 [warning] security.unescaped_output - echo of `$this->styleAttributes($size, $spacing, $color)` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) advanced-custom-post-type/src/Integrations/Zion/Provider/Fields/AcptFieldTypeImage.php (other) CodeLength: not graded 54:21 [warning] length.function - AcptFieldTypeImage::render has 55 lines in its body, above 50 CyclomaticComplexity: 76 (C), based on 5 functions 54:21 [warning] complexity.function - AcptFieldTypeImage::render has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 63 code lines NamingConvention: 91 (A), based on 11 names 17:28 [warning] naming.inconsistent_style - method `getSupportedFieldTypes` is camelCase, while most methods in this file are snake_case (3 of 5 names); mixed styles make code harder to scan Security: not graded 88:17 [warning] security.unescaped_output - echo of `$rawValue->getSrc()` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 104:17 [warning] security.unescaped_output - echo of `$rawValue['value']['img']` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) advanced-custom-post-type/src/Integrations/Zion/Provider/Fields/AcptFieldTypeLabelValue.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 7 functions Duplication: 100 (A), based on 77 code lines NamingConvention: 88 (B), based on 17 names 16:28 [warning] naming.inconsistent_style - method `getSupportedFieldTypes` is camelCase, while most methods in this file are snake_case (4 of 7 names); mixed styles make code harder to scan 123:22 [warning] naming.inconsistent_style - method `renderItem` is camelCase, while most methods in this file are snake_case (4 of 7 names); mixed styles make code harder to scan Security: not graded 113:9 [warning] security.unescaped_output - echo of `$this->renderItem($metaFieldModel, $rawValue, $format)` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) advanced-custom-post-type/src/Integrations/Zion/Provider/Fields/AcptFieldTypeLink.php (other) CodeLength: not graded 62:21 [error] length.function - AcptFieldTypeLink::render has 104 lines in its body, above 100 CyclomaticComplexity: 41 (F), based on 5 functions 62:21 [error] complexity.function - AcptFieldTypeLink::render has a cyclomatic complexity of 26, high risk (above 10): each of its 26 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 103 code lines NamingConvention: 86 (B), based on 14 names 20:28 [warning] naming.inconsistent_style - method `getSupportedFieldTypes` is camelCase, while most methods in this file are snake_case (3 of 5 names); mixed styles make code harder to scan 136:18 [warning] naming.generic - variable `val` is a generic name; it says nothing about what it holds Security: not graded 93:21 [warning] security.unescaped_output - echo of `Email::sanitize($rawValue)` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 104:17 [warning] security.unescaped_output - echo of `$rawValue->getSrc()` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 123:17 [warning] security.unescaped_output - echo of `$file->getSrc()` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 138:17 [warning] security.unescaped_output - echo of `Phone::format($val, $dial, Phone::FORMAT_RFC3966)` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 160:17 [warning] security.unescaped_output - echo of `Url::sanitize($rawValue['url'])` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 164:17 [warning] security.unescaped_output - echo of `$rawValue` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) advanced-custom-post-type/src/Integrations/Zion/Provider/Fields/AcptFieldTypeList.php (other) CodeLength: not graded CyclomaticComplexity: 88 (B), based on 8 functions 89:21 [warning] complexity.function - AcptFieldTypeList::render has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 96 code lines NamingConvention: 84 (B), based on 19 names 16:28 [warning] naming.inconsistent_style - method `getSupportedFieldTypes` is camelCase, while most methods in this file are snake_case (4 of 8 names); mixed styles make code harder to scan 138:22 [warning] naming.inconsistent_style - method `renderList` is camelCase, while most methods in this file are snake_case (4 of 8 names); mixed styles make code harder to scan 157:22 [warning] naming.inconsistent_style - method `renderString` is camelCase, while most methods in this file are snake_case (4 of 8 names); mixed styles make code harder to scan Security: not graded 128:9 [warning] security.unescaped_output - echo of `$this->renderList($rawValue, $format, $classes)` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) advanced-custom-post-type/src/Integrations/Zion/Provider/Fields/AcptFieldTypeListValues.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 7 functions Duplication: 100 (A), based on 106 code lines NamingConvention: 91 (A), based on 22 names 16:28 [warning] naming.inconsistent_style - method `getSupportedFieldTypes` is camelCase, while most methods in this file are snake_case (4 of 7 names); mixed styles make code harder to scan 145:22 [warning] naming.inconsistent_style - method `renderList` is camelCase, while most methods in this file are snake_case (4 of 7 names); mixed styles make code harder to scan Security: not graded 132:9 [warning] security.unescaped_output - echo of `$this->renderList($metaFieldModel, $rawValue, $separator, $format, $list, $cl...` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) advanced-custom-post-type/src/Integrations/Zion/Provider/Fields/AcptFieldTypeRating.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 7 functions Duplication: 100 (A), based on 69 code lines NamingConvention: 88 (B), based on 16 names 17:28 [warning] naming.inconsistent_style - method `getSupportedFieldTypes` is camelCase, while most methods in this file are snake_case (4 of 7 names); mixed styles make code harder to scan 113:22 [warning] naming.inconsistent_style - method `styleAttributes` is camelCase, while most methods in this file are snake_case (4 of 7 names); mixed styles make code harder to scan Security: not graded 104:9 [warning] security.unescaped_output - echo of `$this->styleAttributes($size, $color)` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) advanced-custom-post-type/src/Integrations/Zion/Provider/Fields/AcptFieldTypeText.php (other) CodeLength: not graded 71:21 [warning] length.function - AcptFieldTypeText::render has 74 lines in its body, above 50 CyclomaticComplexity: 78 (C), based on 5 functions 71:21 [warning] complexity.function - AcptFieldTypeText::render has a cyclomatic complexity of 17, moderate risk (above 10): each of its 17 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 86 code lines NamingConvention: 93 (A), based on 14 names 20:28 [warning] naming.inconsistent_style - method `getSupportedFieldTypes` is camelCase, while most methods in this file are snake_case (3 of 5 names); mixed styles make code harder to scan Security: not graded 102:17 [warning] security.unescaped_output - echo of `Barcode::render($rawValue)` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 113:17 [warning] security.unescaped_output - echo of `$rawValue` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 123:21 [warning] security.unescaped_output - echo of `$generator->generate()` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 131:21 [warning] security.unescaped_output - echo of `WPUtils::renderShortCode($rawValue, true)` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 143:17 [warning] security.unescaped_output - echo of `$rawValue` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) advanced-custom-post-type/src/Integrations/Zion/Provider/Fields/AcptFieldTypeTime.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 6 functions Duplication: 100 (A), based on 71 code lines NamingConvention: 93 (A), based on 15 names 17:28 [warning] naming.inconsistent_style - method `getSupportedFieldTypes` is camelCase, while most methods in this file are snake_case (4 of 6 names); mixed styles make code harder to scan Security: not graded 118:9 [warning] security.unescaped_output - echo of `Date::format($format, $dataTimeObject)` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) advanced-custom-post-type/src/Integrations/Zion/Provider/Fields/AcptFieldTypeUOM.php (other) CodeLength: not graded 108:21 [error] length.function - AcptFieldTypeUOM::render has 114 lines in its body, above 100 CyclomaticComplexity: 54 (F), based on 6 functions 108:21 [error] complexity.function - AcptFieldTypeUOM::render has a cyclomatic complexity of 30, high risk (above 10): each of its 30 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 152 code lines 181:1 [warning] duplication.repeated_block - lines 181 to 205 repeat lines 157 to 181 (129 tokens); repeated code has to be fixed in every copy 205:1 [warning] duplication.repeated_block - lines 205 to 217 repeat lines 157 to 169 (80 tokens); repeated code has to be fixed in every copy NamingConvention: 95 (A), based on 21 names 19:28 [warning] naming.inconsistent_style - method `getSupportedFieldTypes` is camelCase, while most methods in this file are snake_case (4 of 6 names); mixed styles make code harder to scan Security: not graded 164:21 [warning] security.unescaped_output - echo of `$unit` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 166:21 [warning] security.unescaped_output - echo of `$amount` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 188:21 [warning] security.unescaped_output - echo of `$unit` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 190:21 [warning] security.unescaped_output - echo of `$length` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 212:21 [warning] security.unescaped_output - echo of `$unit` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 214:21 [warning] security.unescaped_output - echo of `$weight` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) 220:17 [warning] security.unescaped_output - echo of `$rawValue` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) advanced-custom-post-type/src/Integrations/Zion/Provider/Fields/AcptFieldTypeVideo.php (other) CodeLength: not graded CyclomaticComplexity: 89 (B), based on 7 functions 90:21 [warning] complexity.function - AcptFieldTypeVideo::render has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 103 code lines NamingConvention: 89 (B), based on 19 names 17:28 [warning] naming.inconsistent_style - method `getSupportedFieldTypes` is camelCase, while most methods in this file are snake_case (4 of 7 names); mixed styles make code harder to scan 142:22 [warning] naming.inconsistent_style - method `renderVideoPlayer` is camelCase, while most methods in this file are snake_case (4 of 7 names); mixed styles make code harder to scan Security: not graded 130:9 [warning] security.unescaped_output - echo of `$this->renderVideoPlayer($rawValue, $controls, $autoplay, $width, $height)` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) advanced-custom-post-type/src/Integrations/Zion/Provider/Repeater/ACPTRepeaterProvider.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 10 functions Duplication: 100 (A), based on 138 code lines NamingConvention: 86 (B), based on 42 names 41:10 [warning] naming.inconsistent_style - variable `current_item` is snake_case, while most variables and parameters in this file are camelCase (18 of 31 names); mixed styles make code harder to scan 45:14 [warning] naming.inconsistent_style - variable `real_index` is snake_case, while most variables and parameters in this file are camelCase (18 of 31 names); mixed styles make code harder to scan 114:21 [warning] naming.inconsistent_style - method `getRepeaterOptionsForSelect` is camelCase, while most methods in this file are snake_case (6 of 10 names); mixed styles make code harder to scan 171:22 [warning] naming.inconsistent_style - method `getAcptRepeaterGroup` is camelCase, while most methods in this file are snake_case (6 of 10 names); mixed styles make code harder to scan 202:22 [warning] naming.inconsistent_style - method `getAcptRepeaterGroupFields` is camelCase, while most methods in this file are snake_case (6 of 10 names); mixed styles make code harder to scan 226:22 [warning] naming.inconsistent_style - method `getRepeaterChilds` is camelCase, while most methods in this file are snake_case (6 of 10 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Integrations/Zion/Provider/Utils/FieldSettings.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 31 code lines NamingConvention: 100 (A), based on 10 names Security: not graded advanced-custom-post-type/src/Integrations/Zion/Provider/Utils/FieldValue.php (other) CodeLength: not graded 17:28 [warning] length.function - FieldValue::raw has 60 lines in its body, above 50 CyclomaticComplexity: 91 (A), based on 2 functions 84:29 [warning] complexity.function - FieldValue::repeaterToTextualValues has a cyclomatic complexity of 14, moderate risk (above 10): each of its 14 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 77 code lines NamingConvention: 100 (A), based on 12 names Security: not graded advanced-custom-post-type/src/Integrations/Zion/Provider/ZionProvider.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 40 (F), based on 39 code lines 43:1 [warning] duplication.repeated_block - lines 43 to 47 repeat lines 38 to 42 (50 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Utils/Cache/FlexibleFieldCache.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 91 code lines NamingConvention: 100 (A), based on 22 names Security: not graded advanced-custom-post-type/src/Utils/Cache/RepeaterFieldCache.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 70 (C), based on 120 code lines 121:1 [warning] duplication.repeated_block - lines 121 to 147 repeat lines 61 to 84 (57 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 28 names Security: not graded advanced-custom-post-type/src/Utils/Checker/BoxVisibilityChecker.php (other) CodeLength: not graded 78:29 [error] length.function - BoxVisibilityChecker::returnTrueOrFalseForALogicBlock has 238 lines in its body, above 100 CyclomaticComplexity: 14 (F), based on 2 functions 78:29 [error] complexity.function - BoxVisibilityChecker::returnTrueOrFalseForALogicBlock has a cyclomatic complexity of 65, untestable risk (above 10): each of its 65 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 226 code lines 134:1 [warning] duplication.repeated_block - lines 134 to 167 repeat lines 95 to 128 (124 tokens); repeated code has to be fixed in every copy NamingConvention: 97 (A), based on 29 names 78:29 [warning] naming.too_long - method `returnTrueOrFalseForALogicBlock` is 31 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Utils/Checker/ConditionOperatorEvaluator.php (other) CodeLength: not graded 25:28 [warning] length.function - ConditionOperatorEvaluator::matches has 76 lines in its body, above 50 CyclomaticComplexity: 43 (F), based on 2 functions 25:28 [error] complexity.function - ConditionOperatorEvaluator::matches has a cyclomatic complexity of 29, high risk (above 10): each of its 29 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 74 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Utils/Checker/ConditionalVisibilityLiveChecker.php (other) CodeLength: not graded 19:28 [error] length.function - ConditionalVisibilityLiveChecker::check has 141 lines in its body, above 100 CyclomaticComplexity: 30 (F), based on 1 function 19:28 [error] complexity.function - ConditionalVisibilityLiveChecker::check has a cyclomatic complexity of 27, high risk (above 10): each of its 27 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 110 code lines NamingConvention: 95 (A), based on 19 names 9:7 [warning] naming.too_long - class `ConditionalVisibilityLiveChecker` is 32 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Utils/Checker/FieldVisibilityChecker.php (other) CodeLength: not graded 99:29 [error] length.function - FieldVisibilityChecker::returnTrueOrFalseForALogicBlock has 477 lines in its body, above 100 13:7 [warning] length.class - FieldVisibilityChecker has 601 lines, above 500 for a other 1:1 [warning] length.file - the file has 613 lines, above 600 for a other CyclomaticComplexity: 12 (F), based on 3 functions 99:29 [error] complexity.function - FieldVisibilityChecker::returnTrueOrFalseForALogicBlock has a cyclomatic complexity of 137, untestable risk (above 10): each of its 137 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 451 code lines 252:1 [warning] duplication.repeated_block - lines 252 to 264 repeat lines 240 to 252 (55 tokens); repeated code has to be fixed in every copy 318:1 [warning] duplication.repeated_block - lines 318 to 361 repeat lines 274 to 317 (151 tokens); repeated code has to be fixed in every copy 455:1 [warning] duplication.repeated_block - lines 455 to 471 repeat lines 439 to 455 (54 tokens); repeated code has to be fixed in every copy 556:1 [warning] duplication.repeated_block - lines 556 to 561 repeat lines 148 to 153 (89 tokens); repeated code has to be fixed in every copy NamingConvention: 97 (A), based on 39 names 99:29 [warning] naming.too_long - method `returnTrueOrFalseForALogicBlock` is 31 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Utils/Checker/TableColumnVisibilityChecker.php (other) CodeLength: not graded 222:29 [warning] length.function - TableColumnVisibilityChecker::compareScalar has 55 lines in its body, above 50 CyclomaticComplexity: 73 (C), based on 6 functions 108:29 [warning] complexity.function - TableColumnVisibilityChecker::evaluateBlock has a cyclomatic complexity of 17, moderate risk (above 10): each of its 17 paths needs its own test, which makes it hard to follow and to change safely 222:29 [error] complexity.function - TableColumnVisibilityChecker::compareScalar has a cyclomatic complexity of 28, high risk (above 10): each of its 28 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 159 code lines NamingConvention: 97 (A), based on 34 names 35:49 [warning] naming.too_short - parameter `c` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Utils/Checker/TableSchemaChecker.php (other) CodeLength: not graded 82:29 [warning] length.function - TableSchemaChecker::checkIndexes has 58 lines in its body, above 50 147:29 [warning] length.function - TableSchemaChecker::checkForeignKeys has 65 lines in its body, above 50 CyclomaticComplexity: 94 (A), based on 8 functions 251:29 [warning] complexity.function - TableSchemaChecker::resolveColumn has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 219 code lines NamingConvention: 100 (A), based on 36 names Security: not graded advanced-custom-post-type/src/Utils/Checker/ValidationRulesChecker.php (other) CodeLength: not graded 120:22 [warning] length.function - ValidationRulesChecker::validateAgainstSingleRule has 82 lines in its body, above 50 CyclomaticComplexity: 52 (F), based on 7 functions 120:22 [error] complexity.function - ValidationRulesChecker::validateAgainstSingleRule has a cyclomatic complexity of 22, high risk (above 10): each of its 22 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 95 code lines NamingConvention: 100 (A), based on 18 names Security: not graded advanced-custom-post-type/src/Utils/Data/DataAggregator.php (other) CodeLength: not graded CyclomaticComplexity: 70 (C), based on 1 function 20:28 [warning] complexity.function - DataAggregator::aggregateNestedFieldsData has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 41 code lines NamingConvention: 93 (A), based on 14 names 20:61 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Utils/Data/Formatter/Driver/ACPTFormatter.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 46 code lines NamingConvention: 90 (A), based on 10 names 14:42 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Utils/Data/Formatter/Driver/CSVFormatter.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 40 code lines NamingConvention: 82 (B), based on 17 names 13:42 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds 15:10 [warning] naming.too_short - variable `f` is 1 character (at least 2); a one letter name hides its meaning 25:35 [warning] naming.too_short - parameter `v` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Utils/Data/Formatter/Driver/JSONFormatter.php (other) CodeLength: not graded CyclomaticComplexity: 82 (B), based on 2 functions 14:28 [warning] complexity.function - JSONFormatter::format has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 46 code lines NamingConvention: 91 (A), based on 11 names 14:42 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Utils/Data/Formatter/Driver/XMLFormatter.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 5 functions Duplication: 100 (A), based on 91 code lines NamingConvention: 91 (A), based on 23 names 19:42 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds 55:34 [warning] naming.too_short - variable `v` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Utils/Data/Formatter/Driver/YAMLFormatter.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 12 code lines NamingConvention: 80 (B), based on 5 names 14:42 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Utils/Data/Formatter/Formatter.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 47 code lines NamingConvention: 89 (B), based on 9 names 15:58 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Utils/Data/Formatter/FormatterInterface.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 6 code lines NamingConvention: 80 (B), based on 5 names 11:42 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Utils/Data/JSONSchemaValidator.php (other) CodeLength: not graded 36:21 [warning] length.function - JSONSchemaValidator::validate has 70 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 59 code lines NamingConvention: 94 (A), based on 17 names 60:14 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Utils/Data/JsonSanitizer.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 57 code lines NamingConvention: 92 (A), based on 13 names 23:38 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Utils/Data/Meta.php (other) CodeLength: not graded 69:28 [error] length.function - Meta::deleteBy has 111 lines in its body, above 100 223:28 [warning] length.function - Meta::fetch has 55 lines in its body, above 50 286:28 [error] length.function - Meta::fetchBy has 123 lines in its body, above 100 421:28 [warning] length.function - Meta::save has 66 lines in its body, above 50 497:28 [warning] length.function - Meta::format has 57 lines in its body, above 50 16:7 [warning] length.class - Meta has 740 lines, above 500 for a other 1:1 [warning] length.file - the file has 755 lines, above 600 for a other CyclomaticComplexity: 59 (F), based on 14 functions 69:28 [error] complexity.function - Meta::deleteBy has a cyclomatic complexity of 30, high risk (above 10): each of its 30 paths needs its own test, which makes it hard to follow and to change safely 223:28 [warning] complexity.function - Meta::fetch has a cyclomatic complexity of 15, moderate risk (above 10): each of its 15 paths needs its own test, which makes it hard to follow and to change safely 286:28 [error] complexity.function - Meta::fetchBy has a cyclomatic complexity of 36, high risk (above 10): each of its 36 paths needs its own test, which makes it hard to follow and to change safely 421:28 [warning] complexity.function - Meta::save has a cyclomatic complexity of 18, moderate risk (above 10): each of its 18 paths needs its own test, which makes it hard to follow and to change safely 497:28 [error] complexity.function - Meta::format has a cyclomatic complexity of 23, high risk (above 10): each of its 23 paths needs its own test, which makes it hard to follow and to change safely 561:29 [warning] complexity.function - Meta::injectNestedValues has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 0 (F), based on 497 code lines 107:1 [warning] duplication.repeated_block - lines 107 to 125 repeat lines 82 to 100 (67 tokens); repeated code has to be fixed in every copy 132:1 [warning] duplication.repeated_block - lines 132 to 150 repeat lines 82 to 100 (67 tokens); repeated code has to be fixed in every copy 291:1 [warning] duplication.repeated_block - lines 291 to 301 repeat lines 71 to 82 (160 tokens); repeated code has to be fixed in every copy 311:1 [warning] duplication.repeated_block - lines 311 to 334 repeat lines 84 to 107 (88 tokens); repeated code has to be fixed in every copy 334:1 [warning] duplication.repeated_block - lines 334 to 359 repeat lines 107 to 132 (96 tokens); repeated code has to be fixed in every copy 359:1 [warning] duplication.repeated_block - lines 359 to 384 repeat lines 132 to 157 (96 tokens); repeated code has to be fixed in every copy 384:1 [warning] duplication.repeated_block - lines 384 to 404 repeat lines 157 to 177 (76 tokens); repeated code has to be fixed in every copy 539:1 [warning] duplication.repeated_block - lines 539 to 540 repeat lines 532 to 533 (63 tokens); repeated code has to be fixed in every copy NamingConvention: 98 (A), based on 59 names 563:10 [warning] naming.too_short - variable `v` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Utils/Data/NestedValues.php (other) CodeLength: not graded 33:28 [warning] length.function - NestedValues::formatBlockValues has 63 lines in its body, above 50 111:28 [warning] length.function - NestedValues::addOrUpdateRawValue has 57 lines in its body, above 50 178:29 [warning] length.function - NestedValues::getRawValue has 59 lines in its body, above 50 CyclomaticComplexity: 80 (B), based on 3 functions 33:28 [warning] complexity.function - NestedValues::formatBlockValues has a cyclomatic complexity of 17, moderate risk (above 10): each of its 17 paths needs its own test, which makes it hard to follow and to change safely 111:28 [warning] complexity.function - NestedValues::addOrUpdateRawValue has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely Duplication: 85 (B), based on 151 code lines 151:1 [warning] duplication.repeated_block - lines 151 to 160 repeat lines 126 to 135 (58 tokens); repeated code has to be fixed in every copy NamingConvention: 78 (C), based on 37 names 35:10 [warning] naming.inconsistent_style - variable `formattedValues` is camelCase, while most variables and parameters in this file are snake_case (15 of 33 names); mixed styles make code harder to scan 46:45 [warning] naming.inconsistent_style - variable `rawIndex` is camelCase, while most variables and parameters in this file are snake_case (15 of 33 names); mixed styles make code harder to scan 61:58 [warning] naming.inconsistent_style - variable `rawDeepValue` is camelCase, while most variables and parameters in this file are snake_case (15 of 33 names); mixed styles make code harder to scan 80:38 [warning] naming.inconsistent_style - variable `rawValue` is camelCase, while most variables and parameters in this file are snake_case (15 of 33 names); mixed styles make code harder to scan 111:89 [warning] naming.inconsistent_style - parameter `savedValues` is camelCase, while most variables and parameters in this file are snake_case (15 of 33 names); mixed styles make code harder to scan 117:55 [warning] naming.inconsistent_style - variable `childIndex` is camelCase, while most variables and parameters in this file are snake_case (15 of 33 names); mixed styles make code harder to scan 121:33 [warning] naming.inconsistent_style - variable `singleValue` is camelCase, while most variables and parameters in this file are snake_case (15 of 33 names); mixed styles make code harder to scan 126:43 [warning] naming.too_short - variable `c` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Utils/Data/Normalizer.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 23 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Utils/Data/Sanitizer.php (other) CodeLength: not graded 39:28 [warning] length.function - Sanitizer::sanitizeRawData has 55 lines in its body, above 50 121:29 [warning] length.function - Sanitizer::getPolicy has 55 lines in its body, above 50 183:29 [warning] length.function - Sanitizer::applyPolicy has 56 lines in its body, above 50 327:29 [warning] length.function - Sanitizer::sanitizeTextareaJson has 54 lines in its body, above 50 424:29 [warning] length.function - Sanitizer::svgWhitelist has 73 lines in its body, above 50 507:29 [error] length.function - Sanitizer::sanitizeArray has 106 lines in its body, above 100 11:7 [warning] length.class - Sanitizer has 665 lines, above 500 for a other 1:1 [warning] length.file - the file has 675 lines, above 600 for a other CyclomaticComplexity: 75 (C), based on 14 functions 39:28 [warning] complexity.function - Sanitizer::sanitizeRawData has a cyclomatic complexity of 16, moderate risk (above 10): each of its 16 paths needs its own test, which makes it hard to follow and to change safely 183:29 [warning] complexity.function - Sanitizer::applyPolicy has a cyclomatic complexity of 16, moderate risk (above 10): each of its 16 paths needs its own test, which makes it hard to follow and to change safely 252:29 [warning] complexity.function - Sanitizer::sanitizeTableData has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely 327:29 [warning] complexity.function - Sanitizer::sanitizeTextareaJson has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely 507:29 [error] complexity.function - Sanitizer::sanitizeArray has a cyclomatic complexity of 26, high risk (above 10): each of its 26 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 416 code lines 162:1 [warning] duplication.repeated_block - lines 162 to 165 repeat lines 157 to 162 (60 tokens); repeated code has to be fixed in every copy NamingConvention: 98 (A), based on 48 names 104:60 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Utils/Data/TableRecord.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 11 functions Duplication: 100 (A), based on 137 code lines NamingConvention: 100 (A), based on 39 names Security: not graded advanced-custom-post-type/src/Utils/Data/ValidationException.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 20 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Utils/Data/WooCommerceNormalizer.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 44 code lines NamingConvention: 83 (B), based on 12 names 17:10 [warning] naming.inconsistent_style - variable `WooCommerceProduct` is PascalCase, while most variables and parameters in this file are camelCase (7 of 10 names); mixed styles make code harder to scan 20:10 [warning] naming.inconsistent_style - variable `attachment_ids` is snake_case, while most variables and parameters in this file are camelCase (7 of 10 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Utils/ExportCode/DTO/ExportCodeStringsDto.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 13 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Utils/ExportCode/ExportCodeStrings.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 28 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Utils/ExportCode/Exporter/AbstractExportCodeStrings.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 5 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Utils/ExportCode/Exporter/ExportBlockCodeStrings.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 42 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Utils/ExportCode/Exporter/ExportCustomPostTypeCodeStrings.php (other) CodeLength: not graded 17:21 [warning] length.function - ExportCustomPostTypeCodeStrings::export has 97 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 85 code lines NamingConvention: 92 (A), based on 12 names 9:7 [warning] naming.too_long - class `ExportCustomPostTypeCodeStrings` is 31 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Utils/ExportCode/Exporter/ExportFormCodeStrings.php (other) CodeLength: not graded 16:21 [warning] length.function - ExportFormCodeStrings::export has 63 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 58 code lines NamingConvention: 100 (A), based on 12 names Security: not graded advanced-custom-post-type/src/Utils/ExportCode/Exporter/ExportMetaCodeStrings.php (other) CodeLength: not graded 16:21 [warning] length.function - ExportMetaCodeStrings::export has 56 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 51 code lines NamingConvention: 100 (A), based on 13 names Security: not graded advanced-custom-post-type/src/Utils/ExportCode/Exporter/ExportOptionPageCodeStrings.php (other) CodeLength: not graded 17:21 [warning] length.function - ExportOptionPageCodeStrings::export has 76 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 70 (C), based on 66 code lines 74:1 [warning] duplication.repeated_block - lines 74 to 80 repeat lines 62 to 68 (54 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 9 names Security: not graded advanced-custom-post-type/src/Utils/ExportCode/Exporter/ExportTaxonomyCodeStrings.php (other) CodeLength: not graded 18:21 [warning] length.function - ExportTaxonomyCodeStrings::export has 89 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 70 code lines NamingConvention: 100 (A), based on 15 names Security: not graded advanced-custom-post-type/src/Utils/Http/ACPTApiClient.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 32 code lines NamingConvention: 91 (A), based on 11 names 24:47 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Utils/Log/ACPTLogger.php (other) CodeLength: not graded 210:28 [warning] length.function - ACPTLogger::writeLog has 82 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 17 functions Duplication: 40 (F), based on 150 code lines 116:1 [warning] duplication.repeated_block - lines 116 to 148 repeat lines 84 to 116 (72 tokens); repeated code has to be fixed in every copy 148:1 [warning] duplication.repeated_block - lines 148 to 181 repeat lines 84 to 117 (75 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 48 names Security: not graded advanced-custom-post-type/src/Utils/MetaSync/AbstractMetaSync.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 0 (F), based on 48 code lines 62:1 [warning] duplication.repeated_block - lines 62 to 81 repeat lines 40 to 59 (89 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 14 names Security: not graded advanced-custom-post-type/src/Utils/MetaSync/MetaSync.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 44 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Utils/MetaSync/OptionPageMetaSync.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 9 functions Duplication: 70 (C), based on 127 code lines 137:1 [warning] duplication.repeated_block - lines 137 to 160 repeat lines 108 to 130 (102 tokens); repeated code has to be fixed in every copy 214:1 [warning] duplication.repeated_block - lines 214 to 222 repeat lines 133 to 141 (51 tokens); repeated code has to be fixed in every copy NamingConvention: 92 (A), based on 39 names 98:29 [warning] naming.too_long - method `updateNestedPostMetaInABlockWhenFieldNameChanges` is 48 characters (limit 30); very long names make code hard to read 130:29 [warning] naming.too_long - method `updateNestedPostMetaWhenFieldNameChanges` is 40 characters (limit 30); very long names make code hard to read 212:29 [warning] naming.too_long - method `updatePostMetaWhenFieldNameChanges` is 34 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Utils/MetaSync/PostMetaSync.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 70 (C), based on 122 code lines 112:1 [warning] duplication.repeated_block - lines 112 to 136 repeat lines 83 to 105 (71 tokens); repeated code has to be fixed in every copy NamingConvention: 92 (A), based on 36 names 73:29 [warning] naming.too_long - method `updateNestedPostMetaInABlockWhenFieldNameChanges` is 48 characters (limit 30); very long names make code hard to read 105:29 [warning] naming.too_long - method `updateNestedPostMetaWhenFieldNameChanges` is 40 characters (limit 30); very long names make code hard to read 190:29 [warning] naming.too_long - method `updatePostMetaWhenFieldNameChanges` is 34 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Utils/MetaSync/TaxonomyMetaSync.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 70 (C), based on 147 code lines 168:1 [warning] duplication.repeated_block - lines 168 to 182 repeat lines 91 to 105 (65 tokens); repeated code has to be fixed in every copy NamingConvention: 92 (A), based on 36 names 75:29 [warning] naming.too_long - method `updateNestedPostMetaWhenFieldNameChanges` is 40 characters (limit 30); very long names make code hard to read 132:29 [warning] naming.too_long - method `updateNestedPostMetaInABlockWhenFieldNameChanges` is 48 characters (limit 30); very long names make code hard to read 222:29 [warning] naming.too_long - method `updatePostMetaWhenFieldNameChanges` is 34 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Utils/MetaSync/UserMetaSync.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 70 (C), based on 133 code lines 159:1 [warning] duplication.repeated_block - lines 159 to 171 repeat lines 88 to 100 (51 tokens); repeated code has to be fixed in every copy NamingConvention: 91 (A), based on 35 names 72:29 [warning] naming.too_long - method `updateNestedPostMetaWhenFieldNameChanges` is 40 characters (limit 30); very long names make code hard to read 124:29 [warning] naming.too_long - method `updateNestedPostMetaInABlockWhenFieldNameChanges` is 48 characters (limit 30); very long names make code hard to read 208:29 [warning] naming.too_long - method `updatePostMetaWhenFieldNameChanges` is 34 characters (limit 30); very long names make code hard to read Security: not graded advanced-custom-post-type/src/Utils/MySQL/Schema.php (other) CodeLength: not graded 22:28 [error] length.function - Schema::diffQueries has 229 lines in its body, above 100 260:29 [warning] length.function - Schema::resetTableOptionSQL has 53 lines in its body, above 50 379:29 [warning] length.function - Schema::indexSQL has 57 lines in its body, above 50 459:29 [warning] length.function - Schema::columnSQL has 69 lines in its body, above 50 585:28 [error] length.function - Schema::diff has 138 lines in its body, above 100 738:28 [error] length.function - Schema::extract has 127 lines in its body, above 100 988:29 [error] length.function - Schema::parseColumn has 132 lines in its body, above 100 1218:29 [warning] length.function - Schema::parseIndex has 60 lines in its body, above 50 1287:29 [error] length.function - Schema::parseIndexOptions has 113 lines in its body, above 100 11:7 [error] length.class - Schema has 1443 lines, above 1000 for a other 1:1 [error] length.file - the file has 1453 lines, above 1200 for a other CyclomaticComplexity: 52 (F), based on 17 functions 22:28 [error] complexity.function - Schema::diffQueries has a cyclomatic complexity of 49, high risk (above 10): each of its 49 paths needs its own test, which makes it hard to follow and to change safely 260:29 [warning] complexity.function - Schema::resetTableOptionSQL has a cyclomatic complexity of 15, moderate risk (above 10): each of its 15 paths needs its own test, which makes it hard to follow and to change safely 379:29 [warning] complexity.function - Schema::indexSQL has a cyclomatic complexity of 14, moderate risk (above 10): each of its 14 paths needs its own test, which makes it hard to follow and to change safely 459:29 [warning] complexity.function - Schema::columnSQL has a cyclomatic complexity of 16, moderate risk (above 10): each of its 16 paths needs its own test, which makes it hard to follow and to change safely 585:28 [error] complexity.function - Schema::diff has a cyclomatic complexity of 28, high risk (above 10): each of its 28 paths needs its own test, which makes it hard to follow and to change safely 738:28 [error] complexity.function - Schema::extract has a cyclomatic complexity of 27, high risk (above 10): each of its 27 paths needs its own test, which makes it hard to follow and to change safely 871:29 [warning] complexity.function - Schema::splitByComma has a cyclomatic complexity of 15, moderate risk (above 10): each of its 15 paths needs its own test, which makes it hard to follow and to change safely 924:29 [warning] complexity.function - Schema::extractBalancedParentheses has a cyclomatic complexity of 15, moderate risk (above 10): each of its 15 paths needs its own test, which makes it hard to follow and to change safely 988:29 [error] complexity.function - Schema::parseColumn has a cyclomatic complexity of 29, high risk (above 10): each of its 29 paths needs its own test, which makes it hard to follow and to change safely 1139:29 [warning] complexity.function - Schema::normalizeColumnForComparison has a cyclomatic complexity of 14, moderate risk (above 10): each of its 14 paths needs its own test, which makes it hard to follow and to change safely 1218:29 [warning] complexity.function - Schema::parseIndex has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely 1287:29 [warning] complexity.function - Schema::parseIndexOptions has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 902 code lines 931:1 [warning] duplication.repeated_block - lines 931 to 946 repeat lines 879 to 894 (103 tokens); repeated code has to be fixed in every copy NamingConvention: 97 (A), based on 98 names 327:10 [warning] naming.generic - variable `obj` is a generic name; it says nothing about what it holds 871:50 [warning] naming.generic - parameter `str` is a generic name; it says nothing about what it holds 1043:58 [warning] naming.too_short - parameter `v` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Utils/MySQL/SchemaErrorExplainer.php (other) CodeLength: not graded 20:28 [warning] length.function - SchemaErrorExplainer::explain has 56 lines in its body, above 50 CyclomaticComplexity: 70 (C), based on 1 function 20:28 [warning] complexity.function - SchemaErrorExplainer::explain has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 49 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Utils/MySQL/TableSchemaException.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 25 code lines NamingConvention: 100 (A), based on 10 names Security: not graded advanced-custom-post-type/src/Utils/PHP/Address.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 25 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Utils/PHP/Arrays.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 15 functions Duplication: 100 (A), based on 161 code lines NamingConvention: 95 (A), based on 43 names 79:18 [warning] naming.inconsistent_style - variable `key_result` is snake_case, while most variables and parameters in this file are camelCase (7 of 27 names); mixed styles make code harder to scan 166:14 [warning] naming.inconsistent_style - variable `new_key` is snake_case, while most variables and parameters in this file are camelCase (7 of 27 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Utils/PHP/Assert.php (other) CodeLength: not graded 14:7 [error] length.class - Assert has 1921 lines, above 1000 for a other 1:1 [error] length.file - the file has 1934 lines, above 1200 for a other CyclomaticComplexity: 100 (A), based on 96 functions Duplication: 70 (C), based on 970 code lines 347:1 [warning] duplication.repeated_block - lines 347 to 369 repeat lines 328 to 347 (54 tokens); repeated code has to be fixed in every copy 369:1 [warning] duplication.repeated_block - lines 369 to 388 repeat lines 328 to 347 (54 tokens); repeated code has to be fixed in every copy 685:1 [warning] duplication.repeated_block - lines 685 to 701 repeat lines 669 to 685 (53 tokens); repeated code has to be fixed in every copy 1215:1 [warning] duplication.repeated_block - lines 1215 to 1232 repeat lines 1193 to 1210 (52 tokens); repeated code has to be fixed in every copy 1237:1 [warning] duplication.repeated_block - lines 1237 to 1255 repeat lines 1193 to 1210 (52 tokens); repeated code has to be fixed in every copy 1260:1 [warning] duplication.repeated_block - lines 1260 to 1278 repeat lines 1193 to 1210 (52 tokens); repeated code has to be fixed in every copy NamingConvention: 99 (A), based on 128 names 1924:10 [warning] naming.inconsistent_style - variable `encoded_path` is snake_case, while most variables and parameters in this file are camelCase (4 of 31 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Utils/PHP/Audio.php (other) CodeLength: not graded 16:28 [warning] length.function - Audio::playlist has 56 lines in its body, above 50 82:28 [warning] length.function - Audio::single has 54 lines in its body, above 50 CyclomaticComplexity: 87 (B), based on 5 functions 16:28 [warning] complexity.function - Audio::playlist has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 70 (C), based on 115 code lines 91:1 [warning] duplication.repeated_block - lines 91 to 95 repeat lines 53 to 56 (99 tokens); repeated code has to be fixed in every copy 172:1 [warning] duplication.repeated_block - lines 172 to 176 repeat lines 166 to 170 (81 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 21 names Security: not graded advanced-custom-post-type/src/Utils/PHP/Barcode.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 24 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Utils/PHP/Browser.php (other) CodeLength: not graded 10:28 [warning] length.function - Browser::getBrowser has 85 lines in its body, above 50 CyclomaticComplexity: 70 (C), based on 1 function 10:28 [warning] complexity.function - Browser::getBrowser has a cyclomatic complexity of 20, moderate risk (above 10): each of its 20 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 77 code lines NamingConvention: 100 (A), based on 11 names Security: not graded 12:69 [warning] security.unsanitized_input - read of `$_SERVER['HTTP_USER_AGENT']` with no sanitizer around it; sanitize request input where you read it advanced-custom-post-type/src/Utils/PHP/CURL.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 26 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Utils/PHP/CallingClass.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 18 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Utils/PHP/Code.php (other) CodeLength: not graded 28:29 [warning] length.function - Code::convertWordPressTags has 76 lines in its body, above 50 CyclomaticComplexity: 87 (B), based on 7 functions 28:29 [warning] complexity.function - Code::convertWordPressTags has a cyclomatic complexity of 14, moderate risk (above 10): each of its 14 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 158 code lines 55:1 [warning] duplication.repeated_block - lines 55 to 62 repeat lines 43 to 50 (61 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 25 names Security: not graded advanced-custom-post-type/src/Utils/PHP/Cookie.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 23 code lines NamingConvention: 100 (A), based on 9 names Security: not graded 39:36 [warning] security.unsanitized_input - read of `$_COOKIE` with no sanitizer around it; sanitize request input where you read it 40:51 [warning] security.unsanitized_input - read of `$_COOKIE` with no sanitizer around it; sanitize request input where you read it advanced-custom-post-type/src/Utils/PHP/Country.php (other) CodeLength: not graded 44:28 [error] length.function - Country::getAllCountries has 254 lines in its body, above 100 CyclomaticComplexity: 100 (A), based on 6 functions Duplication: 100 (A), based on 295 code lines NamingConvention: 100 (A), based on 16 names Security: not graded advanced-custom-post-type/src/Utils/PHP/Date.php (other) CodeLength: not graded CyclomaticComplexity: 92 (A), based on 6 functions 17:28 [warning] complexity.function - Date::objectFromString has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 131 code lines NamingConvention: 100 (A), based on 19 names Security: not graded advanced-custom-post-type/src/Utils/PHP/DateNormalizer.php (other) CodeLength: not graded CyclomaticComplexity: 93 (A), based on 9 functions 79:28 [warning] complexity.function - DateNormalizer::toDateTime has a cyclomatic complexity of 11, moderate risk (above 10): each of its 11 paths needs its own test, which makes it hard to follow and to change safely Duplication: 85 (B), based on 135 code lines 104:1 [warning] duplication.repeated_block - lines 104 to 114 repeat lines 66 to 83 (53 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 31 names Security: not graded advanced-custom-post-type/src/Utils/PHP/Email.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 14 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Utils/PHP/FS.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 20 code lines NamingConvention: 100 (A), based on 6 names Security: not graded advanced-custom-post-type/src/Utils/PHP/GeoHttpClient.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 8 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Utils/PHP/GeoLocation.php (other) CodeLength: not graded CyclomaticComplexity: 90 (A), based on 11 functions 134:29 [warning] complexity.function - GeoLocation::getCountryFromGoogleMaps has a cyclomatic complexity of 14, moderate risk (above 10): each of its 14 paths needs its own test, which makes it hard to follow and to change safely 206:29 [warning] complexity.function - GeoLocation::getCityFromGoogleMaps has a cyclomatic complexity of 15, moderate risk (above 10): each of its 15 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 199 code lines 208:1 [warning] duplication.repeated_block - lines 208 to 235 repeat lines 135 to 162 (151 tokens); repeated code has to be fixed in every copy 246:1 [warning] duplication.repeated_block - lines 246 to 269 repeat lines 170 to 193 (89 tokens); repeated code has to be fixed in every copy NamingConvention: 96 (A), based on 28 names 161:58 [warning] naming.inconsistent_style - variable `address_components` is snake_case, while most variables and parameters in this file are camelCase (3 of 15 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Utils/PHP/IP.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 49 code lines NamingConvention: 100 (A), based on 10 names Security: not graded advanced-custom-post-type/src/Utils/PHP/Image.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 25 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Utils/PHP/ImageSlider.php (other) CodeLength: not graded 18:28 [warning] length.function - ImageSlider::render has 96 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 70 (C), based on 48 code lines 126:1 [warning] duplication.repeated_block - lines 126 to 129 repeat lines 121 to 124 (58 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 9 names Security: not graded advanced-custom-post-type/src/Utils/PHP/Ini.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 47 code lines NamingConvention: 94 (A), based on 17 names 36:37 [warning] naming.generic - variable `val` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Utils/PHP/JSON.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 41 code lines NamingConvention: 100 (A), based on 13 names Security: not graded advanced-custom-post-type/src/Utils/PHP/KeyEcrypt.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 9 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Utils/PHP/Language.php (other) CodeLength: not graded 40:28 [error] length.function - Language::list has 326 lines in its body, above 100 CyclomaticComplexity: 100 (A), based on 5 functions Duplication: 100 (A), based on 363 code lines NamingConvention: 100 (A), based on 14 names Security: not graded advanced-custom-post-type/src/Utils/PHP/Logics.php (other) CodeLength: not graded 19:28 [warning] length.function - Logics::extractLogicBlocks has 52 lines in its body, above 50 CyclomaticComplexity: 77 (C), based on 2 functions 19:28 [warning] complexity.function - Logics::extractLogicBlocks has a cyclomatic complexity of 17, moderate risk (above 10): each of its 17 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 60 code lines NamingConvention: 100 (A), based on 12 names Security: not graded advanced-custom-post-type/src/Utils/PHP/Maps.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 6 functions Duplication: 100 (A), based on 105 code lines NamingConvention: 96 (A), based on 23 names 64:89 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds Security: not graded advanced-custom-post-type/src/Utils/PHP/Maths.php (other) CodeLength: not graded 179:22 [warning] length.function - Maths::captureMathExpressions has 57 lines in its body, above 50 CyclomaticComplexity: 93 (A), based on 17 functions 179:22 [warning] complexity.function - Maths::captureMathExpressions has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 218 code lines NamingConvention: 90 (A), based on 58 names 36:48 [warning] naming.generic - parameter `data` is a generic name; it says nothing about what it holds 100:40 [warning] naming.too_short - variable `d` is 1 character (at least 2); a one letter name hides its meaning 101:35 [warning] naming.too_short - variable `r` is 1 character (at least 2); a one letter name hides its meaning 136:40 [warning] naming.too_short - variable `m` is 1 character (at least 2); a one letter name hides its meaning 332:32 [warning] naming.too_short - parameter `a` is 1 character (at least 2); a one letter name hides its meaning 332:42 [warning] naming.too_short - parameter `b` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Utils/PHP/Numbers.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 20 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Utils/PHP/Objects.php (other) CodeLength: not graded CyclomaticComplexity: 75 (C), based on 2 functions 17:28 [warning] complexity.function - Objects::cast has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 51 code lines NamingConvention: 100 (A), based on 17 names Security: not graded advanced-custom-post-type/src/Utils/PHP/PHPEval/PhpEval.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 7 functions Duplication: 100 (A), based on 78 code lines NamingConvention: 100 (A), based on 22 names Security: not graded advanced-custom-post-type/src/Utils/PHP/PHPEval/SafeInterpreter.php (other) CodeLength: not graded 68:22 [error] length.function - SafeInterpreter::evaluateNode has 110 lines in its body, above 100 195:22 [error] length.function - SafeInterpreter::evaluateExpr has 177 lines in its body, above 100 CyclomaticComplexity: 37 (F), based on 6 functions 68:22 [error] complexity.function - SafeInterpreter::evaluateNode has a cyclomatic complexity of 31, high risk (above 10): each of its 31 paths needs its own test, which makes it hard to follow and to change safely 195:22 [error] complexity.function - SafeInterpreter::evaluateExpr has a cyclomatic complexity of 42, high risk (above 10): each of its 42 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 256 code lines NamingConvention: 94 (A), based on 35 names 157:42 [warning] naming.too_short - variable `v` is 1 character (at least 2); a one letter name hides its meaning 319:14 [warning] naming.generic - variable `var` is a generic name; it says nothing about what it holds Security: not graded 72:17 [warning] security.unescaped_output - echo of `$this->evaluateExpr($expr)` is not escaped at output; escape where you print (esc_html, esc_attr, htmlspecialchars) advanced-custom-post-type/src/Utils/PHP/PHPEval/SafeNodeVisitor.php (other) CodeLength: not graded 87:21 [warning] length.function - SafeNodeVisitor::enterNode has 53 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 40 (F), based on 94 code lines 60:1 [warning] duplication.repeated_block - lines 60 to 70 repeat lines 53 to 59 (56 tokens); repeated code has to be fixed in every copy 71:1 [warning] duplication.repeated_block - lines 71 to 78 repeat lines 53 to 59 (51 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 10 names Security: not graded advanced-custom-post-type/src/Utils/PHP/Phone.php (other) CodeLength: not graded 22:28 [warning] length.function - Phone::format has 89 lines in its body, above 50 124:28 [error] length.function - Phone::nationalFallback has 140 lines in its body, above 100 CyclomaticComplexity: 89 (B), based on 3 functions 22:28 [warning] complexity.function - Phone::format has a cyclomatic complexity of 17, moderate risk (above 10): each of its 17 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 216 code lines NamingConvention: 95 (A), based on 22 names 94:18 [warning] naming.too_short - variable `f` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Utils/PHP/Profiler.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 57 code lines NamingConvention: 100 (A), based on 20 names Security: not graded advanced-custom-post-type/src/Utils/PHP/QRCode.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 20 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Utils/PHP/Request.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 22 functions Duplication: 70 (C), based on 132 code lines 177:1 [warning] duplication.repeated_block - lines 177 to 219 repeat lines 76 to 117 (67 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 39 names Security: not graded 76:25 [warning] security.unsanitized_input - read of `$_GET` with no sanitizer around it; sanitize request input where you read it 76:32 [warning] security.unsanitized_input - read of `$_POST` with no sanitizer around it; sanitize request input where you read it 76:50 [warning] security.unsanitized_input - read of `$_FILES` with no sanitizer around it; sanitize request input where you read it 76:59 [warning] security.unsanitized_input - read of `$_REQUEST` with no sanitizer around it; sanitize request input where you read it advanced-custom-post-type/src/Utils/PHP/Serializer.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 15 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Utils/PHP/Server.php (other) CodeLength: not graded CyclomaticComplexity: 70 (C), based on 1 function 12:28 [warning] complexity.function - Server::isSecure has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 18 code lines NamingConvention: 100 (A), based on 2 names Security: not graded advanced-custom-post-type/src/Utils/PHP/Session.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 8 functions Duplication: 100 (A), based on 70 code lines NamingConvention: 100 (A), based on 17 names Security: not graded 23:26 [warning] security.unsanitized_input - read of `$_COOKIE` with no sanitizer around it; sanitize request input where you read it advanced-custom-post-type/src/Utils/PHP/Sluggify.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 26 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Utils/PHP/Twig.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 7 functions Duplication: 70 (C), based on 141 code lines 83:1 [warning] duplication.repeated_block - lines 83 to 93 repeat lines 36 to 46 (57 tokens); repeated code has to be fixed in every copy NamingConvention: 97 (A), based on 33 names 196:29 [warning] naming.too_short - variable `m` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Utils/PHP/Url.php (other) CodeLength: not graded CyclomaticComplexity: 93 (A), based on 10 functions 123:28 [warning] complexity.function - Url::fullUrl has a cyclomatic complexity of 13, moderate risk (above 10): each of its 13 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 102 code lines NamingConvention: 100 (A), based on 26 names Security: not graded 41:62 [warning] security.unsanitized_input - read of `$_SERVER['PHP_SELF']` with no sanitizer around it; sanitize request input where you read it 64:36 [warning] security.unsanitized_input - read of `$_SERVER['HTTP_HOST']` with no sanitizer around it; sanitize request input where you read it 79:62 [warning] security.unsanitized_input - read of `$_SERVER['QUERY_STRING']` with no sanitizer around it; sanitize request input where you read it 80:69 [warning] security.unsanitized_input - read of `$_SERVER['REQUEST_URI']` with no sanitizer around it; sanitize request input where you read it 140:73 [warning] security.unsanitized_input - read of `$_SERVER['REQUEST_URI']` with no sanitizer around it; sanitize request input where you read it advanced-custom-post-type/src/Utils/Settings/Settings.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 25 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Utils/Vite/Assets.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 30 code lines NamingConvention: 100 (A), based on 12 names Security: not graded advanced-custom-post-type/src/Utils/Wordpress/Comments.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 100 (A), based on 53 code lines NamingConvention: 100 (A), based on 14 names Security: not graded advanced-custom-post-type/src/Utils/Wordpress/DynamicBlock.php (other) CodeLength: not graded 88:29 [error] length.function - DynamicBlock::generateCSSFromAttributes has 257 lines in its body, above 100 CyclomaticComplexity: 26 (F), based on 7 functions 88:29 [error] complexity.function - DynamicBlock::generateCSSFromAttributes has a cyclomatic complexity of 103, untestable risk (above 10): each of its 103 paths needs its own test, which makes it hard to follow and to change safely Duplication: 40 (F), based on 263 code lines 258:1 [warning] duplication.repeated_block - lines 258 to 272 repeat lines 144 to 158 (164 tokens); repeated code has to be fixed in every copy 282:1 [warning] duplication.repeated_block - lines 282 to 289 repeat lines 269 to 276 (54 tokens); repeated code has to be fixed in every copy 290:1 [warning] duplication.repeated_block - lines 290 to 298 repeat lines 277 to 285 (82 tokens); repeated code has to be fixed in every copy 301:1 [warning] duplication.repeated_block - lines 301 to 310 repeat lines 277 to 286 (83 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 37 names Security: not graded advanced-custom-post-type/src/Utils/Wordpress/Email/EmailTemplateFactory.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 12 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Utils/Wordpress/Email/Envelope.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 11 functions Duplication: 70 (C), based on 124 code lines 106:1 [warning] duplication.repeated_block - lines 106 to 127 repeat lines 85 to 106 (61 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 36 names Security: not graded advanced-custom-post-type/src/Utils/Wordpress/Email/EnvelopeBody.php (other) CodeLength: not graded CyclomaticComplexity: not graded Duplication: 100 (A), based on 7 code lines NamingConvention: 100 (A), based on 4 names Security: not graded advanced-custom-post-type/src/Utils/Wordpress/Email/Template/AbstractEmailTemplate.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 50 code lines NamingConvention: 100 (A), based on 17 names Security: not graded advanced-custom-post-type/src/Utils/Wordpress/Email/Template/BlankEmailTemplate.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 13 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Utils/Wordpress/Email/Template/DarkEmailTemplate.php (other) CodeLength: not graded 12:21 [error] length.function - DarkEmailTemplate::skeleton has 197 lines in its body, above 100 CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 13 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Utils/Wordpress/Email/Template/LightEmailTemplate.php (other) CodeLength: not graded 15:21 [error] length.function - LightEmailTemplate::skeleton has 200 lines in its body, above 100 CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 13 code lines NamingConvention: 100 (A), based on 3 names Security: not graded advanced-custom-post-type/src/Utils/Wordpress/Files.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 82 code lines NamingConvention: 93 (A), based on 28 names 17:38 [warning] naming.too_short - parameter `a` is 1 character (at least 2); a one letter name hides its meaning 17:42 [warning] naming.too_short - parameter `b` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Utils/Wordpress/Nonce.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 24 code lines NamingConvention: 100 (A), based on 7 names Security: not graded advanced-custom-post-type/src/Utils/Wordpress/Posts.php (other) CodeLength: not graded 147:28 [warning] length.function - Posts::getList has 62 lines in its body, above 50 CyclomaticComplexity: 89 (B), based on 8 functions 147:28 [warning] complexity.function - Posts::getList has a cyclomatic complexity of 12, moderate risk (above 10): each of its 12 paths needs its own test, which makes it hard to follow and to change safely Duplication: 100 (A), based on 148 code lines 95:1 [warning] duplication.repeated_block - lines 95 to 99 repeat lines 86 to 90 (61 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 43 names Security: not graded advanced-custom-post-type/src/Utils/Wordpress/Roles.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 43 code lines NamingConvention: 90 (A), based on 10 names 19:10 [warning] naming.inconsistent_style - variable `wp_roles` is snake_case, while most variables and parameters in this file are camelCase (2 of 7 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/src/Utils/Wordpress/Terms.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 6 functions Duplication: 100 (A), based on 136 code lines NamingConvention: 91 (A), based on 35 names 40:14 [warning] naming.inconsistent_style - variable `taxonomy_details` is snake_case, while most variables and parameters in this file are camelCase (11 of 28 names); mixed styles make code harder to scan 141:56 [warning] naming.too_short - parameter `a` is 1 character (at least 2); a one letter name hides its meaning 141:73 [warning] naming.too_short - parameter `b` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Utils/Wordpress/Transient.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 20 code lines NamingConvention: 100 (A), based on 8 names Security: not graded advanced-custom-post-type/src/Utils/Wordpress/Translator.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 2 functions Duplication: 100 (A), based on 28 code lines NamingConvention: 100 (A), based on 9 names Security: not graded advanced-custom-post-type/src/Utils/Wordpress/Users.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 5 functions Duplication: 100 (A), based on 69 code lines NamingConvention: 100 (A), based on 19 names Security: not graded advanced-custom-post-type/src/Utils/Wordpress/WPAttachment.php (other) CodeLength: not graded 86:28 [warning] length.function - WPAttachment::fromUrl has 55 lines in its body, above 50 12:7 [warning] length.class - WPAttachment has 837 lines, above 500 for a other 1:1 [warning] length.file - the file has 848 lines, above 600 for a other CyclomaticComplexity: 100 (A), based on 37 functions Duplication: 100 (A), based on 494 code lines 646:1 [warning] duplication.repeated_block - lines 646 to 660 repeat lines 588 to 602 (63 tokens); repeated code has to be fixed in every copy NamingConvention: 97 (A), based on 95 names 500:61 [warning] naming.generic - variable `data` is a generic name; it says nothing about what it holds 715:10 [warning] naming.too_short - variable `w` is 1 character (at least 2); a one letter name hides its meaning 716:10 [warning] naming.too_short - variable `h` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Utils/Wordpress/WPAttachmentFactory.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 1 function Duplication: 100 (A), based on 25 code lines NamingConvention: 100 (A), based on 5 names Security: not graded advanced-custom-post-type/src/Utils/Wordpress/WPLinks.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 3 functions Duplication: 40 (F), based on 51 code lines 70:1 [warning] duplication.repeated_block - lines 70 to 90 repeat lines 36 to 58 (53 tokens); repeated code has to be fixed in every copy NamingConvention: 100 (A), based on 14 names Security: not graded advanced-custom-post-type/src/Utils/Wordpress/WPSearch.php (other) CodeLength: not graded 81:22 [warning] length.function - WPSearch::buildQueryArgs has 52 lines in its body, above 50 CyclomaticComplexity: 100 (A), based on 4 functions Duplication: 100 (A), based on 72 code lines NamingConvention: 94 (A), based on 18 names 109:75 [warning] naming.too_short - variable `q` is 1 character (at least 2); a one letter name hides its meaning Security: not graded advanced-custom-post-type/src/Utils/Wordpress/WPUtils.php (other) CodeLength: not graded CyclomaticComplexity: 100 (A), based on 7 functions Duplication: 100 (A), based on 62 code lines NamingConvention: 96 (A), based on 24 names 20:104 [warning] naming.inconsistent_style - parameter `WooCommerceLoopIndex` is PascalCase, while most variables and parameters in this file are camelCase (6 of 16 names); mixed styles make code harder to scan Security: not graded advanced-custom-post-type/vendor/ not analysed: Dependency project grades CodeLength: not graded CyclomaticComplexity: 87 (B), based on 1009 files, 5554 units Duplication: 66 (D), based on 1060 files, 123910 code lines NamingConvention: 96 (A), based on 1059 files, 20322 names Security: not graded Overall: 82 (B), 3 of 5 metrics, weights complexity 3, duplication 2, naming 1; not graded: codelength, security not analysed: 550 files (binary 271, JavaScript 215, CSS 35, Gettext Catalog 16, JSON 4, SVG 3, Markdown 2, INI 1, Ignore List 1, YAML 1, dist 1)