Agree that cooked food will attract rats especially protein and anything derived from animals will lure the rats and perhaps the neighbour's cats too. We add prunings from plants but not woody ones, not weeds as they will multiply when you use the compost. Cardboard and paper, grass cuttings, kitchen waste including fruit and veg skins/peelings, emptying flower pots of peat, whatever you put into your heap try to turn it all or as much as you can 2 or 3 times over the year, adding water if the mix is dry or a lid if the mix is very slippery and damp. You do need some air getting into the heap though.
Posts
Gardening in Central Norfolk on improved gritty moraine over chalk ... free-draining.