The episode title is a parody of William Shakespeare's play, "A Midsummer's Night's Dream". It is also a reference to the Cheech & Chong film Nice Dreams. At the end of the episode Bart is dressed as Puck a character from the play.
Homer plays the instrumental of the song "Low Rider" by the band War on the radio in the truck. This song is used as the theme song for the TV series George Lopez, and also appeared on famous stoner comedies Cheech and Chong's Up in Smoke and Dazed and Confused.
Crazy Cat Lady yelling out to her cats who all enter the Simpson residence is an obvious Tarzan reference.