If your code doesn't work, it could be anything from a minor typo to a bad abstraction based on bad assumptions that requires a full refactor to get correctness and / or minimum acceptable performance.
About 90% of that scale requires sunsetting at least some of your code and doing something differently.
About 90% of that scale requires sunsetting at least some of your code and doing something differently.