The original answer drifted off-topic into a real-world analogy, so here's a more useful take. Getting a "perfect town" in Animal Crossing games generally means keeping your town beautiful and thriving, which the game tracks based on factors like cleanliness, greenery, and public works projects.
To improve your town's rating, plant plenty of trees and flowers, keep the ground free of weeds and litter, and add public works projects like benches, streetlights, and fountains through the town's civic options. Talk to your neighbors and keep the environment tidy every day. Over time, consistent care will push your town toward that perfect status.