Your left green tomato picture is due to irregular watering. Cracks appear when the soil drys out. You could improve your fruits by keeping an organic covering at the soil base around your plants.
Your right red tomato is the result of the same soil conditions as the first. The lack of water when the fruit is starting to form, if there are round brown or greenish black patches also seen on other fruits. I see a little yellowing on the outer part of your tomato, as well as a crack. Remove these damanged fruits and continue to water the plants.