The number of stars is based on a combination of:
(1) how many times the profile has been viewed overall, and
(2) how many different people have looked at it in the past year.
Here is a link to the post describing the launch of the star-rating system: https://www.wikitree.com/g2g/905133/will-you-help-us-improve-the-most-visited-profiles?