A Wigan food factory with terrible hygiene standards has been fined thousands after damning inspections by experts.