(a) In every case in which the county superior court, county probate court, or county magistrate court shall impose a fine, which shall be construed to include costs, for any offense against a criminal or traffic law of this state, or any county ordinance, there shall be imposed as an additional penalty a sum equal to ten percent of the original fine.