In what ways can internal criticism, like targeting 'part-time politicians', influence party unity and electoral performance?

Public criticism within a party may have both positive and negative effects. I want to analyze how such statements can shape internal cohesion and voter perception.