PHP Static analysis for bludit

Label Recipes Issues Files Severity Frequence
Multiple Index Definition Analyze, OneFile, All, Simple, CI-checks 7 3 Minor 25 %
Null Or Boolean Arrays All, Analyze 16 1 Minor 0 %
String Initialization All, CompatibilityPHP71 3 3 Minor 33 %
Too Many Array Dimensions All, Analyze 8 2 Minor 0 %
Ambiguous Static All, Analyze 50 23 Minor 64 %
Ambiguous Visibilities All, Analyze 8 8 Minor 70 %
Avoid Optional Properties All, Analyze 12 6 Major 83 %
Could Be Abstract Class All, Analyze, ClassReview 2 2 Minor 65 %
Class Could Be Final All, Analyze, ClassReview 58 58 Minor 95 %
Method Could Be Static All, Analyze, ClassReview 79 19 Minor 95 %
Different Argument Counts All, Analyze, ClassReview 2 1 Minor 0 %
Hidden Nullable All, Analyze, ClassReview 2 1 Minor 0 %
Incompatible Signature Methods With Covariance All, Analyze 9 9 Critical 0 %
Locally Unused Property Dead code, All, Simple 3 3 Minor 76 %
Assign Default To Properties Analyze, ClearPHP, All, Simple, Level 2 18 6 Minor 49 %
Make Global A Property Analyze, All, Simple 151 37 Minor 33 %
Method Signature Must Be Compatible All, Analyze, LintButWontExec 2 1 Critical 50 %
No Public Access Analyze, All 15 4 Minor 60 %
Forgotten Visibility Analyze, ClearPHP, All, Simple, Level 1, CI-checks 30 18 Minor 42 %
Property Could Be Local All, Analyze, ClassReview 6 4 Minor 71 %
Never Used Properties Analyze, All, Simple 1 1 Minor 72 %
Property Used In One Method Only All, Analyze 7 4 Minor 84 %
Should Use Local Class Analyze, ClearPHP, All, Simple 193 35 Minor 94 %
Static Methods Called From Object Analyze, All, Simple, CI-checks 7 3 Minor 38 %
Undefined Classes Analyze, All 23 9 Major 91 %
Undefined Class Constants Analyze, All, CI-checks 8 1 Major 53 %
Unresolved Classes Analyze, All 11 6 Major 86 %
Unused Classes Dead code, All, Simple, Analyze 1 1 Major 72 %
Unused Class Constant All, Analyze, ClassReview 1 1 Minor 0 %
Unused Methods Dead code, All, Simple 197 52 Minor 95 %
Unused Private Methods Dead code, OneFile, All, Simple 6 3 Minor 45 %
Unused Private Properties Dead code, OneFile, All, Simple 2 1 Minor 37 %
Unused Protected Methods Dead code, All 4 1 Major 72 %
Use Class Operator All, Analyze, Performances, Simple, CI-checks 463 77 Minor 74 %
Used Once Property All, Analyze 12 4 Minor 72 %
Use const Analyze, Coding Conventions, All, Top10, CI-checks 163 6 Minor 57 %
Constants With Strange Names Analyze, All, Simple, CI-checks 49 4 Minor 1 %
Invalid Constant Name Analyze, All, Simple 49 4 Major 1 %
Multiple Constant Definition Analyze, All, Simple, CI-checks 85 6 Minor 32 %
Undefined Constants Analyze, All, Simple, CompatibilityPHP72, CI-checks 24 12 Minor 54 %
Unused Constants Dead code, All, Simple 19 4 Minor 36 %
Catch Undefined Variable All, Analyze 2 1 Minor 0 %
Uncaught Exceptions Analyze, All 5 5 Minor 81 %
Useless Catch All, Analyze, CI-checks 6 4 Minor 47 %
Missing Include All, Analyze 74 10 Critical 61 %
Aliases Usage Analyze, ClearPHP, OneFile, All, Simple, Level 1, CI-checks 3 1 Minor 42 %
Use Named Boolean In Argument Definition All, Analyze 49 17 Minor 84 %
Could Make A Function All, Analyze, Suggestions 287 102 Minor 75 %
Empty Function Analyze, All, Simple 2 1 Minor 71 %
Hardcoded Passwords Analyze, OneFile, Security, All, Simple, Level 3 180 27 Major 61 %
Mismatched Default Arguments All, Analyze, Typechecks 15 9 Minor 33 %
Never Used Parameter All, Analyze, Suggestions 23 12 Minor 47 %
No Boolean As Default All, Analyze 49 17 Minor 84 %
No Return Used All, Analyze, Suggestions, Level 4 7 6 Minor 41 %
Relay Function Analyze, All 23 14 Major 83 %
Too Many Local Variables All, Analyze 3 3 Minor 65 %
Undefined Functions Analyze, All, CI-checks 208 47 Major 71 %
Unused Arguments Analyze, All, Simple 2 2 Major 89 %
Unused Functions Dead code, All, Simple 5 1 Minor 53 %
Unused Returned Value All, Analyze, OneFile, Dead code, Simple 56 26 Minor 39 %
Uses Default Values Analyze, All, Simple, CI-checks 496 76 Minor 97 %
Methods Without Return All, Analyze 86 42 Minor 0 %
Wrong Number Of Arguments Analyze, OneFile, All, Simple, CI-checks 18 13 Major 38 %
Wrong Optional Parameter Analyze, All, Simple, Level 1, CI-checks 1 1 Minor 38 %
Forgotten Interface All, Analyze 1 1 Minor 52 %
No array_merge() In Loops Analyze, Performances, ClearPHP, All, Simple, Level 2, Top10, CI-checks 1 1 Major 55 %
Logical To in_array All, Analyze, Level 2 14 2 Minor 66 %
Pre-increment Analyze, Performances, All, Simple, Level 4, CI-checks 21 7 Minor 74 %
Assumptions All, Analyze 10 1 Minor 0 %
Use random_int() Analyze, Security, All, CompatibilityPHP71, Simple, Level 2, CI-checks 11 8 Major 59 %
Don't Pollute Global Space All, Analyze 296 75 Minor 0 %
Wrong Parameter Type Analyze, OneFile, All, Simple, CI-checks 42 17 Major 45 %
Logical Should Use Symbolic Operators Analyze, OneFile, ClearPHP, All, Simple, Suggestions, Level 2, Top10, php-cs-fixable, CI-checks 135 95 Minor 42 %
Possible Missing Subpattern All, Analyze, Top10, CI-checks 3 1 Minor 40 %
No Class In Global All, Analyze, CI-checks 112 70 Minor 78 %
PHP Keywords As Names Analyze, All, Simple 269 21 Major 89 %
Scalar Are Not Arrays All, Analyze, CompatibilityPHP74, CI-checks 12 1 Minor 0 %
Should Use Coalesce Analyze, All, Simple, Suggestions, Level 3, CI-checks 71 16 Major 71 %
Use Nullable Type All, Appinfo, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 5 3 Major 21 %
Use PHP Object API Analyze, ClearPHP, All, Simple, CI-checks 3 2 Minor 23 %
Usort Sorting In PHP 7.0 CompatibilityPHP70, All 9 4 Major 46 %
Wrong Type For Native PHP Function All, Analyze, CI-checks 18 10 Minor 0 %
Always Anchor Regex All, Security 3 1 Major 65 %
Avoid Those Hash Functions Security, All 17 11 Major 60 %
Direct Injection Security, All 15 9 Major 41 %
Encoded Simple Letters All, Security 1 1 Minor 40 %
Indirect Injection Security, All 4 3 Critical 21 %
Integer Conversion All, Security 3 2 Major 0 %
Mkdir Default All, Security 1 1 Major 35 %
move_uploaded_file Instead Of copy All, Security 1 1 Major 3 %
No Net For Xml Load All, Security 5 3 Major 49 %
Safe HTTP Headers All, Security 1 1 Major 5 %
Set Cookie Safe Arguments All, Security 1 1 Major 23 %
Should Use session_regenerateid() All, Security 1 1 Major 82 %
Adding Zero Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks 13 3 Minor 33 %
Altering Foreach Without Reference Analyze, ClearPHP, All, Simple, Level 1, CI-checks 1 1 Major 52 %
Alternative Syntax Consistence All, Analyze 8 1 Major 20 %
Array_merge Needs Array Of Arrays All, Analyze 2 2 Minor 0 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4 5 4 Minor 92 %
Strict Comparison With Booleans Analyze, All, Simple, Suggestions, Level 2, CI-checks 24 12 Minor 76 %
Buried Assignation Analyze, All 26 13 Minor 82 %
Cast To Boolean Analyze, OneFile, All, Simple, Level 1 10 4 Minor 55 %
Check All Types All, Analyze 2 2 Major 68 %
Check JSON All, Analyze, CI-checks 52 25 Major 64 %
Common Alternatives Analyze, All, Simple 3 2 Major 61 %
Concat Empty String All, Analyze, OneFile 37 9 Minor 0 %
Could Be Else All, Analyze 3 2 Minor 48 %
Could Use Short Assignation Analyze, OneFile, Performances, All, Simple, CI-checks 16 9 Minor 60 %
Dangling Array References PHP recommendations, Analyze, ClearPHP, All, Simple, Level 1, Top10, CI-checks 1 1 Major 40 %
Dont Change The Blind Var All, Analyze 12 9 Minor 72 %
Dont Mix ++ All, Analyze 4 3 Minor 43 %
Double Assignation Analyze, All 4 4 Major 55 %
Double Instructions Analyze, All, Simple 12 10 Minor 57 %
Double Object Assignation All, Analyze, ClassReview 1 1 Minor 0 %
Drop Else After Return All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks 9 8 Minor 70 %
Echo With Concat Performances, Analyze, All, Simple, Suggestions 146 35 Minor 58 %
Else If Versus Elseif Analyze, All, Simple, php-cs-fixable, Rector, CI-checks 11 6 Minor 65 %
Empty Instructions Dead code, Analyze, All, Simple 496 33 Minor 43 %
Empty Try Catch Analyze, All, Level 3 26 16 Minor 47 %
Exit() Usage Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks 118 103 Major 60 %
Global Usage Analyze, Appinfo, ClearPHP, All 274 54 Minor 52 %
Htmlentities Calls Analyze, All, Simple, CI-checks 2 2 Major 39 %
If With Same Conditions Analyze, All, Simple, CI-checks 1 1 Major 44 %
Iffectations Analyze, All 3 2 Minor 80 %
Implied If Analyze, ClearPHP, All, Simple, CI-checks 94 94 Major 29 %
Implode() Arguments Order All, Analyze, CI-checks 2 2 Minor 0 %
Inconsistent Elseif All, Analyze 5 5 Major 73 %
Max Level Of Nesting All, Analyze 8 7 Minor 0 %
Merge If Then All, Analyze, CI-checks 28 17 Minor 0 %
Mismatched Ternary Alternatives All, Analyze, Suggestions, Level 4 11 8 Major 62 %
Missing New ? All, Analyze 2 1 Critical 5 %
Mixed Concat And Interpolation All, Coding Conventions, Analyze 1 1 Minor 43 %
Modernize Empty With Expression All, Analyze, OneFile, Simple 24 17 Minor 56 %
Multiple Type Variable All, Analyze, Level 4 4 4 Minor 43 %
Nested Ifthen Analyze, All, RadwellCodes 31 22 Major 87 %
Don't Change Incomings Analyze, All 5 2 Minor 44 %
No Direct Usage Analyze, All, Simple 1 1 Major 36 %
No Need For Else All, Analyze 15 11 Minor 74 %
No Parenthesis For Language Construct Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks 111 22 Minor 61 %
Avoid Substr() One Analyze, Performances, All, CompatibilityPHP71, Simple, Level 2, Suggestions, Top10, CI-checks 2 2 Minor 57 %
Variable Is Not A Condition All, Analyze 64 23 Minor 57 %
@ Operator Appinfo, ClearPHP, All, Analyze, Performances, CI-checks 8 5 Minor 66 %
include_once() Usage Analyze, Appinfo, All 3 3 Minor 73 %
Several Instructions On The Same Line Analyze, All 46 19 Major 57 %
Print And Die Analyze, All, Simple, CI-checks 1 1 Minor 29 %
Avoid Parenthesis Analyze, All, Simple, CI-checks 2 2 Minor 10 %
Repeated print() Analyze, All, Simple, Suggestions, Level 3, Top10, CI-checks 73 28 Major 49 %
Repeated Regex All, Analyze, Level 1, CI-checks 4 1 Minor 47 %
Return True False Analyze, All, Simple, Level 1, CI-checks 7 3 Major 53 %
Same Conditions In Condition Analyze, All, Simple, CI-checks 1 1 Critical 49 %
Should Make Ternary All, Analyze, OneFile, Simple, CI-checks 21 15 Minor 85 %
Preprocessable Analyze, All, Rector 516 135 Minor 86 %
Strpos()-like Comparison Analyze, PHP recommendations, ClearPHP, All, Simple, Level 2, Top10, CI-checks 14 3 Major 54 %
Suspicious Comparison All, Analyze, Level 3 1 1 Major 15 %
Switch To Switch Analyze, All, RadwellCodes, Simple 7 7 Minor 79 %
Switch Without Default Analyze, ClearPHP, All, Simple, CI-checks 1 1 Major 68 %
Timestamp Difference Analyze, All, Simple, Level 3, CI-checks 2 2 Major 50 %
Unconditional Break In Loop All, Analyze, Level 3, CI-checks 2 2 Major 46 %
Unpreprocessed Values Analyze, OneFile, ClearPHP, All, Simple 2 2 Minor 28 %
Unused Global Analyze, All, Simple 20 15 Minor 18 %
Use Positive Condition All, Analyze, OneFile, Simple 6 6 Minor 81 %
Useless Casting All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4, CI-checks 1 1 Minor 37 %
Useless Instructions Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks 3 2 Minor 58 %
Useless Parenthesis Analyze, All, Simple, CI-checks 26 14 Minor 81 %
Should Typecast Analyze, OneFile, All, Simple, CI-checks 15 6 Minor 47 %
String May Hold A Variable Analyze, All, Simple 2 1 Minor 58 %
Assigned Twice All, Analyze 47 12 Minor 78 %
Overwritten Literals Analyze, All 43 12 Major 78 %
Undefined Variable All, Analyze, CI-checks 865 86 Minor 77 %
Used Once Variables Analyze, OneFile, All, Simple, Top10 15 10 Minor 87 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4 205 94 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple 107 29 Minor 78 %