Deliberate mistake: Morgan turns on the stereo and starts dancing on the sofa with her doll. She then tosses her doll, which tips over a plant and breaks the glass on a set of French doors. The stereo magically stops the moment the glass breaks.
Plot hole: After Shawn leaves Cory's house to get a pizza, he calls Cory on the phone literally a minute later to tell him that Lenny Dykstra is at the pizza place. There's no way Shawn could have left Cory's house, walked to the pizza place, spotted Dykstra and either asked to use the restaurant's phone or found a pay phone to call Cory in such a short amount of time. (00:13:30 - 00:14:45)
Chosen answer: In the present day, with the United States abiding by more stricter school health laws, for the most part this wouldn't be in school cafeterias as many cannot even have carbonated beverage machines now. However, in the 90s when the show takes place, it wasn't unheard of for there to be coffee machines in the cafeteria of small schools where the teachers eat with the students as we see them do often in the show. The idea being that the cafeteria was small enough so a teacher or hall monitor could catch a student before they could drink the coffee.