Definition of mediocre: "of only moderate quality; not very good."
Definition of average: "constituting the result obtained by adding together several quantities and then dividing this total by the number of quantities."
Mediocre, by definition, is a disparaging term.