Many ESLs think they can use it for every situation just because they've heard a rule about one action before another. That happens countless times in English and yet we don't make use of the past perfect.
"what had you done before you got to class today?",
is not a natural use of the past perfect unless there is something in the surrounding context that warrants/justifies its use.
Student or Learner