Outlets and switches should be replaced if they are loose, cracked, warm to the touch, sparking, or no longer meet current safety standards—especially in older homes.