To realize a perfect attack, you have to press on X, squarre or triangle when your weapon sparkles.
There is nothing of complicated, and as a perfect attack inflict more damages, you will want to execute it in each battle. This trophy will fall before the end of the 2nd day.