The cabinet isn't deep enough for size 12 (M) shoes.  You'll have to place the shoes at an angle and you won't be able to store as many shoes.