A female employee is hired at the plant. She has an attraction for Homer and Homer must fight his equal attraction for her. In the mean time, Bart becomes an outcast and makes friends with a group of nerds after he is prescribed glasses, scalp salve, special shoes, and throat spray which changes his voice. The name of this episode is similar to a later episode "The Last Temptation of Krust".
Bart plays a prank on the teachers by making all the parking space lines too close to each car and therefore not leaving enough space for the teachers to get out of their cars. Afterwards, Mrs. Krabappel blames Bart for what happened and Bart is forced to answer every question for the rest of the year as punishment. Mrs. Krabappel then tells Bart to read the word 'photosynthesis' on the chalkboard and Bart cannot do it.
Meanwhile, Homer, Lenny, Carl, and Charlie use a claw to grab a worker's bottom; however, the worker is working on something important and a nuclear meltdown occurs when he is grabbed. The nuclear meltdown becomes a potentially fatal disaster when they discover that the emergency exit is actually painted on a wall. After they narrowly escape, Charlie asks Mr. Burns to install a real emergency exit. Mr. Burns decides to fire him instead and Charlie is deported to an unknown land (possibly Saudi Arabia), where he is forced to dance for the people. Dr. Hibbert tells Marge that Bart has a lazy eye and many other disorders which is why he is an underachiever. In the process of addressing Bart's array of maladies, he is turned into a nerd, with orthopedic shoes and thick glasses. Bart then becomes a stereotypical nerd and is picked on by the bullies.
In the meantime, Mr. Burns hired an illegal "alien" named Zutroy to replace Charlie. After Zutroy is arrested by the Department of Labor and deported to his native country, they demand that Mr. Burns to make changes in the Power Plants' policies including hire at least one female worker. Mr. Burns then hires Mindy Simmons, an attractive redhead who Homer quickly develops feelings for. We see Homer suffering from hallucinations involving Mindy, and obsesses over her hinting that he is falling in love with her. Homer goes to Moe's and Barney tells Homer to try to split up with Mindy after reading a bar napkin with the advice. Homer tries to split up with Mindy but fails when he finds out she likes doughnuts, beer, TV, and even makes noises similar to Homer's. It doesn't help when Homer's conscience fails to help when he shows both his 'and' Marge's lives would be better if Homer married Mindy.
Meanwhile, Bart is losing his cool and Martin is able to show Bart the hideout where all nerds go to in order to escape bullies. Mr. Burns is now trying to find out which two employees will go to the energy convention in Capital City but all of them are getting along terribly except for Homer and Mindy and to make matters worse they have to go together. Back at home, Marge tells Bart his two weeks of nerdiness are up and Bart goes back to school, but the bullies still beat him up anyway.
In Capital City, Homer and Mindy share a hotel room. At the convention, Homer and Mindy are crowned King and Queen of Energy and win a prize to Madame Chao's Chinese Restaurant the "sexiest Chinese restaurant in Capital City". There Homer gets a fortune cookie saying 'you will find happiness with a new love', and Homer fears he will dump Marge and marry Mindy. Back at the hotel Mindy and Homer acknowledge their mutual attraction and kiss. Mindy tells Homer to do what his heart is telling him and stands up so we see just her lower half in her red dress. The camera spins around so you still see a womans lower half in a red dress, but it turns out its Marge who Homer has called and invited for a little getaway while he's in Capitol City. Marge finds a whole turkey behind the bed which just cements Homers love for her.