Off on a slight tangent ...
In situations like this, there's usually an NEC stipulation thatthe length of the cord not exceed 3 or 6 ft. I really diasgree with those requirements.
I disagree because this almost always means you have to go through all manner of contortions to access the plug. Even if you wanted to place the receptacle right next to the appliance, right abobe the counter for easy access, the cord isn't long enough. It's as if the code committees really want to require you to lay atop the counter, twist sideways, and dangle upsied down in the dark as you attempt to plug it in. Tamper resistant? I'd rather they required ILLUMINATED receptacles!
If I had my way, dishwashers would have 10-ft. long cords. Then you could easily plug / unplug them with the unit well clear of the opening. Or, as is more often the case, it would be easy to fish the plug through the hole in the side of the counter.
Some assert that such appliances ought to be hard-wired, using MC or some other method. I disagree. This equipment gets moved for cleaning, worked on by the serviceman, and replaced every few years. I'd prefer not to have the wiring messed with by all these folks. A cord & plug provides a very easy and sure means to disconnect even the 'built in' versions.
Nor am I happy with the usual method of getting MC to the appliance; too often there's simply a long whip exiting the wall. Even if the opening is plastered over, the repair often fails. I NEVER see a box in the wall, with an extension into the room, with the whip attached to the extension. Indeed, it's usually not even MC, but a long whip of Romex coming out a thmbhole in the wall.