When Candace believes that no one wants to be around her anymore, she quickly steps through Baljeet's portal to Mars, where she is quickly heralded among the martians. Meanwhile, Perry accompanies Dr. Doofenshmirtz to help build his evil contraption for him to stop faster, with slightly less than pleasing results.
Phineas and Ferb help Baljeet build a portal to Mars for a special Summer science fair. Candace competes against another girl for getting a job at Mr. Slushy Burger. Meanwhile, Doofenshmitz builds a bicarbonate volcano for the science fair, in yet another attempt to redeem himself from his embarrassing childhood, where we discover where the -inator suffix originated from.
The boys build a rocket ship to get a good look at a star named for them, and Candace accidentally takes a ride with them just as she is trying to find the courage to ask Jeremy to a dance, while Isabella tries her best to do the same with Phineas. Meanwhile, Perry must stop Dr. Doofenshmirtz, who, not only is conveniently in space too, but has created a massive spacestation in an attempt to get revenge on "Huge-Hands-Hans".
When Doofenshmirtz's brother Roger is elected mayor, he decides to build his own country, where he can rule over everything, but how will he stop him when Perry is having trouble entering his hideout? Meanwhile, Phineas and Ferb, in an attempt to help Isabella see her "first" rainbow, create the Rainbow-enator, which harnesses the power of their breakfast cereal to make the light show. The strangest anomaly of the episode, however, is when Candace and Vanessa manage to get their clothes mixed up at the dry-cleaners, resulting in a backwards day for everyone.
When Isabella falls prey to hiccups, Phineas and Ferb gather the kids together to help scare them out of her, using a remote controlled haunted house. Meanwhile, Doofenshmirtz sets out to destroy his mentor's hideout, so that no one could discover his secrets, but not if Perry has something to say about it!
Perry wants to destroy footage from a traffic camera to keep his identity a secret, as Candace tries to use the film in hopes of proving her brothers create unusual stuff. Then, the guys decide to build the largest bowling ball and pins in the world, while Doofenshmirtz wants to rid the world of rainbows.
Phineas and Ferb decide to do absolutely nothing for the day. Candace questions her purpose in life after realizing that she can't bust her brothers for doing nothing. Meanwhile, Dr. Doofenshmirtz is tired of being the ugliest person around, so he invents a device that can turn anything and anyone ugly.
Upon hearing that her favorite play is being made a movie, Candace rushes to try for the lead, only to see that Phineas and Ferb have become the directors and changed the script to include a little more insanity. Meanwhile, Perry goes to Doofinshmirtz Evil Inc. to find out why Heinz has been so quiet lately.