Not totally correct - lightly armored also gets +27 (+4 from main stat (ideally), +2 from masterwork, +15 from level, +6 from magic enhancement)
Also theres the armor proficiency feats for another +1, so thats +28 now, so almost there.
I still can't account for the 4 points in the attack...