Section 5. Actions for penalties or forfeitures under penal statutes, if brought by a person to whom the penalty or forfeiture is given in whole or in part, shall be commenced only within one year next after the offence is committed. But if the penalty or forfeiture is given in whole or in part to the commonwealth, an action therefor by or in behalf of the commonwealth may be commenced only within two years next after the offence is committed. This section shall not apply to any action set forth in section five A.