Make WordPress Core

Opened 12 years ago

Closed 11 years ago

Last modified 11 years ago

#22533 closed defect (bug) (duplicate)

Plugin Rating stars is incorrect

Reported by: pento's profile pento Owned by:
Milestone: Priority: low
Severity: minor Version:
Component: WordPress.org Site Keywords:
Focuses: Cc:

Description

The stars rating doesn't reflect the average rating correctly.

For example:
http://wordpress.org/extend/plugins/automatic-updater/

At the time of reporting, there were 13 ratings: 9*5, 3*4, 1*1, for an average of 4.46, shown correctly in the text as "4.5 out of 5 stars".

The star rating doesn't seem to be using the same number, however - it should be 89.2% (or 90%, if it uses the rounded up "4.5" as the rating), but is showing as 82%.

Change History (4)

#1 @nacin
12 years ago

It's a width of 82 pixels (not percentage) because it is out of 92 pixels. It might look slightly off because of the way the star borders add the slightest bit to the edges, plus pixel rounding, etc.

4.46 / 5 * 92 = 82.064

#2 @pento
12 years ago

I'm totally blaming the jetlag.

The stars image is incorrect, then - 4.5/5 should take up half of the 5th star, but it takes up slightly less.

#3 @samuelsidler
11 years ago

  • Milestone WordPress.org deleted
  • Status changed from new to closed

Migrated to #meta147.

#4 @SergeyBiryukov
11 years ago

  • Resolution set to duplicate
Note: See TracTickets for help on using tickets.