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.
TestBash Brighton 2025 image
On the 1st & 2nd of October 2025 we're back in Brighton for TestBash: the largest software testing conference in the UK
Explore MoT
Xray AI in action: Test Case & Model Generation for modern QA teams image
Wed, 17 Sep
with Ivan Fillipov, Solution Architect at Xray
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.
Leading with Quality
A one-day educational experience to help business lead with expanding quality engineering and testing practices.
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.