Grades I think honestly take in account of every factor, amount of objective damage (inhibs, towers, dragons)
and then theres also the KDA factor, getting good KDA is more of an early game thing, if you finish the game below 30 minutes going like 8-0-10 you'll probably
gettin an S or S- but then theres also farm
you need a good 70+ farm per 10 minutes for a good grade (jungle works differently)
damage to champs probably also takes an affect and I think one of the last things that also takes an affect on your grade is the champ you play, if you do really good with a higher win rate champ you're more likely not to get an S
and as for Jungle a lot of statements have been made that getting an S in the jungle is harder than any other lane, yesterday i went 12-0-8 as
and had a good 200 farm in like a 32 minute game, but because shes busted and i was jungling and probably didnt do much damage to champs as other people on my team i got an A+.