Jar, Looks compliant unless the NEC has changed?
2005 & 2011 NEC allows it under 422.16 if meeting ALL the conditions (1-5).
Number 5 sez the receptacle shall be accessible. NEC definition for accessible is meet, the DW can be removed. DW's have been installed this way for some time. Old school.
Cord can't be over 4-ft long and is appears to be a grounded type, receptacle is in a safe spot and in the same place as the appliance.
I personally like to see the receptacle in the adjacent sink base cabinet but have run across this from time to time.
What's been added is the GFCI and AFCI requirements.
Honestly when did you have to disconnect your DW, when you replaced it right?