Transiting extrasolar planets are now discovered jointly by photometric surveys and by radial velocimetry , allowing measurements of their radius and mass . We want to determine whether the different data sets are compatible between themselves and with models of the evolution of extrasolar planets . We further want to determine whether to expect a population of dense Jupiter-mass planets to be detected by future more sensitive transit surveys . We simulate directly a population of stars corresponding to the OGLE transit survey and assign them planetary companions based on a list of 153 extrasolar planets discovered by radial velocimetry . We use a model of the evolution and structure of giant planets that assumes that they are made of hydrogen and helium and of a variable fraction of heavy elements ( between 0 and 100 M _ { \oplus } ) . The output list of detectable planets of the simulations is compared to the real detections . We confirm that the radial velocimetry and photometric survey data sets are compatible within the statistical errors , assuming that planets with periods between 1 and 2 days are approximately 5 times less frequent than planets with periods between 2 and 5 days . We show that evolution models fitting present observational constraints predict a lack of small giant planets with large masses . As a side result of the study , we identify two distinct populations of planets : those with short periods ( P < 10 d ) , which are only found in orbit around metal-rich stars with [ Fe / H ] > \sim - 0.07 , and those on longer orbits ( P > 10 d ) , for which the metallicity bias is less marked . We further confirm the relative absence of low-mass giant planets at small orbital distances . Testing these results and the underlying planetary evolution models requires the detection of a statistically significant number of transiting planets , which should be provided over the next few years by continued ground-based photometric surveys , the space missions CoRoT and Kepler , and combined radial velocity measurements .