• Resolved forprofile

    (@forprofile)


    Hello!

    I use this plugin for one of my sites, but the members noticed something. The percentage of the votes is wrong. The total is not 100% which should be. In some polls is 116%, in others 250% etc.

    Here are the printscreens: http://i.imgur.com/8qcrsCI.jpg (the poll results)
    http://i.imgur.com/XUsrPTC.jpg (the comment from a member)

    What should I do? I check other polls with more choices and the total percentage is more than 250%. O_O

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Lester Chan

    (@gamerz)

    If you allow multiple options to be selected, it will never be 100%.

    For poll with multiple answers selection, we should divide it by the voters. For single answer poll, total votes == total voters.

    Some discussion https://github.com/lesterchan/wp-polls/pull/73

    Thread Starter forprofile

    (@forprofile)

    For multiple option answers, shouldn’t the total be still 100%?

    It should be divided by the numbers of votes not by the numbers of voters. It makes no sense if the total percentage exceeds 100%, that is even hilarious. Who would even want to check a poll which doesn’t display the correct percentages of votes?

    Plugin Author Lester Chan

    (@gamerz)

    To be honest, this has always been the plugin behavior for more than a decade. I have no idea why no one brought it out to debate till recently.

    I have make the fix, you can try downloading the zip https://github.com/lesterchan/wp-polls/archive/master.zip and overwrite it on your server. Let me know if it works =)

    Thread Starter forprofile

    (@forprofile)

    Thanks a lot! You rock!

    Now the poll it’s much better! 😀

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Wrong percentage’ is closed to new replies.