PHP Static analysis for public

Label Recipes Issues Files Severity Frequence
Append And Assign Arrays All, Internal, Analyze 1 1 Minor 0 %
Non-constant Index In Array Analyze, All, Simple 3 1 Minor 14 %
Weak Type With Array All, Analyze 9 1 Minor 0 %
Abstract Or Implements All, Analyze, LintButWontExec, ChangedBehavior 19 19 Major 24 %
Ambiguous Static All, Analyze, Semantics 17 14 Minor 66 %
Ambiguous Visibilities All, Analyze, Semantics 5 4 Minor 70 %
Avoid Optional Properties All, Analyze 10 5 Major 84 %
Clone With Non-Object All, Analyze, LintButWontExec 3 2 Minor 33 %
Could Be Abstract Class All, Analyze, ClassReview 3 3 Minor 65 %
Class Could Be Final All, Analyze, ClassReview 80 80 Minor 96 %
Method Could Be Static All, Analyze, ClassReview 56 24 Minor 92 %
Cyclic References All, Analyze, ClassReview 1 1 Minor 0 %
Don't Unset Properties All, Analyze, Top10, php-cs-fixable, CI-checks, CE 2 1 Major 42 %
Empty Classes Analyze, All, Simple 2 2 Minor 60 %
Hidden Nullable Typehint All, Analyze, ClassReview 4 4 Minor 0 %
Make Global A Property Analyze, All, Simple 96 39 Minor 37 %
New Object Then Immediate Call All, Analyze, ClassReview 25 14 Minor 0 %
No Public Access Analyze, All 1 1 Minor 61 %
Parent First All, Analyze, Suggestions 3 3 Minor 56 %
Parent Is Not Static All, Analyze, ClassReview 1 1 Major 0 %
Could Use self Analyze, All, Simple, Suggestions, Level 3, ClassReview 1 1 Minor 63 %
Should Use Local Class Analyze, ClearPHP, All, Simple 137 57 Minor 95 %
Undefined Classes Analyze, All, Stubs, Undefined 441 66 Major 91 %
Undefined Class Constants Analyze, All, CI-checks, Stubs, LintButWontExec, Undefined, ChangedBehavior, CE 18 13 Major 62 %
Undefined Parent Analyze, All, Simple, Undefined 9 8 Minor 45 %
Undefined Properties Analyze, ClearPHP, All, Simple, CI-checks, CompatibilityPHP82, Undefined, ChangedBehavior, CE 200 40 Major 61 %
Undefined static:: Or self:: Analyze, All, Simple, Undefined 18 10 Minor 35 %
Unfinished Object All, Analyze, ClassReview 1 1 Major 0 %
Unreachable Method All, Analyze, Dead code, ClassReview, Unused 2 1 Minor 0 %
Unresolved Classes Analyze, All, Stubs 229 46 Major 76 %
Unresolved Instanceof Analyze, Dead code, ClearPHP, All, Simple, Top10 6 2 Major 48 %
Unused Classes Dead code, All, Simple, Analyze, Unused 21 21 Major 67 %
Unused Public Methods All, Analyze, ChangedBehavior 122 55 Minor 0 %
Use ::Class Operator All, Analyze, Performances, Simple, CI-checks, CE 6 4 Minor 71 %
Use const Analyze, Coding Conventions, All, Top10, CI-checks, CE 17 4 Minor 54 %
Multiple Constant Definition Analyze, All, Simple, CI-checks, CE 2 2 Minor 41 %
Undefined Constants Analyze, All, Simple, CompatibilityPHP72, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE 288 46 Minor 71 %
Throw Raw Exceptions All, Analyze, Suggestions 1 1 Minor 0 %
Uncaught Exceptions Analyze, All 5 3 Minor 84 %
Missing Include All, Analyze 13 13 Critical 65 %
Use Named Boolean In Argument Definition All, Analyze 10 7 Minor 84 %
Could Make A Function All, Analyze, Suggestions 354 70 Minor 66 %
Empty Function Analyze, All, Simple 3 3 Minor 74 %
Hardcoded Passwords Analyze, OneFile, Security, All, Simple, Level 3 1 1 Major 70 %
Method Is Not An If All, Analyze 23 14 Minor 0 %
Never Called Parameter All, Analyze, Suggestions, Rector, Unused 1 1 Minor 92 %
No Boolean As Default All, Analyze 8 5 Minor 84 %
Too Many Local Variables All, Analyze 4 4 Minor 64 %
Undefined Functions Analyze, All, CI-checks, Stubs, Undefined, CE 631 67 Major 68 %
Unused Parameter Analyze, All, Simple, Unused 15 7 Major 90 %
Unused Returned Value All, Analyze, OneFile, Dead code, Simple, Unused 10 7 Minor 41 %
Useless Argument All, Analyze 48 16 Minor 0 %
Useless Referenced Argument All, Analyze 1 1 Minor 58 %
Uses Default Values Analyze, All, Simple, CI-checks, IsPHP, IsStub, IsExt, CE 164 31 Minor 98 %
Wrong Argument Type All, Analyze, Typechecks 6 2 Minor 0 %
Wrong Type Returned All, Analyze, ClassReview, CI-checks, LintButWontExec, CE 138 37 Minor 0 %
Wrong Type With Call All, Analyze, Typechecks, CI-checks, CE 63 25 Minor 0 %
Undefined Interfaces Analyze, All, CI-checks, LintButWontExec, Undefined, IsPHP, IsStub, IsExt, CE 52 28 Major 72 %
Multiple Alias Definitions Analyze, All, Simple, CI-checks, CE 2 2 Minor 44 %
Unresolved Use Analyze, ClearPHP, All, Simple, IsPHP, IsStub, IsExt 22 9 Major 69 %
Use With Fully Qualified Name Analyze, Coding Conventions, PHP recommendations, All, Simple 1 1 Minor 18 %
Pre-increment Analyze, Performances, All, Simple, Level 4, CI-checks, CE 4 2 Minor 74 %
strpos() Too Much All, Analyze, CI-checks, CE 4 4 Minor 49 %
array_key_exists() Works On Arrays All, CompatibilityPHP74, Analyze, CE 2 2 Minor 0 %
Assumptions All, Analyze 1 1 Minor 0 %
Don't Pollute Global Space All, Analyze 46 15 Minor 0 %
Wrong Parameter Type Analyze, OneFile, All, Simple, CI-checks, CE 2 1 Major 76 %
Use === null Analyze, OneFile, All, RadwellCodes, Simple, php-cs-fixable, CI-checks, CE 3 2 Minor 53 %
No Class In Global All, Analyze, CI-checks, CE 29 11 Minor 77 %
No Null For Native PHP Functions All, Analyze, CompatibilityPHP81, Deprecated 5 3 Minor 0 %
Avoid Using stdClass All, Analyze, OneFile, Simple, Level 4 41 25 Minor 46 %
Wrong Type For Native PHP Function All, Analyze, CI-checks, CE 2 1 Minor 0 %
Altering Foreach Without Reference Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 1 1 Major 56 %
Comparison Is Always The Same All, Analyze, ChangedBehavior 1 1 Minor 0 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4 38 21 Minor 64 %
Strict Comparison With Booleans Analyze, All, Simple, Suggestions, Level 2, CI-checks, CE 8 6 Minor 77 %
Buried Assignation Analyze, All 13 9 Minor 84 %
Check Division By Zero All, Analyze, ChangedBehavior 2 1 Minor 0 %
Check JSON All, Analyze, CI-checks, CE 40 12 Major 65 %
Common Alternatives Analyze, All, Simple 5 5 Major 80 %
Concat Empty String All, Analyze, OneFile 1 1 Minor 0 %
Could Be Else All, Analyze 1 1 Minor 49 %
Could Be A Static Variable Analyze, OneFile, All, ClassReview, ChangedBehavior 1 1 Major 23 %
Don't Change The Blind Var All, Analyze 3 3 Minor 73 %
Double Assignation Analyze, All 5 3 Major 59 %
Double Instructions Analyze, All, Simple 1 1 Minor 57 %
Double Object Assignation All, Analyze, ClassReview 1 1 Minor 0 %
Drop Else After Return All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks, CE 3 3 Minor 70 %
Echo With Concat Performances, Analyze, All, Simple, Suggestions 1 1 Minor 60 %
Else If Versus Elseif Analyze, All, Simple, php-cs-fixable, Rector, CI-checks, CE 41 16 Minor 66 %
Empty Instructions Dead code, Analyze, All, Simple 1 1 Minor 57 %
Exit() Usage Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks, CE 62 51 Major 61 %
Global Usage Analyze, Appinfo, ClearPHP, All, CE 148 44 Minor 52 %
Htmlentities Using Default Flag All, Analyze, Simple, CI-checks, ChangedBehavior 3 1 Minor 0 %
Identical Case In Switch All, Analyze 2 1 Minor 0 %
Identical Consecutive Expression All, Analyze 2 2 Minor 59 %
If With Same Conditions Analyze, All, Simple, CI-checks, CE 1 1 Major 47 %
Iffectations Analyze, All 90 32 Minor 80 %
Implied If Analyze, ClearPHP, All, Simple, CI-checks, Rector, CE 44 44 Major 33 %
Max Level Of Nesting All, Analyze 5 4 Minor 0 %
Merge If Then All, Analyze, CI-checks, ChangedBehavior, CE 23 14 Minor 0 %
Missing Assignation In Command All, Analyze 54 20 Minor 0 %
Modernize Empty With Expression All, Analyze, OneFile, Simple 6 3 Minor 63 %
Multiple Type Variable All, Analyze, Level 4 2 2 Minor 58 %
Nested Ifthen Analyze, All, RadwellCodes 47 21 Major 84 %
No Choice Analyze, All, Simple, Level 2, Top10, CI-checks, Rector, ChangedBehavior, CE 18 2 Major 42 %
No Hardcoded Hash Analyze, Security, All, Simple 1 1 Critical 45 %
No Need For Else All, Analyze 4 3 Minor 74 %
No Parenthesis For Language Construct Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks, CE 50 37 Minor 62 %
Variable Is Not A Condition All, Analyze 83 30 Minor 93 %
@ Operator Appinfo, ClearPHP, All, Analyze, Performances, CI-checks, CE 1 1 Minor 65 %
include_once() Usage Analyze, Appinfo, All, CE 46 35 Minor 73 %
Print And Die Analyze, All, Simple, CI-checks, CE 7 5 Minor 32 %
Repeated print() Analyze, All, Simple, Suggestions, Level 3, Top10, CI-checks, ChangedBehavior, CE 12 9 Major 50 %
Should Use Ternary Operator All, Analyze, OneFile, Simple, CI-checks, CE 23 12 Minor 86 %
Preprocessable Analyze, All, Rector 52 47 Minor 85 %
Suspicious Comparison All, Analyze, Level 3 3 3 Major 39 %
Switch To Switch Analyze, All, RadwellCodes, Simple 11 1 Minor 58 %
Switch Without Default Analyze, ClearPHP, All, Simple, CI-checks, CE 3 3 Major 69 %
Unsupported Types With Operators All, Analyze, CompatibilityPHP80, CE 2 1 Minor 0 %
Unused Global Analyze, All, Simple, Unused 7 1 Minor 22 %
Use Positive Condition All, Analyze, OneFile, Simple 13 9 Minor 82 %
Useless Global Analyze, OneFile, All, Simple, Level 2 1 1 Minor 27 %
Useless Instructions Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, CE 18 2 Minor 63 %
Useless Null Coalesce All, Analyze, Typehints 24 4 Minor 0 %
Useless Parenthesis Analyze, All, Simple, CI-checks, CE 15 10 Minor 81 %
String May Hold A Variable Analyze, All, Simple 3 2 Minor 59 %
Missing Some Returntype All, Typehints, Analyze, CI-checks, CE 8 5 Minor 0 %
StandaloneType True False Null All, Appcontent, Analyze 1 1 Minor 0 %
Wrong Type With Default All, Analyze, LintButWontExec, ClassReview 11 7 Minor 0 %
Assigned Twice All, Analyze 22 7 Minor 79 %
Overwritten Literals Analyze, All 27 7 Major 79 %
Recycled Variables All, Analyze 4 2 Minor 0 %
Undefined Variable All, Analyze, CI-checks, Undefined, CE 700 97 Minor 77 %
Used Once Variables Analyze, OneFile, All, Simple, Top10 6 6 Minor 74 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4, CE 237 57 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple, Unused 12 4 Minor 87 %