Look at elevation gain and surface as well as mileage. A short route can take a long time when it climbs steeply or crosses rough ground. Bring water and basic first-aid supplies, and read the park’s advice about hazards for the area you plan to visit.
Check the forecast for the trail itself. Keep a route map within reach and decide what will make you turn around. On a hot, stormy, or otherwise difficult day, a shorter walk gives you room to change plans before the conditions make the decision for you.