Factories receive ratings based on the number and type of issues documented during inspections over a period, as well as how often the issues recurred and how long it took factory management to resolve them.