Hello Anon, It would only be appropriate to use present perfect if you said it immediately after learning that "it" was done. Note that the "this" also makes the situation more immediate. It seems you are in the middle - timewise or physically - of whatever was done.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
May I use this phrase "Why have you done this?"?I don't see why not, provided the occasion comes up where it can be used appropriately!