PHP Static analysis for public

Label Recipes Issues Files Severity Frequence
Too Many Array Dimensions All, Analyze 13 3 Minor 0 %
Weak Type With Array All, Analyze 50 9 Minor 0 %
Avoid Optional Properties All, Analyze 2 1 Major 84 %
Class Could Be Final All, Analyze, ClassReview 30 30 Minor 96 %
Method Could Be Static All, Analyze, ClassReview 19 13 Minor 92 %
Could Inject Param All, Analyze, ClassReview 3 2 Minor 0 %
Make Global A Property Analyze, All, Simple 11 2 Minor 37 %
Property Used In One Method Only All, Analyze 12 9 Minor 84 %
Could Use self Analyze, All, Simple, Suggestions, Level 3, ClassReview 4 2 Minor 63 %
Should Use Local Class Analyze, ClearPHP, All, Simple 26 17 Minor 95 %
Undefined Classes Analyze, All, Stubs, Undefined, IsPHP, IsStub, IsExt 116 28 Major 91 %
Undefined Class Constants Analyze, All, CI-checks, Stubs, LintButWontExec, Undefined, IsPHP, IsStub, IsExt, CE 8 1 Major 62 %
Undefined Properties Analyze, ClearPHP, All, Simple, CI-checks, CompatibilityPHP82, Undefined, ChangedBehavior, CE 10 2 Major 61 %
Undefined ::class All, Analyze, CI-checks, Undefined, CE 25 13 Major 36 %
Unfinished Object All, Analyze, ClassReview 23 6 Major 0 %
Unresolved Classes Analyze, All, Stubs 13 7 Major 76 %
Unused Public Method All, Analyze 25 12 Minor 0 %
Use Instanceof Analyze, All, Simple, CI-checks, CE 1 1 Major 63 %
Used Once Property All, Analyze 9 6 Minor 74 %
Useless Constructor Analyze, All, Simple, Level 3 1 1 Minor 41 %
Converted Exceptions All, Analyze 1 1 Minor 0 %
Forgotten Thrown All, Analyze 2 1 Minor 20 %
Throw Raw Exceptions All, Analyze, Suggestions 2 2 Minor 0 %
Uncaught Exceptions Analyze, All 4 3 Minor 84 %
Useless Catch All, Analyze, CI-checks, CE 8 4 Minor 44 %
Useless Try All, Analyze 10 5 Minor 0 %
Empty Function Analyze, All, Simple 6 6 Minor 74 %
Hardcoded Passwords Analyze, OneFile, Security, All, Simple, Level 3 1 1 Major 70 %
Method Is Not An If All, Analyze 3 1 Minor 0 %
Modified Typed Parameter All, Analyze, ClassReview 1 1 Minor 0 %
Unused Returned Value All, Analyze, OneFile, Dead code, Simple, Unused 3 3 Minor 41 %
Useless Argument All, Analyze 12 9 Minor 0 %
Uses Default Values Analyze, All, Simple, CI-checks, IsPHP, IsStub, IsExt, CE 29 16 Minor 98 %
Wrong Type Returned All, Analyze, ClassReview, CI-checks, LintButWontExec, CE 34 14 Minor 0 %
Forgotten Interface All, Analyze 1 1 Minor 48 %
Undefined Interfaces Analyze, All, CI-checks, LintButWontExec, Undefined, IsPHP, IsStub, IsExt, CE 17 11 Major 72 %
Multiple Alias Definitions Analyze, All, Simple, CI-checks, CE 19 19 Minor 44 %
Unresolved Use Analyze, ClearPHP, All, Simple, IsPHP, IsStub, IsExt 91 28 Major 69 %
array_key_exists() Works On Arrays All, CompatibilityPHP74, Analyze, CE 4 1 Minor 0 %
Assumptions All, Analyze 14 5 Minor 0 %
False To Array Conversion All, LintButWontExec, CompatibilityPHP81, CompatibilityPHP82, Analyze 2 1 Minor 0 %
Wrong Parameter Type Analyze, OneFile, All, Simple, CI-checks, CE 1 1 Major 76 %
PHP Native Interfaces and Return Type All, Analyze, LintButWontExec, CompatibilityPHP81, Deprecated 3 3 Minor 0 %
Logical Should Use Symbolic Operators Analyze, OneFile, ClearPHP, All, Simple, Suggestions, Level 2, Top10, php-cs-fixable, CI-checks, CE 2 2 Minor 43 %
PHP Native Class Type Compatibility All, Analyze, CompatibilityPHP81 9 8 Major 0 %
No Null For Native PHP Functions All, Analyze, CompatibilityPHP81, Deprecated 1 1 Minor 0 %
Wrong Type For Native PHP Function All, Analyze, CI-checks, CE 1 1 Minor 0 %
Comparison Is Always The Same All, Analyze 1 1 Minor 0 %
Array_merge Needs Array Of Arrays All, Analyze 1 1 Minor 0 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4 6 3 Minor 64 %
Cast To Boolean Analyze, OneFile, All, Simple, Level 1 1 1 Minor 56 %
Check JSON All, Analyze, CI-checks, CE 1 1 Major 65 %
Dont Change The Blind Var All, Analyze 2 2 Minor 73 %
Drop Else After Return All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks, CE 4 2 Minor 70 %
Empty Try Catch Analyze, All, Level 3 2 2 Minor 49 %
Exit() Usage Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks, CE 2 2 Major 61 %
Global Usage Analyze, Appinfo, ClearPHP, All, CE 16 4 Minor 52 %
Identical Case In Switch All, Analyze 3 1 Minor 0 %
Implied If Analyze, ClearPHP, All, Simple, CI-checks, Rector, CE 2 2 Major 33 %
Merge If Then All, Analyze, CI-checks, CE 1 1 Minor 0 %
Missing Assignation In Command All, Analyze 1 1 Minor 0 %
Modernize Empty With Expression All, Analyze, OneFile, Simple 1 1 Minor 63 %
Nested Ifthen Analyze, All, RadwellCodes 3 1 Major 84 %
No Choice Analyze, All, Simple, Level 2, Top10, CI-checks, Rector, CE 2 2 Major 42 %
No Need For Else All, Analyze 4 2 Minor 74 %
No Need For Triple Equal All, Analyze 2 2 Minor 0 %
No Null For Index All, Analyze 2 1 Minor 0 %
@ Operator Appinfo, ClearPHP, All, Analyze, Performances, CI-checks, CE 2 2 Minor 65 %
Several Instructions On The Same Line Analyze, All 2 1 Major 56 %
Return True False Analyze, All, Simple, Level 1, CI-checks, CE 1 1 Major 46 %
Should Use Ternary Operator All, Analyze, OneFile, Simple, CI-checks, CE 1 1 Minor 86 %
Preprocessable Analyze, All, Rector 4 3 Minor 85 %
Use Positive Condition All, Analyze, OneFile, Simple 6 3 Minor 82 %
Useless Instructions Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, CE 2 2 Minor 63 %
Should Typecast Analyze, OneFile, All, Simple, CI-checks, Rector, CE 7 4 Minor 49 %
Missing Some Returntype All, Typehints, Analyze, CI-checks, CE 1 1 Minor 0 %
StandaloneType True False Null All, Appcontent, Analyze 21 11 Minor 0 %
Undefined Variable All, Analyze, CI-checks, Undefined, CE 1 1 Minor 77 %
Used Once Variables Analyze, OneFile, All, Simple, Top10 1 1 Minor 74 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4, CE 24 7 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple, Unused 3 1 Minor 87 %