How to add the Popular posts widget in WordPress without a plugin