Concentrated issues

Here is the list of the lines that generated the most issues.

File Count Analysis
/admin/class-yoast-form.php:35719
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Undefined Classes
  •   Could Inject Parameter
  •   Wrong Type With Default
/config/dependency-injection/deprecated-classes.php:6015
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Unused Parameter
  •   Empty Function
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Wrong Type With Default
  •   Never Called Parameter
/config/dependency-injection/renamed-classes.php:3415
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Unused Parameter
  •   Empty Function
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Wrong Type With Default
  •   Never Called Parameter
/admin/class-yoast-form.php:63014
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Undefined Classes
  •   Could Inject Parameter
  •   Wrong Type With Default
/inc/options/class-wpseo-taxonomy-meta.php:31713
  •   Max Level Of Nesting
  •   Unused Parameter
  •   Should Use Local Class
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Wrong Type With Default
  •   Hidden Nullable Typehint
  •   Method Could Be Static
/inc/class-wpseo-utils.php:46912
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Should Use Local Class
  •   Undefined Classes
  •   Wrong Type With Default
  •   Never Called Parameter
/inc/options/class-wpseo-option-wpseo.php:64212
  •   Unused Parameter
  •   Should Use Local Class
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Wrong Type With Default
  •   Hidden Nullable Typehint
  •   Method Could Be Static
/admin/class-database-proxy.php:13011
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   StandaloneType True False Null
  •   Wrong Type With Default
  •   Hidden Nullable Typehint
/config/dependency-injection/deprecated-classes.php:6311
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Unused Parameter
  •   Empty Function
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Wrong Type With Default
/inc/options/class-wpseo-option-social.php:30711
  •   Unused Parameter
  •   Should Use Local Class
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Wrong Type With Default
  •   Hidden Nullable Typehint
  •   Method Could Be Static
/inc/options/class-wpseo-option-titles.php:74911
  •   Max Level Of Nesting
  •   Too Many Local Variables
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Wrong Type With Default
  •   Hidden Nullable Typehint
/admin/class-admin-user-profile.php:3510
  •   Unused Public Methods
  •   Method Is Not An If
  •   Unused Parameter
  •   Should Use Local Class
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Method Could Be Static
/admin/views/paper-collapsible.php:2610
  •   Variable Is Not A Condition
  •   Useless Parenthesis
  •   Undefined Functions
  •   Used Once Variables (In Scope)
  •   Several Instructions On The Same Line
  •   Undefined Variable
/inc/class-wpseo-admin-bar-menu.php:78910
  •   Make Global A Property
  •   Useless Global
  •   Used Once Variables (In Scope)
  •   Undefined Variable
  •   Global Usage
  •   Could Be A Static Variable
/src/generators/schema/person.php:20510
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Wrong Type With Default
  •   Hidden Nullable Typehint
/src/helpers/url-helper.php:20410
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Should Use Local Class
  •   Undefined Classes
  •   Wrong Type With Default
  •   Hidden Nullable Typehint
  •   Method Could Be Static
/src/integrations/primary-category.php:4510
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Wrong Type With Default
  •   Hidden Nullable Typehint
/admin/capabilities/class-register-capabilities.php:579
  •   Unused Public Methods
  •   Unused Parameter
  •   Should Use Local Class
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Method Could Be Static
/admin/metabox/class-metabox.php:2349
  •   Relay Function
  •   Should Use Local Class
  •   Undefined Classes
  •   Wrong Type With Default
  •   Hidden Nullable Typehint
  •   Method Could Be Static
  •   Never Called Parameter
/config/dependency-injection/custom-loader.php:779
  •   Unused Public Methods
  •   Mismatched Default Arguments
  •   Undefined Classes
  •   Undefined Interfaces
  •   Wrong Type With Default
  •   Hidden Nullable Typehint
/inc/sitemaps/class-sitemaps-cache-validator.php:1699
  •   Unused Parameter
  •   Should Use Local Class
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Wrong Type With Default
  •   Hidden Nullable Typehint
/inc/wpseo-functions.php:249
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Undefined Classes
  •   Wrong Type With Default
/src/commands/cleanup-command.php:799
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Wrong Type With Default
  •   Hidden Nullable Typehint
/src/commands/index-command.php:1719
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Wrong Type With Default
  •   Hidden Nullable Typehint
/src/content-type-visibility/user-interface/content-type-visibility-dismiss-new-route.php:1079
  •   Unused Public Methods
  •   Unused Parameter
  •   Should Use Local Class
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Method Could Be Static
/src/content-type-visibility/user-interface/content-type-visibility-dismiss-new-route.php:1369
  •   Unused Public Methods
  •   Unused Parameter
  •   Should Use Local Class
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Method Could Be Static
/src/deprecated/frontend/frontend.php:1119
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
/src/deprecated/frontend/frontend.php:1989
  •   Unused Public Methods
  •   Unused Parameter
  •   Should Use Local Class
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Method Could Be Static
/src/helpers/meta-helper.php:359
  •   Unused Public Methods
  •   Ambiguous Static
  •   Relay Function
  •   Should Use Local Class
  •   Mismatched Default Arguments
  •   Undefined Classes
  •   Wrong Type With Default
  •   Method Could Be Static
/src/helpers/meta-helper.php:519
  •   Unused Public Methods
  •   Relay Function
  •   Should Use Local Class
  •   Undefined Classes
  •   Wrong Type With Default
  •   Hidden Nullable Typehint
  •   Method Could Be Static
/src/helpers/options-helper.php:249
  •   Ambiguous Static
  •   Relay Function
  •   Should Use Local Class
  •   Undefined Classes
  •   Wrong Type With Default
  •   Hidden Nullable Typehint
  •   Method Could Be Static
  •   Never Called Parameter
/src/helpers/user-helper.php:199
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Should Use Local Class
  •   Undefined Classes
  •   Wrong Type With Default
  •   Method Could Be Static
/admin/tracking/class-tracking.php:908
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Should Use Local Class
  •   Undefined Classes
  •   Wrong Type With Default
  •   Method Could Be Static
/inc/class-rewrite.php:478
  •   Unused Public Methods
  •   Unused Parameter
  •   Should Use Local Class
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Method Could Be Static
/inc/class-wpseo-utils.php:7178
  •   Unused Public Methods
  •   Relay Function
  •   Should Use Local Class
  •   Undefined Classes
  •   Wrong Type With Default
  •   Hidden Nullable Typehint
/inc/wpseo-functions.php:458
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Undefined Classes
  •   Could Inject Parameter
  •   Wrong Type With Default
  •   Hidden Nullable Typehint
/inc/wpseo-functions.php:628
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Mismatched Default Arguments
  •   Undefined Classes
  •   Wrong Type With Default
  •   Hidden Nullable Typehint
/inc/wpseo-functions.php:848
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Mismatched Default Arguments
  •   Undefined Classes
  •   Wrong Type With Default
  •   Never Called Parameter
/src/helpers/post-helper.php:988
  •   Unused Public Methods
  •   Ambiguous Static
  •   Relay Function
  •   Should Use Local Class
  •   Undefined Classes
  •   Wrong Type With Default
  •   Hidden Nullable Typehint
  •   Method Could Be Static
/src/helpers/url-helper.php:208
  •   Unused Public Methods
  •   Should Use Local Class
  •   Undefined Classes
  •   Wrong Type With Default
  •   Hidden Nullable Typehint
  •   Method Could Be Static
/src/integrations/third-party/elementor.php:2418
  •   Should Use Local Class
  •   Undefined Classes
  •   Wrong Type With Default
  •   Hidden Nullable Typehint
  •   Method Could Be Static
  •   Never Called Parameter
/src/presenters/rel-prev-presenter.php:388
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Undefined Classes
  •   Method Could Be Static
  •   Different Argument Counts
  •   Never Called Parameter
/src/services/health-check/myyoast-api-request-factory.php:198
  •   Unused Public Methods
  •   Should Use Local Class
  •   Undefined Classes
  •   Could Inject Parameter
  •   Wrong Type With Default
  •   Method Could Be Static
/admin/class-yoast-network-settings-api.php:327
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Property Used In One Method Only
  •   Undefined Classes
  •   Wrong Type With Default
  •   Unfinished Object
  •   Property Could Be Local
/admin/class-yoast-notification-center.php:277
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Property Used In One Method Only
  •   Undefined Classes
  •   Wrong Type With Default
  •   Unfinished Object
  •   Property Could Be Local
/admin/pages/network.php:187
  •   Wrong Argument Type
  •   Undefined Functions
  •   Wrong Type With Call
  •   Unused Returned Value
  •   Could Make A Function
  •   New Object Then Immediate Call
/admin/views/class-yoast-feature-toggles.php:287
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Property Used In One Method Only
  •   Undefined Classes
  •   Same Name For Property And Method
  •   Wrong Type With Default
  •   Unfinished Object
/admin/views/class-yoast-integration-toggles.php:257
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Property Used In One Method Only
  •   Undefined Classes
  •   Same Name For Property And Method
  •   Wrong Type With Default
  •   Unfinished Object
/inc/class-wpseo-admin-bar-menu.php:2307
  •   Undefined Properties
  •   Undefined Functions
  •   Uses Default Values
  •   Use ::Class Operator
  •   Could Make A Function
  •   Use === null
/inc/class-yoast-dynamic-rewrites.php:327
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Property Used In One Method Only
  •   Undefined Classes
  •   Same Name For Property And Method
  •   Wrong Type With Default
  •   Unfinished Object
/inc/options/class-wpseo-option-social.php:2727
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Should Use Local Class
  •   Undefined Classes
  •   Method Could Be Static
  •   Never Called Parameter
/src/actions/indexing/indexable-post-type-archive-indexation-action.php:797
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Undefined Classes
  •   Different Argument Counts
  •   Missing Some Returntype
/src/helpers/date-helper.php:257
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Should Use Local Class
  •   Undefined Classes
  •   Method Could Be Static
/src/helpers/options-helper.php:367
  •   Unused Public Methods
  •   Ambiguous Static
  •   Relay Function
  •   Should Use Local Class
  •   Undefined Classes
  •   Method Could Be Static
/src/helpers/sanitization-helper.php:367
  •   Unused Public Methods
  •   Ambiguous Static
  •   Should Use Local Class
  •   Undefined Classes
  •   Wrong Type With Default
  •   Method Could Be Static
/src/integrations/third-party/wpml.php:677
  •   Unused Public Methods
  •   Unused Parameter
  •   Should Use Local Class
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Method Could Be Static
/src/surfaces/meta-surface.php:2957
  •   Unused Public Methods
  •   Should Use Local Class
  •   Undefined Classes
  •   Wrong Type With Default
  •   Hidden Nullable Typehint
  •   Method Could Be Static
/admin/class-admin-init.php:2646
  •   Make Global A Property
  •   Useless Global
  •   Used Once Variables (In Scope)
  •   Undefined Variable
  •   Global Usage
  •   Could Be A Static Variable
/admin/class-admin-user-profile.php:826
  •   Unused Public Methods
  •   Unused Parameter
  •   Should Use Local Class
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Method Could Be Static
/admin/class-bulk-editor-list-table.php:976
  •   Ambiguous Visibilities
  •   Property Used In One Method Only
  •   Used Once Property
  •   Undefined Classes
  •   Unfinished Object
  •   Mismatch Properties Typehints
/admin/menu/class-admin-menu.php:536
  •   Make Global A Property
  •   Useless Global
  •   Used Once Variables (In Scope)
  •   Undefined Variable
  •   Global Usage
  •   Could Be A Static Variable
/admin/menu/class-base-menu.php:2776
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Should Use Local Class
  •   Undefined Classes
  •   Method Could Be Static
  •   Never Called Parameter
/admin/metabox/class-metabox.php:1866
  •   Too Many Array Dimensions
  •   Undefined Functions
  •   Weak Type With Array
  •   Indices Are Int Or String
  •   Could Make A Function
  •   Could Use self
/admin/metabox/class-metabox.php:1876
  •   Too Many Array Dimensions
  •   Undefined Functions
  •   Weak Type With Array
  •   Indices Are Int Or String
  •   Could Make A Function
  •   Could Use self
/admin/metabox/class-metabox.php:1926
  •   Too Many Array Dimensions
  •   Undefined Functions
  •   Weak Type With Array
  •   Indices Are Int Or String
  •   Could Make A Function
  •   Could Use self
/admin/metabox/class-metabox.php:2156
  •   Too Many Array Dimensions
  •   Undefined Functions
  •   Weak Type With Array
  •   Indices Are Int Or String
  •   Could Make A Function
  •   Could Use self
/inc/date-helper.php:586
  •   Unused Public Methods
  •   Ambiguous Static
  •   Relay Function
  •   Should Use Local Class
  •   Undefined Classes
  •   Method Could Be Static
/inc/options/class-wpseo-option.php:1076
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Property Used In One Method Only
  •   Undefined Classes
  •   Unfinished Object
  •   Mismatch Properties Typehints
/inc/options/class-wpseo-option.php:4856
  •   Unused Public Methods
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Undefined Classes
  •   Wrong Type With Default
  •   Hidden Nullable Typehint
/src/actions/importing/aioseo/abstract-aioseo-settings-importing-action.php:2026
  •   Check JSON
  •   Modernize Empty With Expression
  •   Undefined Functions
  •   Only Variable Passed By Reference
  •   Uses Default Values
  •   Could Make A Function
/src/deprecated/frontend/frontend.php:1806
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Wrong Type With Default
  •   Hidden Nullable Typehint
  •   Never Called Parameter
/src/deprecated/src/integrations/schema-blocks.php:956
  •   Unused Public Methods
  •   Unused Parameter
  •   Should Use Local Class
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Method Could Be Static
/src/deprecated/src/integrations/third-party/wincher.php:876
  •   Unused Public Methods
  •   Unused Parameter
  •   Should Use Local Class
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Method Could Be Static
/src/deprecated/src/integrations/third-party/wincher.php:1016
  •   Unused Public Methods
  •   Unused Parameter
  •   Should Use Local Class
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Method Could Be Static
/src/deprecated/src/integrations/third-party/wordproof-integration-toggle.php:1356
  •   Unused Public Methods
  •   Unused Parameter
  •   Should Use Local Class
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Method Could Be Static
/src/helpers/date-helper.php:1016
  •   Unused Public Methods
  •   Ambiguous Static
  •   Should Use Local Class
  •   Undefined Classes
  •   Could Inject Parameter
  •   Method Could Be Static
/src/helpers/image-helper.php:3646
  •   Unused Public Methods
  •   Ambiguous Static
  •   Relay Function
  •   Should Use Local Class
  •   Undefined Classes
  •   Method Could Be Static
/src/helpers/sanitization-helper.php:216
  •   Unused Public Methods
  •   Ambiguous Static
  •   Relay Function
  •   Should Use Local Class
  •   Undefined Classes
  •   Method Could Be Static
/src/helpers/taxonomy-helper.php:1146
  •   Unused Public Methods
  •   Ambiguous Static
  •   Should Use Local Class
  •   Undefined Classes
  •   Wrong Type With Default
  •   Method Could Be Static
/src/helpers/url-helper.php:2456
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Should Use Local Class
  •   Undefined Classes
  •   Method Could Be Static
/src/helpers/wordproof-helper.php:666
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Should Use Local Class
  •   Undefined Classes
  •   Method Could Be Static
  •   Never Called Parameter
/src/integrations/admin/activation-cleanup-integration.php:526
  •   Variable Is Not A Condition
  •   Merge If Then
  •   Useless Parenthesis
  •   Bail Out Early
  •   Undefined Constants
  •   Preprocessable
/src/memoizers/meta-tags-context-memoizer.php:1676
  •   Unused Public Methods
  •   Ambiguous Static
  •   No Null For Index
  •   Undefined Classes
  •   Wrong Type With Default
  •   Hidden Nullable Typehint
/src/memoizers/presentation-memoizer.php:766
  •   Unused Public Methods
  •   Ambiguous Static
  •   No Null For Index
  •   Undefined Classes
  •   Wrong Type With Default
  •   Hidden Nullable Typehint
/wp-seo-main.php:1636
  •   Method Is Not An If
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Undefined Classes