ATOMS: ALMA three-millimeter observations of massive star-forming regions – II. Compact objects in ACA observations and star formation scaling relations