It doesn't have to be from a Physical hit. It must be from a direct attack in order to activate Aftermath. Earthquake won't trigger it, but Brick Break will. It must make contact. There are a couple of Special Direct Attacks. And no, status will not affect Aftermath.
Source: Experience and Bulbapedia
The special direct attacks that will activate Aftermath: Grass Knot, Trump Card, Petal Dance, Wring Out.