It also depends on themes. If a book is about something where you expect illustrative colour photos, pictures it may not be enticing to see the cover is plain.
Similarly a front cover with so much gloss, design and fantasy is unlikely to be relevant to an undergraduate student's testbook.
Here we are not talking about the quality of books based on covers but are talking about the covers only. I also know that appearances could be misleading