Ravello is a small city, but has many places to visit. If you wish to visit Villa Cimbrone, Villa Rufolo and the Duomo, you should allow at least 4-5 hours. You can combine it with a visit to Amalfi to make for a full day, since they're only 10 minutes apart by bus.