Making WordPress.org

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#5010 closed defect (bug) (fixed)

Further improvements to plugin page schema

Reported by: jonoaldersonwp's profile jonoaldersonwp Owned by: dd32's profile dd32
Milestone: Priority: normal
Component: Plugin Directory Keywords: seo
Cc:

Description (last modified by jonoaldersonwp)

On plugin pages like https://en-gb.wordpress.org/plugins/wordpress-seo/, we should make further improvements to the schema.org markup to take advantage of rich(er) search engine results.

Specifically:

  • Alter the @type property to ["SoftwareApplication","Product"].
  • Add an operatingSystem property, with a value of WordPress.
  • Alter the value of applicationCategory to Plugin.
  • Add an image property, where the value is an array containing the (largest version of) the banner image, and the (largest version of) the plugin icon. E.g., ["https://ps.w.org/wordpress-seo/assets/banner-1544x500.png?rev=1843435", "https://ps.w.org/wordpress-seo/assets/icon-256x256.png?rev=1834347"].
    • If either image is not present/set, omit it from the array. If neither are present/set, don't set the image property at all.
  • Add a url property to the offer (the local canonical URL of the plugin)

Change History (7)

#1 @jonoaldersonwp
5 years ago

  • Description modified (diff)

#2 @jonoaldersonwp
5 years ago

#5009 was marked as a duplicate.

#3 @jonoaldersonwp
5 years ago

  • Description modified (diff)

#4 @dd32
5 years ago

  • Owner set to dd32
  • Resolution set to fixed
  • Status changed from new to closed

In 9473:

Plugin Directory: Schema: Enhance the plugins schema to provice richer data.

Props jonoaldersonwp.
Fixes #5010.

#5 @dd32
5 years ago

Deployed, here's the new set of schema warnings:
https://search.google.com/structured-data/testing-tool/u/0/#url=https%3A%2F%2Fen-au.wordpress.org%2Fplugins%2Fwordpress-seo%2F

offers.availability	The availability field is recommended. Please provide a value if available.
offers.priceValidUntil	The priceValidUntil field is recommended. Please provide a value if available.
brand	The brand field is recommended. Please provide a value if available.
review	The review field is recommended. Please provide a value if available.
sku	 The sku field is recommended. Please provide a value if available.
{identifier} This product is missing a global identifier (e.g. isbn, mpn or gtin8). Please see documentation for valid identifiers.

Most of these look like they're the result of adding the Product type.

#6 @jonoaldersonwp
5 years ago

No problem, they're all optional fields. This is super, thanks!

#7 @dd32
5 years ago

In 9699:

Plugin Directory: Avoid a PHP Notice in [9473].

See #5010.

Note: See TracTickets for help on using tickets.