Main and most common use: describes quality or rank.
They spent the night in a rather second-rate motel on the outskirts of town.
Ils ont passé la nuit dans un motel plutôt médiocre à la périphérie de la ville.
Less frequent, but attested: modifies verbs to mean "in an inferior way."
malEmploi adverbial peu courant ; rend l’idée d’une exécution de mauvaise qualité. The repairs were done second-rate and had to be redone a week later.
Les réparations ont été mal faites et ont dû être refaites une semaine plus tard.