Plot
After Candace injures her ankle and is stuck in bed, Phineas and Ferb wash the house by spinning it around rapidly as they spray it. Candace passes out from dizziness while reading The Wizard of Oz and wakes up along with Perry the Platypus in the house in an Oz-like dream world, the house crushing Suzy and her red boots. Candace is greeted by the "Patchkins" (Fireside Girls). The Good Witch (Isabella) battle against Doofenwarlock (Doofenshmirtz) who seek revenge upon Candace and Perry for squishing Suzy with the house. Phineas and Ferb pull down the background and tell Candace to "have fun". The Good Witch directs Candace to the Wizard in "Bustopolis" to find your way home, telling her to unwaveringly follow the yellow sidewalk before she floats away.
Along the way, Candace and Perry encounter Baljeet, a "nerd-crow" who wishes to be cool; a tree (Jeremy), who wishes to be a "real boy"; and a lion–tiger–bear hybrid (Buford), who wishes for a sandwich. As the group travels to Bustopolis, Phineas and Ferb offer alternate fun paths to get there, but Candace refuses to leave the yellow sidewalk.
Doofenwarlock captures Candace and Perry so he can take the Mary-Jane Shoes off of her. Perry easily gets out of his trap, and Candace and her friends escape.
The group arrives in Bustopolis, where the Wizard (Linda) gives Baljeet "cool" sunglasses, Buford a ham sandwich, and Jeremy the realization that he was merely wearing a tree costume. Candace clicks her heels three times and repeats, "There's no place like home." Candace wakes up on her bed after her ankle heals up so quickly, where Phineas and Ferb invite her to join them; having learned her lesson, she accepts. Phineas and Ferb once again pull down the screen and say to "have fun".