Yoast / wordpress-seo

Yoast SEO for WordPress
https://yoast.com/wordpress/plugins/seo/
Other
1.75k stars 886 forks source link

Keyphrase in subheading incorrect (classic editor) #14521

Open galbaras opened 4 years ago

galbaras commented 4 years ago

Please give us a description of what happened.

If you look at this page, you will see H2 elements with the text "What students learn from the student leadership camp" and "Book a Student Leadership Camp for Your School", both of which clearly contains the focus keyphrase "student leadership camp".

Having the keyphrase in 2 out of 6 subheadings is 33%, which is more than the 30% documented minimum.

Yoast SEO, however, still shows a red dot for this criterion, with a link to the documentation as the detailed feedback from the test.

Please describe what you expected to happen and why.

I expected 2 keyphrase mentions to be good enough.

On a long page, with lots of subheadings (not this case), I expect this test to accept less than 30% matches in subheadings.

I also expected the detailed output to be more specific, similar to other tests, by specifying the number of keyphrase mentions found vs. expected in subheadings. This will make the plugin's feedback more actionable.

How can we reproduce this behavior?

  1. Install and activate the Classic Editor plugin
  2. Create a new page with the contents of the page linked above
  3. Look at the SEO recommendations

Technical info

Used versions

Djennez commented 4 years ago

Hi @galbaras thanks for your report. Copying your article to a local installation and testing it I was able to reproduce the issue.

fringley commented 4 years ago

I'm also experiencing the same issue. However, I am using the Fusion editor.

From what I can see, if I added an H2 tag of my keyphrase within the first section, then the check turned green and indicated that 1 heading was using my keyphrase.

Other blocks on my page have a number of H2 elements where at least 2 contain the keyphrase, so it appears that they are not being counted.

jayiconcmo commented 2 years ago

I'm getting a similar thing where it is giving me an error because I have too many headings that have the key phrase, although I don't have that keyphrase in any of the headings except the H1 which should not count. It gives the over 75% error message. Interesting when I take the keyphrase from 3 words down to one word, and that one word is found in three of the headings, I get the green. It is almost like there is a math computation that is incorrect in both cases -- the one from the OP and in this case.

I would add that after I talked with one of our internal developers that using the purple highlighting (already on some of the errors) to show what headings are being pulled into the 30-75% algorithm would help. I had the case that I had three worlds in a keyphrase and I thought all three need to be in the heading exactly before being picked up. I assumed that based on the documentation which states "In Yoast SEO, you’ll get a green bullet if you use the key phrase in 30 to 75% of your subheadings." from this page. In my case, one word "online" was found in an extra heading which was part of the fuller keyphrase description "church software online".