PHP Static analysis for public

Label Recipes Issues Files Severity Frequence
Non-constant Index In Array Analyze, All, Simple 1 1 Minor 14 %
Randomly Sorted Arrays All, Analyze, Level 4, Suggestions 15 7 Minor 41 %
Abstract Or Implements All, Analyze, LintButWontExec 11 11 Major 24 %
Ambiguous Static All, Analyze 12 8 Minor 66 %
Ambiguous Visibilities All, Analyze 47 22 Minor 70 %
Avoid Optional Properties All, Analyze 11 5 Major 84 %
Could Be Abstract Class All, Analyze, ClassReview 1 1 Minor 65 %
Class Could Be Final All, Analyze, ClassReview 91 91 Minor 96 %
Method Could Be Static All, Analyze, ClassReview 20 7 Minor 92 %
Could Inject Param All, Analyze, ClassReview 20 4 Minor 0 %
Empty Classes Analyze, All, Simple 2 2 Minor 60 %
Hidden Nullable Typehint All, Analyze, ClassReview 18 12 Minor 0 %
Incompatible Signature Methods With Covariance All, Analyze 1 1 Critical 0 %
Assign Default To Properties Analyze, ClearPHP, All, Simple, Level 2 2 1 Minor 71 %
Method Signature Must Be Compatible All, Analyze, LintButWontExec 26 25 Critical 53 %
No Public Access Analyze, All 8 8 Minor 61 %
Parent First All, Analyze, Suggestions 2 2 Minor 56 %
Never Used Properties Analyze, All, Simple, Unused 16 10 Minor 71 %
Property Used In One Method Only All, Analyze 35 8 Minor 84 %
Could Use self Analyze, All, Simple, Suggestions, Level 3, ClassReview 1 1 Minor 63 %
Should Use Local Class Analyze, ClearPHP, All, Simple 44 16 Minor 95 %
Too Many Injections All, Analyze, Dismell 1 1 Minor 19 %
Undefined Classes Analyze, All, Stubs, Undefined, IsPHP, IsStub, IsExt 543 81 Major 91 %
Undefined Class Constants Analyze, All, CI-checks, Stubs, LintButWontExec, Undefined, IsPHP, IsStub, IsExt, CE 44 8 Major 62 %
Undefined Parent Analyze, All, Simple, Undefined 4 2 Minor 45 %
Undefined Properties Analyze, ClearPHP, All, Simple, CI-checks, Undefined, ChangedBehavior, CE 182 2 Major 61 %
Unfinished Object All, Analyze, ClassReview 48 13 Major 0 %
Unresolved Classes Analyze, All, Stubs 57 12 Major 76 %
Unresolved Instanceof Analyze, Dead code, ClearPHP, All, Simple, Top10 3 3 Major 48 %
Unused Class Constant All, Analyze, ClassReview, Unused 11 4 Minor 0 %
Unused Public Method All, Analyze 304 77 Minor 0 %
Use ::Class Operator All, Analyze, Performances, Simple, CI-checks, CE 4 4 Minor 71 %
Useless Constructor Analyze, All, Simple, Level 3 2 2 Minor 41 %
Weak Typing All, Analyze 3 2 Minor 47 %
Undefined Constants Analyze, All, Simple, CompatibilityPHP72, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE 52 17 Minor 71 %
Catch Undefined Variable All, Analyze, Undefined 4 1 Minor 0 %
Throw Raw Exceptions All, Analyze, Suggestions 5 3 Minor 0 %
Uncaught Exceptions Analyze, All 5 3 Minor 84 %
Useless Catch All, Analyze, CI-checks, CE 2 2 Minor 44 %
Missing Include All, Analyze 4 2 Critical 65 %
Use Named Boolean In Argument Definition All, Analyze 6 5 Minor 84 %
Could Make A Function All, Analyze, Suggestions 11 11 Minor 66 %
Dont Collect Void All, Analyze, IsPHP, IsStub, IsExt 18 3 Minor 0 %
Empty Function Analyze, All, Simple 2 2 Minor 74 %
Hardcoded Passwords Analyze, OneFile, Security, All, Simple, Level 3 23 2 Major 70 %
Mismatched Typehint All, Analyze, Typechecks 2 2 Major 66 %
Never Called Parameter All, Analyze, Suggestions, Rector, Unused 2 1 Minor 92 %
No Boolean As Default All, Analyze 6 5 Minor 84 %
No Return Used All, Analyze, Suggestions, Level 4 9 4 Minor 69 %
Redeclared PHP Functions Analyze, Appinfo, All, Simple, CI-checks, CE 2 2 Minor 26 %
Relay Function Analyze, All 3 3 Major 84 %
Too Many Local Variables All, Analyze 1 1 Minor 64 %
Undefined Functions Analyze, All, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE 202 47 Major 68 %
Unused Parameter Analyze, All, Simple, Unused 2 2 Major 90 %
Useless Referenced Argument All, Analyze 1 1 Minor 58 %
Uses Default Values Analyze, All, Simple, CI-checks, IsPHP, IsStub, IsExt, CE 15 2 Minor 98 %
Wrong Type Returned All, Analyze, ClassReview, CI-checks, LintButWontExec, CE 21 5 Minor 0 %
Forgotten Interface All, Analyze 3 3 Minor 48 %
Undefined Interfaces Analyze, All, CI-checks, LintButWontExec, Undefined, IsPHP, IsStub, IsExt, CE 16 11 Major 72 %
Useless Interfaces Analyze, ClearPHP, All, Simple, ClassReview, Typechecks 3 3 Minor 59 %
Hidden Use Expression Analyze, OneFile, All, Simple, CI-checks, CE 2 2 Minor 23 %
Multiple Alias Definitions Analyze, All, Simple, CI-checks, CE 11 6 Minor 44 %
Unresolved Use Analyze, ClearPHP, All, Simple, IsPHP, IsStub, IsExt 27 19 Major 69 %
Assumptions All, Analyze 8 5 Minor 0 %
Use random_int() Analyze, Security, All, CompatibilityPHP71, Simple, Level 2, CI-checks, CE 1 1 Major 59 %
Don't Pollute Global Space All, Analyze 42 13 Minor 0 %
No Class In Global All, Analyze, CI-checks, CE 13 13 Minor 77 %
Scalar Are Not Arrays All, Analyze, CompatibilityPHP74, CI-checks, CE 4 1 Minor 0 %
Should Use Coalesce Analyze, All, Simple, Suggestions, Level 3, CI-checks, CE 3 3 Major 71 %
Wrong Type For Native PHP Function All, Analyze, CI-checks, CE 2 1 Minor 0 %
Comparison Is Always True All, Analyze 11 6 Minor 0 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4 12 4 Minor 64 %
Strict Comparison With Booleans Analyze, All, Simple, Suggestions, Level 2, CI-checks, CE 8 1 Minor 77 %
Cast To Boolean Analyze, OneFile, All, Simple, Level 1 3 3 Minor 56 %
Casting Ternary All, Analyze, OneFile, CI-checks, CE 3 1 Major 0 %
Check JSON All, Analyze, CI-checks, CE 1 1 Major 65 %
Common Alternatives Analyze, All, Simple 2 1 Major 80 %
Concat Empty String All, Analyze, OneFile 1 1 Minor 0 %
Could Use __DIR__ Analyze, All, Simple, Suggestions, Level 3, php-cs-fixable, CI-checks, CE 29 3 Major 56 %
Dont Change The Blind Var All, Analyze 2 1 Minor 73 %
Dont Mix ++ All, Analyze 4 3 Minor 56 %
Empty Try Catch Analyze, All, Level 3 1 1 Minor 49 %
Exit() Usage Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks, CE 9 6 Major 61 %
Global Usage Analyze, Appinfo, ClearPHP, All, CE 1 1 Minor 52 %
Iffectations Analyze, All 1 1 Minor 80 %
Long Arguments All, Analyze 1 1 Minor 68 %
Max Level Of Nesting All, Analyze 1 1 Minor 0 %
Mismatched Ternary Alternatives All, Analyze, Suggestions, Level 4 1 1 Major 64 %
Maybe Missing New All, Analyze 6 1 Critical 57 %
Nested Ifthen Analyze, All, RadwellCodes 1 1 Major 84 %
No Choice Analyze, All, Simple, Level 2, Top10, CI-checks, Rector, CE 1 1 Major 42 %
No Hardcoded Hash Analyze, Security, All, Simple 1 1 Critical 45 %
No Hardcoded Ip Analyze, ClearPHP, Security, All, Simple 3 3 Minor 25 %
No Parenthesis For Language Construct Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks, CE 26 3 Minor 62 %
Variable Is Not A Condition All, Analyze 44 26 Minor 93 %
@ Operator Appinfo, ClearPHP, All, Analyze, Performances, CI-checks, CE 1 1 Minor 65 %
Print And Die Analyze, All, Simple, CI-checks, CE 1 1 Minor 32 %
Should Chain Exception Analyze, All, Simple, CI-checks, CE 1 1 Minor 39 %
Should Use Ternary Operator All, Analyze, OneFile, Simple, CI-checks, CE 5 2 Minor 86 %
Preprocessable Analyze, All, Rector 19 6 Minor 85 %
Static Loop Analyze, All, Simple, Level 4 2 2 Minor 67 %
Switch Without Default Analyze, ClearPHP, All, Simple, CI-checks, CE 1 1 Major 69 %
Unpreprocessed Values Analyze, OneFile, ClearPHP, All, Simple 1 1 Minor 30 %
Unsupported Types With Operators All, Analyze, CompatibilityPHP80, CE 5 4 Minor 0 %
Use Constant Instead Of Function PHP recommendations, All, Analyze, php-cs-fixable, CI-checks, CE 29 3 Minor 61 %
Use Positive Condition All, Analyze, OneFile, Simple 3 1 Minor 82 %
Use Same Types For Comparisons All, Analyze 6 2 Minor 0 %
Useless Type Casting All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4, CI-checks, CE 2 2 Minor 47 %
Useless Instructions Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, CE 2 2 Minor 63 %
Useless Parenthesis Analyze, All, Simple, CI-checks, CE 9 3 Minor 81 %
Missing Some Returntype All, Typehints, Analyze, CI-checks, CE 2 2 Minor 0 %
Wrong Type With Default All, Analyze, LintButWontExec, ClassReview 3 2 Minor 0 %
Assigned Twice All, Analyze 5 1 Minor 79 %
Overwritten Literals Analyze, All 5 1 Major 79 %
Used Once Variables Analyze, OneFile, All, Simple, Top10 2 2 Minor 74 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4, CE 7 3 Minor 95 %