PHP Static analysis for TranslatePress-SEO-Pack

Label Recipes Issues Files Severity Frequence
String Initialization All, CompatibilityPHP71 4 3 Minor 33 %
Too Many Array Dimensions All, Analyze 3 2 Minor 0 %
Avoid option arrays in constructors All, Analyze, ClassReview 1 1 Minor 0 %
Class Could Be Final All, Analyze, ClassReview 15 14 Minor 95 %
Method Could Be Static All, Analyze, ClassReview 23 9 Minor 95 %
Cyclic References All, Analyze, ClassReview 9 1 Minor 0 %
Don't Send $this In Constructor All, Analyze 1 1 Minor 39 %
Locally Unused Property Dead code, All, Simple 6 5 Minor 76 %
Make Global A Property Analyze, All, Simple 39 6 Minor 33 %
No Public Access Analyze, All 1 1 Minor 60 %
Forgotten Visibility Analyze, ClearPHP, All, Simple, Level 1, CI-checks 11 4 Minor 42 %
Property Could Be Local All, Analyze, ClassReview 2 2 Minor 71 %
Never Used Properties Analyze, All, Simple 6 5 Minor 72 %
Property Used In One Method Only All, Analyze 10 6 Minor 84 %
Should Use Local Class Analyze, ClearPHP, All, Simple 24 9 Minor 94 %
Undefined Classes Analyze, All 20 10 Major 91 %
Undefined Properties Analyze, ClearPHP, All, Simple, CI-checks 9 2 Major 58 %
Unresolved Classes Analyze, All 9 6 Major 86 %
Unused Methods Dead code, All, Simple 49 11 Minor 95 %
Use Class Operator All, Analyze, Performances, Simple, CI-checks 4 2 Minor 74 %
Use Instanceof Analyze, All, Simple, CI-checks 9 3 Major 63 %
Used Once Property All, Analyze 5 5 Minor 72 %
Useless Constructor Analyze, All, Simple, Level 3 2 1 Minor 38 %
Use const Analyze, Coding Conventions, All, Top10, CI-checks 3 2 Minor 57 %
Constants With Strange Names Analyze, All, Simple, CI-checks 3 2 Minor 1 %
Invalid Constant Name Analyze, All, Simple 3 2 Major 1 %
Undefined Constants Analyze, All, Simple, CompatibilityPHP72, CI-checks 7 3 Minor 54 %
Unused Constants Dead code, All, Simple 2 1 Minor 36 %
Useless Catch All, Analyze, CI-checks 1 1 Minor 47 %
Missing Include All, Analyze 9 3 Critical 61 %
Use Named Boolean In Argument Definition All, Analyze 1 1 Minor 84 %
Could Make A Function All, Analyze, Suggestions 45 2 Minor 75 %
Empty Function Analyze, All, Simple 4 3 Minor 71 %
Mismatched Default Arguments All, Analyze, Typechecks 2 1 Minor 33 %
Never Used Parameter All, Analyze, Suggestions 4 3 Minor 47 %
No Boolean As Default All, Analyze 1 1 Minor 84 %
Relay Function Analyze, All 2 1 Major 83 %
Too Many Local Variables All, Analyze 2 2 Minor 65 %
Undefined Functions Analyze, All, CI-checks 324 15 Major 71 %
Unused Arguments Analyze, All, Simple 11 4 Major 89 %
Uses Default Values Analyze, All, Simple, CI-checks 112 11 Minor 97 %
Methods Without Return All, Analyze 27 12 Minor 0 %
Wrong Number Of Arguments Analyze, OneFile, All, Simple, CI-checks 1 1 Major 38 %
Logical To in_array All, Analyze, Level 2 7 1 Minor 66 %
Pre-increment Analyze, Performances, All, Simple, Level 4, CI-checks 4 3 Minor 74 %
strpos() Too Much All, Analyze, CI-checks 1 1 Minor 46 %
Don't Pollute Global Space All, Analyze 20 14 Minor 0 %
Wrong Parameter Type Analyze, OneFile, All, Simple, CI-checks 1 1 Major 45 %
Use === null Analyze, OneFile, All, RadwellCodes, Simple, php-cs-fixable, CI-checks 5 2 Minor 52 %
No Class In Global All, Analyze, CI-checks 15 14 Minor 78 %
PHP Keywords As Names Analyze, All, Simple 52 7 Major 89 %
Scalar Are Not Arrays All, Analyze, CompatibilityPHP74, CI-checks 3 1 Minor 0 %
Should Use Coalesce Analyze, All, Simple, Suggestions, Level 3, CI-checks 5 1 Major 71 %
Use Nullable Type All, Appinfo, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 4 2 Major 21 %
Avoid Using stdClass All, Analyze, OneFile, Simple, Level 4 2 1 Minor 45 %
Wrong Type For Native PHP Function All, Analyze, CI-checks 1 1 Minor 0 %
Avoid Those Hash Functions Security, All 3 1 Major 60 %
Direct Injection Security, All 1 1 Major 41 %
Should Use Prepared Statement Analyze, Security, All, Simple, CI-checks 1 1 Major 22 %
Altering Foreach Without Reference Analyze, ClearPHP, All, Simple, Level 1, CI-checks 3 1 Major 52 %
Array_merge Needs Array Of Arrays All, Analyze 1 1 Minor 0 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4 2 1 Minor 92 %
Strict Comparison With Booleans Analyze, All, Simple, Suggestions, Level 2, CI-checks 26 5 Minor 76 %
Buried Assignation Analyze, All 1 1 Minor 82 %
Cast To Boolean Analyze, OneFile, All, Simple, Level 1 2 1 Minor 55 %
Check JSON All, Analyze, CI-checks 10 5 Major 64 %
Common Alternatives Analyze, All, Simple 7 2 Major 61 %
Could Be Static Analyze, OneFile, All, ClassReview 4 3 Major 20 %
Could Use __DIR__ Analyze, All, Simple, Suggestions, Level 3, php-cs-fixable, CI-checks 1 1 Major 56 %
Could Use Short Assignation Analyze, OneFile, Performances, All, Simple, CI-checks 1 1 Minor 60 %
Dangling Array References PHP recommendations, Analyze, ClearPHP, All, Simple, Level 1, Top10, CI-checks 1 1 Major 40 %
Dont Change The Blind Var All, Analyze 1 1 Minor 72 %
Drop Else After Return All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks 4 1 Minor 70 %
Echo With Concat Performances, Analyze, All, Simple, Suggestions 3 2 Minor 58 %
Else If Versus Elseif Analyze, All, Simple, php-cs-fixable, Rector, CI-checks 6 1 Minor 65 %
Empty Instructions Dead code, Analyze, All, Simple 20 3 Minor 43 %
Exit() Usage Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks 12 4 Major 60 %
Global Usage Analyze, Appinfo, ClearPHP, All 45 6 Minor 52 %
Htmlentities Calls Analyze, All, Simple, CI-checks 1 1 Major 39 %
Identical Consecutive Expression All, Analyze 1 1 Minor 58 %
If With Same Conditions Analyze, All, Simple, CI-checks 4 2 Major 44 %
Iffectations Analyze, All 2 2 Minor 80 %
Implied If Analyze, ClearPHP, All, Simple, CI-checks 1 1 Major 29 %
Long Arguments All, Analyze 1 1 Minor 67 %
Max Level Of Nesting All, Analyze 11 4 Minor 0 %
Merge If Then All, Analyze, CI-checks 15 2 Minor 0 %
Mismatched Ternary Alternatives All, Analyze, Suggestions, Level 4 1 1 Major 62 %
Modernize Empty With Expression All, Analyze, OneFile, Simple 11 3 Minor 56 %
Multiple Type Variable All, Analyze, Level 4 2 1 Minor 43 %
Nested Ifthen Analyze, All, RadwellCodes 51 5 Major 87 %
No Need For Else All, Analyze 5 1 Minor 74 %
No Parenthesis For Language Construct Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks 3 2 Minor 61 %
Avoid Substr() One Analyze, Performances, All, CompatibilityPHP71, Simple, Level 2, Suggestions, Top10, CI-checks 1 1 Minor 57 %
Variable Is Not A Condition All, Analyze 24 5 Minor 57 %
include_once() Usage Analyze, Appinfo, All 9 2 Minor 73 %
Repeated print() Analyze, All, Simple, Suggestions, Level 3, Top10, CI-checks 1 1 Major 49 %
Return True False Analyze, All, Simple, Level 1, CI-checks 3 2 Major 53 %
Same Conditions In Condition Analyze, All, Simple, CI-checks 2 2 Critical 49 %
Should Make Ternary All, Analyze, OneFile, Simple, CI-checks 14 5 Minor 85 %
Preprocessable Analyze, All, Rector 25 5 Minor 86 %
Unused Global Analyze, All, Simple 1 1 Minor 18 %
Use Constant PHP recommendations, All, Analyze, php-cs-fixable, CI-checks 1 1 Minor 0 %
Use Positive Condition All, Analyze, OneFile, Simple 6 1 Minor 81 %
Useless Check All, Analyze, OneFile, Simple, Level 1, CI-checks 1 1 Minor 48 %
Useless Global Analyze, OneFile, All, Simple, Level 2 5 3 Minor 24 %
Useless Instructions Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks 2 2 Minor 58 %
Useless Parenthesis Analyze, All, Simple, CI-checks 4 3 Minor 81 %
Assigned Twice All, Analyze 14 2 Minor 78 %
Overwritten Literals Analyze, All 16 2 Major 78 %
Undefined Variable All, Analyze, CI-checks 122 7 Minor 77 %
Used Once Variables Analyze, OneFile, All, Simple, Top10 3 3 Minor 87 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4 50 9 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple 15 7 Minor 78 %