This is pedantic, I know, but the location of the static port(s) is not the theoretical pressure level measured in an aircraft.
In a perfect world, you would discover that the elevation of the
pressure transducer that is really what is measured. (For steam gages, the elevation of the altimeter instrument)
The difference is the weight of the air in the tubing between the port and the transducer. This weight is added algebraically to the pressure at the static port.