The usual metric for whether a planet is habitable or not is to ascertain whether liquid water could exist on its surface. Most worlds will either be too cold, too hot or of a type (like Jupiter) that may have no solid surface and be swaddled in noxious gases.