The car is shaking because of rough idling or misfires. These issues would appear if haven’t inserted the spark plugs perfectly or the spark plugs have got some damage during the installation.