St Mirren went in front in the 38th minute when Miranda's cross was cushioned into the path of Dorman by Wyness and the midfielder swept the ball into the net.
Three minutes later, Michael Carrick swept home the second after Valencia had shown enough vision to cut a pass back into his path rather than drill a cross into crowded penalty area.