When it comes to performance ratio the standard answer is quite simple. Let's say for example we have a car manufacturer who aims to manufacture $1000$ cars and he just made $900$ so have here $\frac{900}{1000}=90\%$ he has made $90\%$ of his objective.
But in another scenario we have flaws ratio our purpose is $0$ and we have made $10$ flaws so how can we calculate a ratio of the flaws since $\frac{10}{0}$ is not the right answer?
One possibility would be to compute the ratio of flaws to total. So for instance if you had $10$ flaws among $50$ items, your ratio would be $20\%$, with the goal being $0$.