I don't know for sure, but it seems like popularity is connected to recent views/plays, with older views/plays having much less weight and ratings possibly not having any weight at all.