Another approach to this that may work for you would be the existing voting plugin:
6 curtidas
Another approach to this that may work for you would be the existing voting plugin: