PHP Static analysis for public

Label Recipes Issues Files Severity Frequence
Undefined Classes Analyze, All, Stubs, Undefined, IsPHP, IsStub, IsExt 99 1 Major 91 %
Undefined Class Constants Analyze, All, CI-checks, Stubs, LintButWontExec, Undefined, IsPHP, IsStub, IsExt, CE 87 1 Major 62 %
Unresolved Classes Analyze, All, Stubs 27 1 Major 76 %
Unresolved Instanceof Analyze, Dead code, ClearPHP, All, Simple, Top10 3 1 Major 48 %
Use const Analyze, Coding Conventions, All, Top10, CI-checks, CE 20 1 Minor 54 %
Invalid Constant Name Analyze, All, Simple 12 1 Major 51 %
Multiple Constant Definition Analyze, All, Simple, CI-checks, CE 9 1 Minor 41 %
Undefined Constants Analyze, All, Simple, CompatibilityPHP72, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE 16 1 Minor 71 %
Catch Undefined Variable All, Analyze, Undefined 2 1 Minor 0 %
Overwritten Exceptions Analyze, All, Simple, Suggestions, Level 4, CI-checks, CE 1 1 Minor 22 %
Useless Catch All, Analyze, CI-checks, CE 2 1 Minor 44 %
Missing Include All, Analyze 1 1 Critical 65 %
Could Make A Function All, Analyze, Suggestions 80 1 Minor 66 %
Mismatched Typehint All, Analyze, Typechecks 2 1 Major 66 %
Redeclared PHP Functions Analyze, Appinfo, All, Simple, CI-checks, CE 123 1 Minor 26 %
Too Many Local Variables All, Analyze 4 1 Minor 64 %
Undefined Functions Analyze, All, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE 449 1 Major 68 %
Unused Returned Value All, Analyze, OneFile, Dead code, Simple, Unused 9 1 Minor 41 %
Use Constant As Arguments Analyze, All, Simple, CI-checks, CE 7 1 Major 30 %
Uses Default Values Analyze, All, Simple, CI-checks, IsPHP, IsStub, IsExt, CE 141 1 Minor 98 %
Wrong Argument Type All, Analyze, Typechecks 2 1 Minor 0 %
Wrong Type Returned All, Analyze, ClassReview, CI-checks, LintButWontExec, CE 6 1 Minor 0 %
Wrong Type With Call All, Analyze, Typechecks, CI-checks, CE 3 1 Minor 0 %
Undefined Interfaces Analyze, All, CI-checks, LintButWontExec, Undefined, IsPHP, IsStub, IsExt, CE 3 1 Major 72 %
Logical To in_array All, Analyze, Level 2 1 1 Minor 67 %
Assumptions All, Analyze 9 1 Minor 0 %
Use random_int() Analyze, Security, All, CompatibilityPHP71, Simple, Level 2, CI-checks, CE 14 1 Major 59 %
Don't Pollute Global Space All, Analyze 145 1 Minor 0 %
False To Array Conversion All, LintButWontExec, CompatibilityPHP81, CompatibilityPHP82, Analyze 16 1 Minor 0 %
No Class In Global All, Analyze, CI-checks, CE 123 1 Minor 77 %
Should Use Prepared Statement Analyze, Security, All, Simple, CI-checks, CE 42 1 Major 28 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4 30 1 Minor 64 %
Strict Comparison With Booleans Analyze, All, Simple, Suggestions, Level 2, CI-checks, CE 2 1 Minor 77 %
Buried Assignation Analyze, All 9 1 Minor 84 %
Check JSON All, Analyze, CI-checks, CE 2 1 Major 65 %
Common Alternatives Analyze, All, Simple 12 1 Major 80 %
Concat Empty String All, Analyze, OneFile 2 1 Minor 0 %
Could Use str_repeat() All, Analyze, Level 1, Top10, CI-checks, CE 1 1 Minor 14 %
Double Assignation Analyze, All 1 1 Major 59 %
Drop Else After Return All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks, CE 6 1 Minor 70 %
Echo With Concat Performances, Analyze, All, Simple, Suggestions 409 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 5 1 Minor 51 %
Exit() Usage Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks, CE 4 1 Major 61 %
Global Usage Analyze, Appinfo, ClearPHP, All, CE 224 1 Minor 52 %
Htmlentities Calls Analyze, All, Simple, CI-checks, CE 81 1 Major 40 %
Htmlentities Using Default Flag All, Analyze, Simple, CI-checks, ChangedBehavior 83 1 Minor 0 %
Iffectations Analyze, All 26 1 Minor 80 %
Inconsistent Elseif All, Analyze 9 1 Major 73 %
Long Arguments All, Analyze 4 1 Minor 68 %
Max Level Of Nesting All, Analyze 10 1 Minor 0 %
Merge If Then All, Analyze, CI-checks, CE 10 1 Minor 0 %
Modernize Empty With Expression All, Analyze, OneFile, Simple 1 1 Minor 63 %
Nested Ifthen Analyze, All, RadwellCodes 16 1 Major 84 %
Don't Change Incomings Analyze, All 29 1 Minor 44 %
No Need For Else All, Analyze 7 1 Minor 74 %
No Parenthesis For Language Construct Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks, CE 3 1 Minor 62 %
Variable Is Not A Condition All, Analyze 34 1 Minor 93 %
@ Operator Appinfo, ClearPHP, All, Analyze, Performances, CI-checks, CE 1 1 Minor 65 %
include_once() Usage Analyze, Appinfo, All, CE 2 1 Minor 73 %
Print And Die Analyze, All, Simple, CI-checks, CE 2 1 Minor 32 %
Repeated print() Analyze, All, Simple, Suggestions, Level 3, Top10, CI-checks, CE 117 1 Major 50 %
Repeated Regex All, Analyze, Level 1, CI-checks, CE 19 1 Minor 47 %
Results May Be Missing Analyze, All, Simple, CI-checks, CE 1 1 Major 24 %
Return True False Analyze, All, Simple, Level 1, CI-checks, CE 14 1 Major 46 %
Same Conditions In Condition Analyze, All, Simple, CI-checks, CE 1 1 Critical 55 %
Should Use Ternary Operator All, Analyze, OneFile, Simple, CI-checks, CE 37 1 Minor 86 %
Preprocessable Analyze, All, Rector 374 1 Minor 85 %
Static Loop Analyze, All, Simple, Level 4 3 1 Minor 67 %
Switch To Switch Analyze, All, RadwellCodes, Simple 5 1 Minor 58 %
Timestamp Difference Analyze, All, Simple, Level 3, CI-checks, CE 6 1 Major 49 %
Unsupported Types With Operators All, Analyze, CompatibilityPHP80, CE 11 1 Minor 0 %
Use Positive Condition All, Analyze, OneFile, Simple 13 1 Minor 82 %
Use Same Types For Comparisons All, Analyze 20 1 Minor 0 %
Useless Type Casting All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4, CI-checks, CE 42 1 Minor 47 %
Useless Parenthesis Analyze, All, Simple, CI-checks, CE 8 1 Minor 81 %
One Variable String Analyze, All, RadwellCodes, Simple, CI-checks, CE 2 1 Minor 33 %
Should Typecast Analyze, OneFile, All, Simple, CI-checks, Rector, CE 7 1 Minor 49 %
Missing Some Returntype All, Typehints, Analyze, CI-checks, CE 1 1 Minor 0 %
Assigned Twice All, Analyze 104 1 Minor 79 %
Overwritten Literals Analyze, All 104 1 Major 79 %
Undefined Variable All, Analyze, CI-checks, Undefined, CE 1471 1 Minor 77 %
Used Once Variables Analyze, OneFile, All, Simple, Top10 1491 1 Minor 74 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4, CE 154 1 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple, Unused 56 1 Minor 87 %