You could make selecting a rating more accessible by adding a role to your list of buttons, and adding a role of radio to each button. Also, an aria-label can be added to the ul so that a screen reader will announce what the group is for.
<ul role="radiogroup" aria-label="rating 1 to 5">
<li><button role="radio">1</button>
....
</ul>
0