WordPress.org

Making WordPress.org

Opened 9 months ago

Closed 8 months ago

#2661 closed defect (fixed)

Plugin Theme: Reviews schema is missing on plugin pages, resulting in missing star ratings in Google

Reported by: Dharm1025 Owned by: ocean90
Milestone: Plugin Directory v3.0 Priority: normal
Component: Plugin Directory Keywords:
Cc:

Description

I have noticed that plugin reviews are not displaying on search results of google.

http://prntscr.com/eqskw8

Attachments (1)

2661-plugin-reviews.png (135.2 KB) - added by ocean90 8 months ago.

Download all attachments as: .zip

Change History (17)

#1 @Dharm1025
9 months ago

  • Component changed from General to Plugin Directory
  • Summary changed from Plugin reviews are missing from search engines (google) to Plugin reviews are missing from search engines (google) after plugin directoy update.

#2 @Otto42
9 months ago

  • Milestone set to Plugin Directory v3 - Future

Yes, the markup we used to have to add that is missing. We'll look into adding it to the new directory as well.

#3 @Otto42
9 months ago

#2662 was marked as a duplicate.

#4 follow-up: @joostdevalk
9 months ago

I'd suggest using a JSON+LD blob instead of the code on the page as in the old directory. See:

https://developers.google.com/search/docs/data-types/reviews#review-snippets

#5 in reply to: ↑ 4 @Otto42
9 months ago

Replying to joostdevalk:

I'd suggest using a JSON+LD blob instead of the code on the page as in the old directory. See:

https://developers.google.com/search/docs/data-types/reviews#review-snippets

Yeah, I saw. That would be a <script type="application/ld+json"> in the head of the single-plugin pages, yes? If so, then this can be added separately, and hooked in with wp_head or some such. No need to directly modify the markup of the theme. Cleaner.

Don't think it will affect the REST plans for the theme, since we only care what Googlebot sees and it should pull the original URLs from the original theme. But it's something to keep in mind, we don't want it seeing the wrong information on the wrong URLs.

#6 @Otto42
9 months ago

  • Owner set to Otto42
  • Status changed from new to accepted

#7 @SergeyBiryukov
9 months ago

  • Summary changed from Plugin reviews are missing from search engines (google) after plugin directoy update. to Reviews schema is missing on plugin pages, resulting in missing star ratings in Google

#8 @Ipstenu
8 months ago

  • Summary changed from Reviews schema is missing on plugin pages, resulting in missing star ratings in Google to Plugin Theme: Reviews schema is missing on plugin pages, resulting in missing star ratings in Google

#9 @ocean90
8 months ago

@joostdevalk What do you think about this markup?

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "SoftwareApplication",
  "applicationCategory": "http://schema.org/OtherApplication",
  "name": "Yoast SEO",
  "description": "WordPress out of the box is already technically quite a good platform for SEO. This was true when Joost wrote his original WordPress SEO article in 20 &hellip;",
  "softwareVersion": "4.6",
  "fileFormat": "application/zip",
  "downloadUrl": "https://downloads.wordpress.org/plugin/wordpress-seo.4.6.zip",
  "author": {
    "@type": "Person",
    "name": "Team Yoast",
    "url": "https://profiles.wordpress.org/yoast"
  },
  "aggregateRating": {
    "@type": "AggregateRating",
    "ratingValue": "5",
    "ratingCount": "15000"
  },
  "interactionStatistic": {
      "@type": "InteractionCounter",
      "interactionType": "http://schema.org/DownloadAction",
      "userInteractionCount": "44199954"
  },
  "offers": {
    "@type": "Offer",
    "price": "0.00",
    "priceCurrency": "USD",
    "seller": {
      "@type": "Organization",
      "name": "WordPress.org",
      "url": "https://wordpress.org"
    }
  }
}
</script>

#10 @joostdevalk
8 months ago

I don't think I'd do softwareApplication, to be honest @ocean90, product is simpler and more likely to get picked up right.

#11 @ocean90
8 months ago

For the records: softwareApplication is what we had used in the old plugin directory.

#12 @joostdevalk
8 months ago

Oh ok, then ehm, go? :-)

#13 @ocean90
8 months ago

Heh, okay. Following an example for Product:

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "Product",
  "name": "Yoast SEO",
  "description": "WordPress out of the box is already technically quite a good platform for SEO. This was true when Joost wrote his original WordPress SEO article in 20 &hellip;",
  "logo": "https://ps.w.org/wordpress-seo/assets/icon-256x256.png",
  "isConsumableFor": {
    "@type": "Product",
    "name": "WordPress",
    "description": "WordPress is open source software you can use to create a beautiful website, blog, or app."
  },
  "aggregateRating": {
    "@type": "AggregateRating",
    "ratingValue": "5",
    "ratingCount": "15000"
  },
  "offers": {
    "@type": "Offer",
    "price": "0.00",
    "priceCurrency": "USD",
    "seller": {
      "@type": "Organization",
      "name": "WordPress.org",
      "url": "https://wordpress.org"
    }
  }
}
</script>

#14 @ocean90
8 months ago

  • Owner changed from Otto42 to ocean90

#15 @ocean90
8 months ago

In 5457:

Plugin Directory: Add markup information (JSON+LD) for front page and plugin pages.

See #2661.

#16 @ocean90
8 months ago

  • Milestone changed from Plugin Directory v3 - Future to Plugin Directory v3.0
  • Resolution set to fixed
  • Status changed from accepted to closed
Note: See TracTickets for help on using tickets.