To get the best score collect as many candy, Pumpkin Hearts, and Worms as possible! View the Ending Guides sticky for how to get all the endings, and what to look out for. This guide page here has how to get to some of the trickier candy spots but not all.