The one-dimensional software known as solar cell capacitance simulator, commonly called as SCAPS-1D, has been used to study the transition metal dichalcogenide WS2/CdS/ZnO:Al solar cell with WS2 as the absorber layer material. Variations in thickness, ambient temperature, density of defects, and defect charge states have been used to study the photovoltaic performance parameters. So as to achieve increased efficiency, it was shown that the defect concentration in the light absorbing layer needs to be decreased to the lowest achievable values. Additionally, it has been found that the characteristics showing the performance of the solar cells are significantly influenced by the charge type of the defects.