The closer is almost always the culprit
When a door is reported as broken, the closer is the part that has failed far more often than the lock or the leaf. A worn closer is usually adjustable rather than scrap, and catching it before the door starts slamming saves the frame, the glass and the hinges downstream.