Create a sniff to make sure `wpseo*` options aren't used directly
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Start by locating the Options framework and existing coding-standard sniffs that inspect option access. Trace uses of get_options with wpseo* option names, then add coverage showing that direct access is rejected while framework usage passes.
Written by the indexing model from the issue text.
Description
As we have the Options framework to handle options properly and apply defaults for options that aren't saved yet, we need to make sure this framework is always used instead of directly calling get_options with the option name.
- Dominant language
- PHP
- Stars
- 22
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Contributor guide
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.
More from Yoast/yoastcs
-
Type: enhancement
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
Status: wait for upstream/WordPressCS Type: enhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Prio: 3/Low Type: enhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Status: awaiting feedback Status: blocked Type: enhancement
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Status: awaiting feedback Status: blocked Type: enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
getgrav/grav-plugin-api#45 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
RSS-Bridge/rss-bridge#5098 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
phingofficial/phing#2025 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
silverstripe/developer-docs#911 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100