Skip to content

Coding Standards: WordPress DB rules #968

@remyperona

Description

@remyperona

The configuration currently contains a number of global exclusions about WP DB queries. The migration to PHPCSv3 also made new related issues show up in the analysis.

To-Do:

  • Remove the global exclusions from the config file
  • Review the errors showing in the analysis
  • Either fix the issue or ignore it using the inline comment
WordPress.DB.PreparedSQL.InterpolatedNotPrepared
WordPress.DB.DirectDatabaseQuery.DirectQuery 
WordPress.DB.DirectDatabaseQuery.NoCaching
WordPress.DB.PreparedSQL.NotPrepared 
WordPress.DB.DirectDatabaseQuery.SchemaChange 
WordPress.DB.PreparedSQLPlaceholders.UnfinishedPrepare
WordPress.DB.SlowDBQuery.slow_db_query_meta_query
WordPress.DB.SlowDBQuery.slow_db_query_meta_key
WordPress.DB.SlowDBQuery.slow_db_query_meta_value

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions