[wp-meta] [Making WordPress.org] #2606: Inaccurate plugin rating counts
Making WordPress.org
noreply at wordpress.org
Sat Oct 14 14:35:07 UTC 2017
#2606: Inaccurate plugin rating counts
------------------------------+------------------------------------
Reporter: svenl77 | Owner: Otto42
Type: defect | Status: assigned
Priority: normal | Milestone: Plugin Directory v3.0
Component: Plugin Directory | Resolution:
Keywords: needs-patch |
------------------------------+------------------------------------
Comment (by SergeyBiryukov):
Replying to [comment:2 Otto42]:
> This is because the get_star_rating function is using the post_meta,
when it should be calling the existing and centralized ratings code to get
the information correctly.
It used to call `WPORG_Ratings` methods via
`Plugin_Directory::filter_shim_postmeta()` before [4420], but apparently
post meta fields are necessary for search indexing.
Looking at [source:sites/trunk/wordpress.org/public_html/wp-
content/plugins/plugin-directory/jobs/class-meta-sync.php?rev=5449#L54
Meta_Sync::sync_ratings()], the post meta is supposed to be synchronized
with `WPORG_Ratings` data hourly, so the information should eventually be
correct, even though there is some delay.
To reduce confusion and avoid discrepancy between the ratings on support
forums and on plugin page, we could probably trigger a sync right after a
review is archived or marked as spam.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/2606#comment:6>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list