PHP Static analysis for public

Label Recipes Issues Files Severity Frequence
Ambiguous Array Index Analyze, All, Simple, Level 2, Semantics, ChangedBehavior 5 4 Minor 10 %
Null Or Boolean Arrays All, Analyze 1 1 Minor 0 %
Weak Type With Array All, Analyze, ChangedBehavior 32 12 Minor 0 %
Ambiguous Static All, Analyze, Semantics, ChangedBehavior 52 35 Minor 66 %
Ambiguous Visibilities All, Analyze, Semantics, ChangedBehavior 2 2 Minor 70 %
Could Be Abstract Class All, Analyze, ClassReview, ChangedBehavior 4 4 Minor 65 %
Class Could Be Final All, Analyze, ClassReview, ChangedBehavior 181 181 Minor 96 %
Method Could Be Static All, Analyze, ClassReview, ChangedBehavior 429 144 Minor 92 %
Could Inject Parameter All, Analyze, ClassReview, ChangedBehavior 80 79 Minor 0 %
Implicit Nullable Type All, Analyze, ClassReview, ChangedBehavior 1 1 Minor 0 %
Mismatch Properties Typehints All, Analyze, LintButWontExec, ClassReview, ChangedBehavior 2 2 Minor 0 %
New Object Then Immediate Call All, Analyze, ClassReview 6 6 Minor 0 %
No Public Access Analyze, All, ChangedBehavior 4 3 Minor 61 %
Parent First All, Analyze, Suggestions, ChangedBehavior 6 6 Minor 56 %
Parent Is Not Static All, Analyze, ClassReview, ChangedBehavior 1 1 Major 0 %
Property Could Be Local All, Analyze, ClassReview, ChangedBehavior 8 8 Minor 76 %
Never Used Properties Analyze, All, Simple, Unused, ChangedBehavior 4 4 Minor 71 %
Property Used In One Method Only All, Analyze, ChangedBehavior 11 10 Minor 84 %
Scalar Or Object Property All, Analyze 1 1 Minor 32 %
Could Use self Analyze, All, Simple, Suggestions, Level 3, ClassReview, ChangedBehavior 1 1 Minor 63 %
Should Use Local Class Analyze, ClearPHP, All, Simple, ChangedBehavior 446 149 Minor 95 %
Too Many Dereferencing All, Analyze, ChangedBehavior 1 1 Minor 0 %
Undefined Classes Analyze, All, Stubs, Undefined 915 160 Major 91 %
Undefined Class Constants Analyze, All, CI-checks, Stubs, LintButWontExec, Undefined, ChangedBehavior, CE 1 1 Major 62 %
Undefined Properties Analyze, ClearPHP, All, Simple, CI-checks, CompatibilityPHP82, Undefined, ChangedBehavior, CE 6 1 Major 61 %
Undefined ::class All, Analyze, CI-checks, Undefined, ChangedBehavior, CE 1 1 Major 36 %
Unfinished Object All, Analyze, ClassReview, ChangedBehavior 1 1 Major 0 %
Unresolved Classes Analyze, All, Stubs, ChangedBehavior 9 5 Major 76 %
Unused Classes Dead code, All, Simple, Analyze, Unused, ChangedBehavior 9 9 Major 67 %
Unused Public Methods All, Analyze, ChangedBehavior 547 165 Minor 0 %
Use Instanceof Analyze, All, Simple, CI-checks, ChangedBehavior, CE 1 1 Major 63 %
Wrong Typed Property Default All, Analyze, LintButWontExec, ClassReview, CI-checks, CE 2 2 Minor 0 %
Converted Exceptions All, Analyze, ChangedBehavior 2 1 Minor 0 %
Throw Raw Exceptions All, Analyze, Suggestions, ChangedBehavior 57 23 Minor 0 %
Uncaught Exceptions Analyze, All, ChangedBehavior 75 29 Minor 84 %
Useless Try All, Analyze, ChangedBehavior 3 1 Minor 0 %
Native Alias Functions Usage Analyze, ClearPHP, OneFile, All, Simple, Level 1, CI-checks, ChangedBehavior, CE 1 1 Minor 20 %
Use Named Boolean In Argument Definition All, Analyze, ChangedBehavior 12 8 Minor 84 %
Could Make A Function All, Analyze, Suggestions, ChangedBehavior 20 10 Minor 66 %
Hardcoded Passwords Analyze, OneFile, Security, All, Simple, Level 3, ChangedBehavior 28 12 Major 70 %
Method Is Not An If All, Analyze 3 2 Minor 0 %
Mismatched Default Arguments All, Analyze, Typechecks, ChangedBehavior 1 1 Minor 80 %
Never Called Parameter All, Analyze, Suggestions, Rector, Unused 12 10 Minor 92 %
No Boolean As Default All, Analyze 12 8 Minor 84 %
Should Use Existing Constants Analyze, All, Simple, ChangedBehavior 1 1 Minor 32 %
Unused Parameter Analyze, All, Simple, Unused 1 1 Major 90 %
Unused Returned Value All, Analyze, OneFile, Dead code, Simple, Unused 6 6 Minor 41 %
Useless Return Analyze, OneFile, All, Simple, Level 4 1 1 Minor 30 %
Uses Default Values Analyze, All, Simple, CI-checks, ChangedBehavior, CE 565 94 Minor 98 %
Wrong Argument Type All, Analyze, Typechecks, ChangedBehavior 1 1 Minor 0 %
Wrong Number Of Arguments Analyze, OneFile, All, Simple, CI-checks, Stubs, ChangedBehavior, CE 1 1 Major 81 %
Wrong Type Returned All, Analyze, ClassReview, CI-checks, LintButWontExec, ChangedBehavior, CE 96 83 Minor 0 %
Wrong Type With Call All, Analyze, Typechecks, CI-checks, ChangedBehavior, CE 101 32 Minor 0 %
Forgotten Interface All, Analyze, ChangedBehavior 6 6 Minor 48 %
Undefined Interfaces Analyze, All, CI-checks, LintButWontExec, Undefined, ChangedBehavior, CE 154 77 Major 72 %
Unresolved Use Analyze, ClearPHP, All, Simple, ChangedBehavior 169 83 Major 69 %
Logical To in_array All, Analyze, Level 2, ChangedBehavior 4 1 Minor 67 %
Pre-increment Analyze, Performances, All, Simple, Level 4, CI-checks, ChangedBehavior, CE 4 3 Minor 74 %
Assumptions All, Analyze, ChangedBehavior 2 2 Minor 0 %
Use random_int() Analyze, Security, All, CompatibilityPHP71, Simple, Level 2, CI-checks, ChangedBehavior, CE 5 3 Major 59 %
False To Array Conversion All, LintButWontExec, CompatibilityPHP81, CompatibilityPHP82, Analyze, ChangedBehavior 4 2 Minor 0 %
Wrong Parameter Type Analyze, OneFile, All, Simple, CI-checks, ChangedBehavior, CE 3 3 Major 76 %
Use === null Analyze, OneFile, All, RadwellCodes, Simple, php-cs-fixable, CI-checks, ChangedBehavior, CE 18 12 Minor 53 %
No Null For Native PHP Functions All, Analyze, CompatibilityPHP81, Deprecated, ChangedBehavior 2 2 Minor 0 %
Should Use Coalesce Analyze, All, Simple, Suggestions, Level 3, CI-checks, ChangedBehavior, CE 7 6 Major 71 %
Wrong Type For Native PHP Function All, Analyze, CI-checks, ChangedBehavior, CE 5 5 Minor 0 %
Altering Foreach Without Reference Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 2 2 Major 56 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4, ChangedBehavior 2 1 Minor 64 %
Strict Comparison With Booleans Analyze, All, Simple, Suggestions, Level 2, CI-checks, ChangedBehavior, CE 2 2 Minor 77 %
Buried Assignation Analyze, All, ChangedBehavior 93 88 Minor 84 %
Check All Types All, Analyze, ChangedBehavior 4 4 Major 69 %
Check JSON All, Analyze, CI-checks, CE 12 7 Major 65 %
Common Alternatives Analyze, All, Simple, ChangedBehavior 1 1 Major 80 %
Concat Empty String All, Analyze, OneFile 1 1 Minor 0 %
Don't Change The Blind Var All, Analyze, ChangedBehavior 1 1 Minor 73 %
Double Checks All, Analyze, ChangedBehavior 1 1 Minor 0 %
Drop Else After Return All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks, ChangedBehavior, CE 1 1 Minor 70 %
Else If Versus Elseif Analyze, All, Simple, php-cs-fixable, Rector, CI-checks, CE 3 1 Minor 66 %
Exit() Usage Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks, ChangedBehavior, CE 2 2 Major 61 %
Implied If Analyze, ClearPHP, All, Simple, CI-checks, Rector, ChangedBehavior, CE 93 88 Major 33 %
Long Arguments All, Analyze, ChangedBehavior 3 2 Minor 68 %
Max Level Of Nesting All, Analyze, ChangedBehavior 1 1 Minor 0 %
Missing Assignation In Branches All, Analyze, ChangedBehavior 2 2 Minor 0 %
Multiple Type Variable All, Analyze, Level 4, ChangedBehavior 1 1 Minor 58 %
Nested Ifthen Analyze, All, RadwellCodes, ChangedBehavior 1 1 Major 84 %
No Need For Else All, Analyze, ChangedBehavior 1 1 Minor 74 %
No Null For Index All, Analyze, ChangedBehavior 9 4 Minor 0 %
Avoid Substr() One Analyze, Performances, All, CompatibilityPHP71, Simple, Level 2, Suggestions, Top10, CI-checks, ChangedBehavior, CE 3 3 Minor 58 %
Variable Is Not A Condition All, Analyze, ChangedBehavior 6 4 Minor 93 %
@ Operator Appinfo, ClearPHP, All, Analyze, Performances, CI-checks, ChangedBehavior, CE 2 2 Minor 65 %
Should Chain Exception Analyze, All, Simple, CI-checks, ChangedBehavior, CE 2 1 Minor 39 %
Should Use Ternary Operator All, Analyze, OneFile, Simple, CI-checks, ChangedBehavior, CE 4 3 Minor 86 %
Preprocessable Analyze, All, Rector, ChangedBehavior 12 8 Minor 85 %
Should Use Explode Args All, Analyze, CI-checks, ChangedBehavior, CE 1 1 Minor 0 %
Static Loop Analyze, All, Simple, Level 4, ChangedBehavior 3 3 Minor 67 %
Switch Without Default Analyze, ClearPHP, All, Simple, CI-checks, ChangedBehavior, CE 3 3 Major 69 %
Use Positive Condition All, Analyze, OneFile, Simple, ChangedBehavior 3 3 Minor 82 %
Useless Instructions Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, ChangedBehavior, CE 1 1 Minor 63 %
Useless Parenthesis Analyze, All, Simple, CI-checks, ChangedBehavior, CE 3 3 Minor 81 %
Should Typecast Analyze, OneFile, All, Simple, CI-checks, Rector, ChangedBehavior, CE 7 6 Minor 49 %
Missing Some Returntype All, Typehints, Analyze, CI-checks, ChangedBehavior, CE 2 2 Minor 0 %
Wrong Type With Default All, Analyze, LintButWontExec, ClassReview, ChangedBehavior 136 51 Minor 0 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4, ChangedBehavior, CE 104 21 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple, Unused, ChangedBehavior 5 1 Minor 87 %