I’ve been at small courts. I wouldn’t assume the court took any of that into consideration.
If the police were willing to make an example out of someone, the judge they work with is likely to do that as well.