Code Smells

Code Smells image
Code smells are warning signs in code that hint at deeper issues. Code smells aren't necessarily errors but they can make future development harder and increase the risk of bugs.

Examples of code smells could be duplicated code, large classes or long methods i.e. one function, trying to do too much, or methods that are long to understand. These examples highlight that code smells can be introduced by multiple authors from different disciplines and can exist in production code, scripts like one that produces tests data or automated tests.

Engineers can prevent fundamental design flaws, maintainability issues and scalability issues before they become more serious issues by identifying and refactoring code smells. Leaving code smells can contribute to cognitive complexity which can result in engineers spending more time reading and understanding code than contributing to it.
See you at TestBash Brighton 2025. image
Proud TestBash sponsor! Visit the Test Exchange to meet our expert software testing team.
Explore MoT
Plymouth Meetup image
Tue, 14 Oct
Second Plymouth Software QA and Testing Meetup Group in Southway
MoT Software Testing Essentials Certificate image
Boost your career in software testing with the MoT Software Testing Essentials Certificate. Learn essential skills, from basic testing techniques to advanced risk analysis, crafted by industry experts.
This Week in Testing image
Debrief the week in Testing via a community radio show hosted by Simon Tomes and members of the community
Subscribe to our newsletter
We'll keep you up to date on all the testing trends.