My compost bins are solid wood with removable fronts for easy access. Every winter, our long tailed intruders get into the bin currently being filled but don't bother with the one which has already "finished".
I added some kitchen waste yesterday and found the holes in the composting material, which were not there last week. I never add cooked food or meat either....the council have provided us with dinky little caddies and biodegradable bags for this...... but that's another topic!
My answer to the rats in the compost, is to give the bin a good old mix with the fork......mind, one did frighten me to death last year by jumping out whilst I was doing this!

I'm not scared of them but ye gods, it made me jump so much, I reckon my feet actually left the ground!
Cheers!