Using your example as an analysis - what should you have done instead of minraising the flop?

Why was the minraise such a bad play?