PHP Static analysis for public

Label Recipes Issues Files Severity Frequence
Null Or Boolean Arrays All, Analyze 3 2 Minor 0 %
Weak Type With Array All, Analyze, ChangedBehavior 110 17 Minor 0 %
Ambiguous Static All, Analyze, Semantics, ChangedBehavior 53 37 Minor 66 %
Ambiguous Visibilities All, Analyze, Semantics, ChangedBehavior 16 12 Minor 70 %
Avoid Optional Properties All, Analyze, ChangedBehavior 1 1 Major 84 %
Class Could Be Final All, Analyze, ClassReview, ChangedBehavior 65 65 Minor 96 %
Method Could Be Static All, Analyze, ClassReview, ChangedBehavior 93 30 Minor 92 %
Empty Classes Analyze, All, Simple, ChangedBehavior 4 4 Minor 60 %
Incompatible Signature Methods With Covariance All, Analyze, ChangedBehavior 1 1 Critical 0 %
Mismatch Properties Typehints All, Analyze, LintButWontExec, ClassReview, ChangedBehavior 19 7 Minor 0 %
New Object Then Immediate Call All, Analyze, ClassReview 3 3 Minor 0 %
No Public Access Analyze, All, ChangedBehavior 1 1 Minor 61 %
Non Nullable Getters All, Analyze, ClassReview, ChangedBehavior 1 1 Minor 0 %
Forgotten Visibility Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 2 2 Minor 42 %
Parent First All, Analyze, Suggestions, ChangedBehavior 1 1 Minor 56 %
Property Could Be Local All, Analyze, ClassReview, ChangedBehavior 8 5 Minor 76 %
Same Name For Property And Method All, Analyze, ClassReview, Semantics, ChangedBehavior 4 3 Minor 0 %
Never Used Properties Analyze, All, Simple, Unused, ChangedBehavior 24 15 Minor 71 %
Property Used In One Method Only All, Analyze, ChangedBehavior 18 9 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 127 49 Minor 95 %
Too Many Dereferencing All, Analyze, ChangedBehavior 13 9 Minor 0 %
Undefined Classes Analyze, All, Stubs, Undefined 241 54 Major 91 %
Undefined Class Constants Analyze, All, CI-checks, Stubs, LintButWontExec, Undefined, ChangedBehavior, CE 2 2 Major 62 %
Undefined Properties Analyze, ClearPHP, All, Simple, CI-checks, CompatibilityPHP82, Undefined, ChangedBehavior, CE 7 2 Major 61 %
Undefined static:: Or self:: Analyze, All, Simple, Undefined, ChangedBehavior 1 1 Minor 35 %
Unfinished Object All, Analyze, ClassReview, ChangedBehavior 5 3 Major 0 %
Unresolved Classes Analyze, All, Stubs, ChangedBehavior 2 2 Major 76 %
Unused Classes Dead code, All, Simple, Analyze, Unused, ChangedBehavior 5 5 Major 67 %
Unused Public Methods All, Analyze, ChangedBehavior 75 17 Minor 0 %
Use ::Class Operator All, Analyze, Performances, Simple, CI-checks, ChangedBehavior, CE 61 2 Minor 71 %
Used Once Property All, Analyze, ChangedBehavior 3 1 Minor 74 %
Useless Abstract Class Analyze, All, Simple, ChangedBehavior 6 6 Minor 33 %
Weak Typing All, Analyze, ChangedBehavior 1 1 Minor 47 %
Illegal Name For Method All, Analyze, OneFile, Simple 15 2 Major 20 %
Wrong Typed Property Default All, Analyze, LintButWontExec, ClassReview, CI-checks, CE 4 2 Minor 0 %
Throw Raw Exceptions All, Analyze, Suggestions, ChangedBehavior 4 2 Minor 0 %
Uncaught Exceptions Analyze, All, ChangedBehavior 4 2 Minor 84 %
Useless Try All, Analyze, ChangedBehavior 1 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 10 9 Minor 84 %
Hardcoded Passwords Analyze, OneFile, Security, All, Simple, Level 3, ChangedBehavior 4 3 Major 70 %
Method Is Not An If All, Analyze 4 4 Minor 0 %
Mismatched Default Arguments All, Analyze, Typechecks, ChangedBehavior 1 1 Minor 80 %
Mismatched Typehint All, Analyze, Typechecks, ChangedBehavior 5 3 Major 66 %
Modified Typed Parameter All, Analyze, ClassReview, ChangedBehavior 1 1 Minor 0 %
Never Called Parameter All, Analyze, Suggestions, Rector, Unused 8 8 Minor 92 %
No Boolean As Default All, Analyze 8 7 Minor 84 %
No Return Used All, Analyze, Suggestions, Level 4, ChangedBehavior 6 4 Minor 69 %
Retyped Reference All, Analyze, Typehints, ChangedBehavior 1 1 Major 0 %
Undefined Functions Analyze, All, CI-checks, Stubs, Undefined, CE 47 20 Major 68 %
Unused Parameter Analyze, All, Simple, Unused 11 11 Major 90 %
Unused Inherited Variable In Closure All, Analyze, Dead code, CI-checks, Unused, ChangedBehavior, CE 1 1 Major 23 %
Unused Returned Value All, Analyze, OneFile, Dead code, Simple, Unused 62 17 Minor 41 %
Useless Referenced Argument All, Analyze, ChangedBehavior 2 2 Minor 58 %
Uses Default Values Analyze, All, Simple, CI-checks, ChangedBehavior, CE 75 30 Minor 98 %
Wrong Number Of Arguments Analyze, OneFile, All, Simple, CI-checks, Stubs, ChangedBehavior, CE 3 2 Major 81 %
Wrong Type Returned All, Analyze, ClassReview, CI-checks, LintButWontExec, ChangedBehavior, CE 75 23 Minor 0 %
Wrong Type With Call All, Analyze, Typechecks, CI-checks, ChangedBehavior, CE 28 15 Minor 0 %
Empty Interfaces Analyze, All, Simple, ChangedBehavior 1 1 Minor 41 %
Undefined Interfaces Analyze, All, CI-checks, LintButWontExec, Undefined, ChangedBehavior, CE 30 18 Major 72 %
Hidden Use Expression Analyze, OneFile, All, Simple, CI-checks, ChangedBehavior, CE 1 1 Minor 23 %
Multiple Alias Definitions Analyze, All, Simple, CI-checks, ChangedBehavior, CE 8 8 Minor 44 %
Should Make Alias Analyze, OneFile, All, Simple, CI-checks, ChangedBehavior, CE 2 2 Minor 46 %
Unresolved Use Analyze, ClearPHP, All, Simple, ChangedBehavior 129 72 Major 69 %
Pre-increment Analyze, Performances, All, Simple, Level 4, CI-checks, ChangedBehavior, CE 1 1 Minor 74 %
Assumptions All, Analyze, ChangedBehavior 9 7 Minor 0 %
Use random_int() Analyze, Security, All, CompatibilityPHP71, Simple, Level 2, CI-checks, ChangedBehavior, CE 4 4 Major 59 %
Wrong Parameter Type Analyze, OneFile, All, Simple, CI-checks, ChangedBehavior, CE 2 2 Major 76 %
Scalar Are Not Arrays All, Analyze, CompatibilityPHP74, CI-checks, ChangedBehavior, CE 2 1 Minor 0 %
Avoid Using stdClass All, Analyze, OneFile, Simple, Level 4 2 2 Minor 46 %
Wrong Type For Native PHP Function All, Analyze, CI-checks, ChangedBehavior, CE 9 5 Minor 0 %
Comparison Is Always The Same All, Analyze, ChangedBehavior 2 1 Minor 0 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4, ChangedBehavior 8 7 Minor 64 %
Buried Assignation Analyze, All, ChangedBehavior 2 1 Minor 84 %
Casting Ternary All, Analyze, OneFile, CI-checks, ChangedBehavior, CE 3 2 Major 0 %
Check Division By Zero All, Analyze, ChangedBehavior 2 2 Minor 0 %
Check JSON All, Analyze, CI-checks, CE 18 15 Major 65 %
Don't Mix ++ All, Analyze, ChangedBehavior 2 1 Minor 56 %
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 1 1 Minor 66 %
Empty Json Error All, Analyze, ChangedBehavior 3 3 Minor 0 %
Empty Instructions Dead code, Analyze, All, Simple, ChangedBehavior 1 1 Minor 57 %
Empty Try Catch Analyze, All, Level 3 1 1 Minor 49 %
Forgotten Whitespace Analyze, All, CI-checks, CE 1 1 Minor 16 %
Merge If Then All, Analyze, CI-checks, ChangedBehavior, CE 3 3 Minor 0 %
Mismatched Ternary Alternatives All, Analyze, Suggestions, Level 4, ChangedBehavior 1 1 Major 64 %
Missing Assignation In Branches All, Analyze, ChangedBehavior 3 2 Minor 0 %
Modernize Empty With Expression All, Analyze, OneFile, Simple, ChangedBehavior 3 2 Minor 63 %
No Choice Analyze, All, Simple, Level 2, Top10, CI-checks, Rector, ChangedBehavior, CE 8 4 Major 42 %
No Hardcoded Hash Analyze, Security, All, Simple, ChangedBehavior 79 2 Critical 45 %
No Need For Else All, Analyze, ChangedBehavior 1 1 Minor 74 %
No Need For Triple Equal All, Analyze, ChangedBehavior 1 1 Minor 0 %
Variable Is Not A Condition All, Analyze, ChangedBehavior 12 7 Minor 93 %
Preprocessable Analyze, All, Rector, ChangedBehavior 6 3 Minor 85 %
Timestamp Difference Analyze, All, Simple, Level 3, CI-checks, ChangedBehavior, CE 1 1 Major 49 %
Unsupported Types With Operators All, Analyze, CompatibilityPHP80, ChangedBehavior, CE 1 1 Minor 0 %
Use Positive Condition All, Analyze, OneFile, Simple, ChangedBehavior 2 1 Minor 82 %
Useless Coalesce All, Analyze, ChangedBehavior 1 1 Minor 0 %
Useless Instructions Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, ChangedBehavior, CE 10 6 Minor 63 %
Useless Parenthesis Analyze, All, Simple, CI-checks, ChangedBehavior, CE 3 2 Minor 81 %
var_dump()... Usage Analyze, ClearPHP, Security, All, CI-checks, ChangedBehavior, CE 2 1 Critical 42 %
Cannot Call Static Trait Method Directly All, Analyze, CompatibilityPHP81, CompatibilityPHP82, ChangedBehavior 1 1 Minor 0 %
Dependant Trait Analyze, All, Level 3, ChangedBehavior 1 1 Minor 28 %
Empty Traits Analyze, All, Simple, Dead code, ChangedBehavior 1 1 Minor 12 %
Undefined Trait Analyze, All, LintButWontExec, CI-checks, Undefined, ChangedBehavior, CE 4 4 Critical 15 %
Missing Some Returntype All, Typehints, Analyze, CI-checks, ChangedBehavior, CE 9 6 Minor 0 %
StandaloneType True False Null All, Appcontent, Analyze, ChangedBehavior 32 19 Minor 0 %
Used Once Variables Analyze, OneFile, All, Simple, Top10, ChangedBehavior 1 1 Minor 74 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4, ChangedBehavior, CE 137 32 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple, Unused, ChangedBehavior 4 3 Minor 87 %