Motion Tracking in After Effects looks like it is vibrating
Motion tracking works best on areas of high contrast.  Maybe the reflections near the rim of the glass are confusing it.  Try tracking from a different part of the glass, eg the base, and see if it works better (you can always use a Null for the track, then parent your objects to that null if the track good but isn't in the exact position you want).