A properly functioning door is one that:
There are other attributes, but for our purposes, these are the important ones.
Level locks (any smart lock, actually) complement a working door; they cannot fix a door that isn’t working properly.
Keep in mind that temperature, age, humidity, earthquakes, etc., affect your door, so you should check your door’s function at least once a year, or as often as your home maintenance schedule calls for.