PHP Static analysis for public

Label Recipes Issues Files Severity Frequence
Null Or Boolean Arrays All, Analyze, ChangedBehavior 3 1 Minor 0 %
Weak Type With Array All, Analyze 28 1 Minor 0 %
Ambiguous Visibilities All, Analyze, Semantics 6 3 Minor 70 %
Class Could Be Final All, Analyze, ClassReview 7 7 Minor 96 %
Method Could Be Static All, Analyze, ClassReview 48 3 Minor 92 %
Could Inject Param All, Analyze, ClassReview 1 1 Minor 0 %
Assign Default To Properties Analyze, ClearPHP, All, Simple, Level 2 6 3 Minor 71 %
Make Global A Property Analyze, All, Simple 34 3 Minor 37 %
Forgotten Visibility Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 1 1 Minor 42 %
Should Use Local Class Analyze, ClearPHP, All, Simple 51 5 Minor 95 %
Undefined Classes Analyze, All, Stubs, Undefined, IsPHP, IsStub, IsExt 6 2 Major 91 %
Undefined Properties Analyze, ClearPHP, All, Simple, CI-checks, CompatibilityPHP82, Undefined, ChangedBehavior, CE 4 1 Major 61 %
Unused Public Method All, Analyze 11 4 Minor 0 %
Use Instanceof Analyze, All, Simple, CI-checks, CE 5 1 Major 63 %
Use const Analyze, Coding Conventions, All, Top10, CI-checks, CE 2 1 Minor 54 %
Undefined Constants Analyze, All, Simple, CompatibilityPHP72, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE 95 3 Minor 71 %
Throw Raw Exceptions All, Analyze, Suggestions 9 1 Minor 0 %
Uncaught Exceptions Analyze, All 9 1 Minor 84 %
Missing Include All, Analyze 11 4 Critical 65 %
Native Alias Functions Usage Analyze, ClearPHP, OneFile, All, Simple, Level 1, CI-checks, CE 2 2 Minor 20 %
Could Make A Function All, Analyze, Suggestions 113 2 Minor 66 %
Dont Collect Void All, Analyze, IsPHP, IsStub, IsExt 2 1 Minor 0 %
Hardcoded Passwords Analyze, OneFile, Security, All, Simple, Level 3 319 1 Major 70 %
Method Is Not An If All, Analyze 26 1 Minor 0 %
Mismatched Default Arguments All, Analyze, Typechecks 1 1 Minor 80 %
Never Called Parameter All, Analyze, Suggestions, Rector, Unused 4 2 Minor 92 %
Relay Function Analyze, All 1 1 Major 84 %
Too Many Local Variables All, Analyze 16 1 Minor 64 %
Undefined Functions Analyze, All, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE 317 8 Major 68 %
Unused Parameter Analyze, All, Simple, Unused 2 1 Major 90 %
Uses Default Values Analyze, All, Simple, CI-checks, IsPHP, IsStub, IsExt, CE 1063 5 Minor 98 %
Wrong Number Of Arguments Analyze, OneFile, All, Simple, CI-checks, Stubs, IsPHP, IsStub, IsExt, CE 4 1 Major 81 %
Wrong Type Returned All, Analyze, ClassReview, CI-checks, LintButWontExec, CE 13 2 Minor 0 %
Logical To in_array All, Analyze, Level 2 12 1 Minor 67 %
Pre-increment Analyze, Performances, All, Simple, Level 4, CI-checks, CE 18 1 Minor 74 %
Don't Pollute Global Space All, Analyze 12 8 Minor 0 %
False To Array Conversion All, LintButWontExec, CompatibilityPHP81, CompatibilityPHP82, Analyze 3 1 Minor 0 %
Wrong Parameter Type Analyze, OneFile, All, Simple, CI-checks, CE 2 1 Major 76 %
Use === null Analyze, OneFile, All, RadwellCodes, Simple, php-cs-fixable, CI-checks, CE 4 1 Minor 53 %
Possible Missing Subpattern All, Analyze, Top10, CI-checks, CE 1 1 Minor 45 %
No Class In Global All, Analyze, CI-checks, CE 10 8 Minor 77 %
No Null For Native PHP Functions All, Analyze, CompatibilityPHP81, Deprecated 32 1 Minor 0 %
Should Use Coalesce Analyze, All, Simple, Suggestions, Level 3, CI-checks, CE 2 1 Major 71 %
Too Many Native Calls All, Analyze, IsPHP, IsExt 1 1 Minor 49 %
Wrong Type For Native PHP Function All, Analyze, CI-checks, CE 18 1 Minor 0 %
Adding Zero Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, Rector, CE 1 1 Minor 69 %
Altering Foreach Without Reference Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 1 1 Major 56 %
Array_merge Needs Array Of Arrays All, Analyze 1 1 Minor 0 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4 18 2 Minor 64 %
Strict Comparison With Booleans Analyze, All, Simple, Suggestions, Level 2, CI-checks, CE 24 1 Minor 77 %
Buried Assignation Analyze, All 3 1 Minor 84 %
Check All Types All, Analyze 5 1 Major 69 %
Check Division By Zero All, Analyze 20 1 Minor 0 %
Check JSON All, Analyze, CI-checks, CE 14 1 Major 65 %
Common Alternatives Analyze, All, Simple 8 1 Major 80 %
Concat Empty String All, Analyze, OneFile 1 1 Minor 0 %
Could Be Else All, Analyze 2 2 Minor 49 %
Could Be Static Analyze, OneFile, All, ClassReview 7 1 Major 23 %
Could Use __DIR__ Analyze, All, Simple, Suggestions, Level 3, php-cs-fixable, CI-checks, CE 8 2 Major 56 %
Could Use Short Assignation Analyze, OneFile, Performances, All, Simple, CI-checks, Rector, CE 3 1 Minor 63 %
Dangling Array References PHP recommendations, Analyze, ClearPHP, All, Simple, Level 1, Top10, CI-checks, CE 2 1 Major 46 %
Dont Change The Blind Var All, Analyze 12 1 Minor 73 %
Double Assignation Analyze, All 7 1 Major 59 %
Double Instructions Analyze, All, Simple 1 1 Minor 57 %
Drop Else After Return All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks, CE 23 1 Minor 70 %
Echo With Concat Performances, Analyze, All, Simple, Suggestions 3 1 Minor 60 %
Else If Versus Elseif Analyze, All, Simple, php-cs-fixable, Rector, CI-checks, CE 2 1 Minor 66 %
Empty Blocks Analyze, All, Simple, CI-checks, CE 44 3 Minor 51 %
Foreach Reference Is Not Modified Analyze, All, Simple, CI-checks, CE 2 1 Minor 24 %
Global Usage Analyze, Appinfo, ClearPHP, All, CE 33 3 Minor 52 %
Htmlentities Calls Analyze, All, Simple, CI-checks, CE 3 1 Major 40 %
Htmlentities Using Default Flag All, Analyze, Simple, CI-checks, ChangedBehavior 3 1 Minor 0 %
If With Same Conditions Analyze, All, Simple, CI-checks, CE 3 2 Major 47 %
Iffectations Analyze, All 3 1 Minor 80 %
Inconsistent Elseif All, Analyze 11 1 Major 73 %
Long Arguments All, Analyze 7 1 Minor 68 %
Max Level Of Nesting All, Analyze 10 1 Minor 0 %
Merge If Then All, Analyze, CI-checks, CE 12 2 Minor 0 %
Missing Assignation In Command All, Analyze 62 1 Minor 0 %
Modernize Empty With Expression All, Analyze, OneFile, Simple 11 1 Minor 63 %
Multiple Type Variable All, Analyze, Level 4 3 1 Minor 58 %
Multiply By One Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, Rector, CE 1 1 Minor 44 %
Nested Ifthen Analyze, All, RadwellCodes 25 1 Major 84 %
No Need For Else All, Analyze 23 1 Minor 74 %
No Parenthesis For Language Construct Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks, CE 1 1 Minor 62 %
Variable Is Not A Condition All, Analyze 8 1 Minor 93 %
@ Operator Appinfo, ClearPHP, All, Analyze, Performances, CI-checks, CE 8 1 Minor 65 %
include_once() Usage Analyze, Appinfo, All, CE 10 4 Minor 73 %
Overwritten Foreach Var All, Analyze, OneFile 1 1 Major 0 %
Repeated Regex All, Analyze, Level 1, CI-checks, CE 5 1 Minor 47 %
Return True False Analyze, All, Simple, Level 1, CI-checks, CE 4 2 Major 46 %
Should Use Ternary Operator All, Analyze, OneFile, Simple, CI-checks, CE 37 2 Minor 86 %
Preprocessable Analyze, All, Rector 87 5 Minor 85 %
Switch To Switch Analyze, All, RadwellCodes, Simple 16 1 Minor 58 %
Switch Without Default Analyze, ClearPHP, All, Simple, CI-checks, CE 7 1 Major 69 %
Unsupported Types With Operators All, Analyze, CompatibilityPHP80, CE 9 1 Minor 0 %
Unused Global Analyze, All, Simple, Unused 1 1 Minor 22 %
Use Constant Instead Of Function PHP recommendations, All, Analyze, php-cs-fixable, CI-checks, CE 9 2 Minor 61 %
Use Positive Condition All, Analyze, OneFile, Simple 27 3 Minor 82 %
Useless Type Casting All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4, CI-checks, CE 2 1 Minor 47 %
Useless Global Analyze, OneFile, All, Simple, Level 2 7 1 Minor 27 %
Useless Parenthesis Analyze, All, Simple, CI-checks, CE 30 1 Minor 81 %
String May Hold A Variable Analyze, All, Simple 15 2 Minor 59 %
Missing Some Returntype All, Typehints, Analyze, CI-checks, CE 2 1 Minor 0 %
Assigned Twice All, Analyze 103 1 Minor 79 %
Overwritten Literals Analyze, All 136 2 Major 79 %
Recycled Variables All, Analyze 4 2 Minor 0 %
Undefined Variable All, Analyze, CI-checks, Undefined, CE 106 1 Minor 77 %
Used Once Variables Analyze, OneFile, All, Simple, Top10 24 2 Minor 74 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4, CE 51 2 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple, Unused 42 2 Minor 87 %