wp-media / wp-media/imagify-plugin
Coding Standards: WordPress DB rules
Open
Nobody has claimed this yet.
dev initiative
- Dominant language
- PHP
- Stars
- 82
- Forks
- 31
- Avg merge
- 5d 10h
- Merged PRs (30d)
- 9
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the configuration file's global WordPress database exclusions and run the PHPCS v3 analysis to review the listed rules. For each reported issue, either fix it or add an inline ignore; the work is done when the global exclusions are removed and the resulting findings are addressed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- backend, tooling
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100