In this work, several designs of lead-based and lead-free perovskite solar cells (PSCs) have been developed and investigated. For the proposed designs, CH3NH3PbI3 (lead-based), FAMASnGeI3, and CsGeI3 (lead-free) are used as absorber materials, [Formula: see text] and NiO have been used as Hole Transport Layer (HTL) materials and TiO2 as Electron Transport Layer (ETL) materials. ETL materials, in general, have more concern with stability issues and HTL materials have more issues with efficiency improvements. The effect of changing thickness, doping density and defect density of the absorber layer, as well as HTL, defect density of absorber/HTL interface and work functions of front and back contacts on the performance of the proposed devices, are investigated. To enhance the device performance, optimization of the device parameters is performed. After optimization of different parameters, it is observed that the lead-based device structure TiO2/CH3NH3PbI3/NiO has a maximum efficiency of 29.94%. Even the corresponding lead-free device structure TiO2/CsGeI3/NiO exhibits a maximum efficiency of 29.19%. Additionally, this study delved into the influence of altering series and shunt resistances, as well as temperature on the operational characteristics of the lead-free optimized device. Such eco-friendly and cost-effective alternatives as lead-free perovskite cells can be very promising for future work.