Context. The intensity of the YORP (Yarkovsky, O'Keefe, Radzievskii, and Paddack) effect and its ability to affect the rotational properties of asteroids depend mainly on the size of the body and on its shape. At present, we have a database of about 30 welldefined shapes of real minor bodies (most of them asteroids, but also planetary satellites and cometary nuclei). Aims. In this paper we perform a statistical analysis of how the YORP effect depends on the shape. Methods. We used the Rubincam approximation (i.e. neglecting the effects of a finite thermal conductivity). Results. We show that, among real bodies, the distribution of the YORP types, according to the classification of Vokrouhlický anď Capek, is significantly different from the one obtained in the same paper from theoretical modeling of shapes. A new "type" also comes out. Moreover, we show that the types are strongly correlated with the intensity of the YORP effect (when normalized to eliminate the dependence on the size, and thus only related to the shape).