A dye-sensitized solar cell based on magnetic CoP@FeP4@Carbon composite counter electrode generated an efficiency of 9.88%