PHP Static analysis for public

Label Recipes Issues Files Severity Frequence
Ambiguous Array Index Analyze, All, Simple, Level 2, Semantics, ChangedBehavior 4 2 Minor 10 %
Null Or Boolean Arrays All, Analyze 22 5 Minor 0 %
Weak Type With Array All, Analyze, ChangedBehavior 58 5 Minor 0 %
Ambiguous Static All, Analyze, Semantics, ChangedBehavior 25 3 Minor 66 %
Avoid Optional Properties All, Analyze, ChangedBehavior 1 1 Major 84 %
Could Be Abstract Class All, Analyze, ClassReview, ChangedBehavior 1 1 Minor 65 %
Class Could Be Final All, Analyze, ClassReview, ChangedBehavior 10 10 Minor 96 %
Method Could Be Static All, Analyze, ClassReview, ChangedBehavior 22 6 Minor 92 %
Could Inject Parameter All, Analyze, ClassReview, ChangedBehavior 1 1 Minor 0 %
Dependant Abstract Classes All, Analyze, ClassReview, ChangedBehavior 1 1 Minor 0 %
Incompatible Signature Methods With Covariance All, Analyze, ChangedBehavior 2 1 Critical 0 %
Method Signature Must Be Compatible All, Analyze, LintButWontExec, ChangedBehavior 2 1 Critical 53 %
Mismatch Properties Typehints All, Analyze, LintButWontExec, ClassReview, ChangedBehavior 4 1 Minor 0 %
Non Nullable Getters All, Analyze, ClassReview, ChangedBehavior 1 1 Minor 0 %
Parent First All, Analyze, Suggestions, ChangedBehavior 1 1 Minor 56 %
Same Name For Property And Method All, Analyze, ClassReview, Semantics, ChangedBehavior 22 4 Minor 0 %
Never Used Properties Analyze, All, Simple, Unused, ChangedBehavior 15 10 Minor 71 %
Scalar Or Object Property All, Analyze 1 1 Minor 32 %
Should Use Local Class Analyze, ClearPHP, All, Simple, ChangedBehavior 51 8 Minor 95 %
Undefined Classes Analyze, All, Stubs, Undefined 316 12 Major 91 %
Undefined static:: Or self:: Analyze, All, Simple, Undefined, ChangedBehavior 17 5 Minor 35 %
Undefined ::class All, Analyze, CI-checks, Undefined, ChangedBehavior, CE 7 3 Major 36 %
Unfinished Object All, Analyze, ClassReview, ChangedBehavior 6 2 Major 0 %
Unreachable Method All, Analyze, Dead code, ClassReview, Unused, ChangedBehavior 2 1 Minor 0 %
Unresolved Classes Analyze, All, Stubs, ChangedBehavior 1 1 Major 76 %
Unresolved Instanceof Analyze, Dead code, ClearPHP, All, Simple, Top10, ChangedBehavior 4 3 Major 48 %
Unused Classes Dead code, All, Simple, Analyze, Unused, ChangedBehavior 1 1 Major 67 %
Unused Public Methods All, Analyze, ChangedBehavior 124 11 Minor 0 %
Use Instanceof Analyze, All, Simple, CI-checks, ChangedBehavior, CE 3 3 Major 63 %
Useless Try All, Analyze, ChangedBehavior 2 1 Minor 0 %
Use Named Boolean In Argument Definition All, Analyze, ChangedBehavior 41 8 Minor 84 %
Could Make A Function All, Analyze, Suggestions, ChangedBehavior 13 5 Minor 66 %
Don't Collect Void All, Analyze, ChangedBehavior 2 1 Minor 0 %
Empty Function Analyze, All, Simple, ChangedBehavior 29 7 Minor 74 %
Fn Argument Variable Confusion All, Analyze, Semantics, ChangedBehavior 1 1 Minor 0 %
Insufficient Typehint All, Analyze, Typechecks, ChangedBehavior 2 2 Major 43 %
Mismatched Default Arguments All, Analyze, Typechecks, ChangedBehavior 21 5 Minor 80 %
Mismatched Typehint All, Analyze, Typechecks, ChangedBehavior 51 4 Major 66 %
Never Called Parameter All, Analyze, Suggestions, Rector, Unused 10 1 Minor 92 %
No Boolean As Default All, Analyze 41 8 Minor 84 %
No Return Used All, Analyze, Suggestions, Level 4, ChangedBehavior 17 4 Minor 69 %
Unused Parameter Analyze, All, Simple, Unused 18 4 Major 90 %
Unused Returned Value All, Analyze, OneFile, Dead code, Simple, Unused 23 4 Minor 41 %
Uses Default Values Analyze, All, Simple, CI-checks, ChangedBehavior, CE 56 5 Minor 98 %
Wrong Number Of Arguments Analyze, OneFile, All, Simple, CI-checks, Stubs, ChangedBehavior, CE 2 2 Major 81 %
Wrong Type Returned All, Analyze, ClassReview, CI-checks, LintButWontExec, ChangedBehavior, CE 101 10 Minor 0 %
Wrong Type With Call All, Analyze, Typechecks, CI-checks, ChangedBehavior, CE 57 5 Minor 0 %
Undefined Interfaces Analyze, All, CI-checks, LintButWontExec, Undefined, ChangedBehavior, CE 39 4 Major 72 %
Should Make Alias Analyze, OneFile, All, Simple, CI-checks, ChangedBehavior, CE 178 13 Minor 46 %
Unresolved Use Analyze, ClearPHP, All, Simple, ChangedBehavior 23 13 Major 69 %
Logical To in_array All, Analyze, Level 2, ChangedBehavior 10 1 Minor 67 %
array_key_exists() Works On Arrays All, CompatibilityPHP74, Analyze, ChangedBehavior, CE 7 3 Minor 0 %
Assumptions All, Analyze, ChangedBehavior 6 3 Minor 0 %
Wrong Parameter Type Analyze, OneFile, All, Simple, CI-checks, ChangedBehavior, CE 5 2 Major 76 %
No Null For Native PHP Functions All, Analyze, CompatibilityPHP81, Deprecated, ChangedBehavior 8 2 Minor 0 %
Scalar Are Not Arrays All, Analyze, CompatibilityPHP74, CI-checks, ChangedBehavior, CE 26 4 Minor 0 %
Wrong Type For Native PHP Function All, Analyze, CI-checks, ChangedBehavior, CE 8 2 Minor 0 %
Altering Foreach Without Reference Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 2 2 Major 56 %
Comparison Is Always The Same All, Analyze, ChangedBehavior 26 5 Minor 0 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4, ChangedBehavior 11 4 Minor 64 %
Buried Assignation Analyze, All, ChangedBehavior 2 2 Minor 84 %
Cast To Boolean Analyze, OneFile, All, Simple, Level 1, ChangedBehavior 2 1 Minor 56 %
Check All Types All, Analyze, ChangedBehavior 5 4 Major 69 %
Common Alternatives Analyze, All, Simple, ChangedBehavior 2 2 Major 80 %
Don't Change The Blind Var All, Analyze, ChangedBehavior 7 5 Minor 73 %
Double Checks All, Analyze, ChangedBehavior 6 3 Minor 0 %
Else If Versus Elseif Analyze, All, Simple, php-cs-fixable, Rector, CI-checks, CE 1 1 Minor 66 %
Indices Are Int Or String Analyze, OneFile, All, Simple, CI-checks, ChangedBehavior, CE 3 1 Major 20 %
Max Level Of Nesting All, Analyze, ChangedBehavior 5 5 Minor 0 %
Merge If Then All, Analyze, CI-checks, ChangedBehavior, CE 5 5 Minor 0 %
Mismatched Ternary Alternatives All, Analyze, Suggestions, Level 4, ChangedBehavior 3 2 Major 64 %
Missing Assignation In Branches All, Analyze, ChangedBehavior 59 9 Minor 0 %
Modernize Empty With Expression All, Analyze, OneFile, Simple, ChangedBehavior 7 4 Minor 63 %
Nested Ifthen Analyze, All, RadwellCodes, ChangedBehavior 23 7 Major 84 %
No Choice Analyze, All, Simple, Level 2, Top10, CI-checks, Rector, ChangedBehavior, CE 24 2 Major 42 %
No Need For Triple Equal All, Analyze, ChangedBehavior 5 2 Minor 0 %
No Null For Index All, Analyze, ChangedBehavior 7 2 Minor 0 %
Variable Is Not A Condition All, Analyze, ChangedBehavior 6 3 Minor 93 %
Non Integer Nor String As Index All, Analyze, ChangedBehavior 3 1 Minor 0 %
Return True False Analyze, All, Simple, Level 1, CI-checks, ChangedBehavior, CE 1 1 Major 46 %
Same Conditions In Condition Analyze, All, Simple, CI-checks, ChangedBehavior, CE 1 1 Critical 55 %
Should Use Ternary Operator All, Analyze, OneFile, Simple, CI-checks, ChangedBehavior, CE 9 3 Minor 86 %
Preprocessable Analyze, All, Rector, ChangedBehavior 8 4 Minor 85 %
Unsupported Types With Operators All, Analyze, CompatibilityPHP80, ChangedBehavior, CE 3 1 Minor 0 %
Use Positive Condition All, Analyze, OneFile, Simple, ChangedBehavior 6 2 Minor 82 %
Useless Coalesce All, Analyze, ChangedBehavior 8 4 Minor 0 %
Useless Instructions Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, ChangedBehavior, CE 24 2 Minor 63 %
Useless Null Coalesce All, Analyze, Typehints, ChangedBehavior 3 1 Minor 0 %
Useless Parenthesis Analyze, All, Simple, CI-checks, ChangedBehavior, CE 34 6 Minor 81 %
Useless Short Ternary All, Analyze, ChangedBehavior 2 1 Minor 0 %
Dependant Trait Analyze, All, Level 3, ChangedBehavior 2 2 Minor 28 %
Undefined Trait Analyze, All, LintButWontExec, CI-checks, Undefined, ChangedBehavior, CE 5 3 Critical 15 %
Missing Some Returntype All, Typehints, Analyze, CI-checks, ChangedBehavior, CE 5 2 Minor 0 %
StandaloneType True False Null All, Appcontent, Analyze, ChangedBehavior 134 10 Minor 0 %
Wrong Type With Default All, Analyze, LintButWontExec, ClassReview, ChangedBehavior 69 10 Minor 0 %
Assigned Twice All, Analyze, ChangedBehavior 61 4 Minor 79 %
Overwritten Literals Analyze, All, ChangedBehavior 86 4 Major 79 %
Recycled Variables All, Analyze 2 1 Minor 0 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4, ChangedBehavior, CE 496 12 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple, Unused, ChangedBehavior 8 2 Minor 87 %