Below you can see the front-view size comparison of the Ricoh WG-30W and Pentax WG-3. The Ricoh WG-30W is clearly the smaller of the two cameras. Its body is 1mm narrower, 2 mm shorter and 3 mm thinner than the Pentax WG-3.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.