image gallery simplified - jQuery plugin. Touch enabled, responsive, justified/cascading/grid layout and it supports pulling in Flickr, Google Photos and self hosted images.
For this feature, you'll also need a server-side program to manage the ratings.
This is beyond the scope of the plugin.
But I'll add features to help you do this yourself in a future release.
New idea/feature: can you integrate rating for photos? (like jRating)