Actually funny story; my last attempt I almost got p rank on but my time went over S to A, so basically I only got S instead of P and had to redo it again; basically to get a P rank, the game judges you by time, aka how long you take to beat the level, how many kills you have (you must kill almost every enemy to get S on that, some secret encounters can be skipped), and style, which is how much style you put in the style meter on the right in total (idk how to better explain style), but yeah, get S in all 3 categories, don’t die once, otherwise you only get S, then you’ll get P rank)