There's a common belief among certain circles online that what are generally seen as desirable personality traits like being funny are actually just a proxy for attractiveness, meaning the same joke can be seen as hysterical or fall flat depending on the joker's attractiveness or lack thereof.

However according to these studies, ratings of men's attractiveness was affected by their humour ability in that men who were deemed to be physically unattractive beforehand were rated as a lot more attractive when they were funny.

In this one the less physically attractive funny men were rated as almost as highly as the more physically attractive but not funny men (as long as they were also receptive), and higher than funny women despite women having a higher mean attractiveness rating, and it also increased the attractiveness of already attractive men:

Serving as a manipulation check, we found that photographs in the “higher attractiveness” category received higher ratings of physical attractiveness by our experimental participants than the photographs in the “lower attractiveness” category, F(1, 112) = 482.34, p < .001, η2p = .81. Results also revealed that individuals who were high in humor production received higher ratings of physical attractiveness than individuals low in humor production, F(1, 112) = 102.39, p < .001, η2p = .48. Individuals high in humor receptivity were also rated more physically attractive than individuals low in receptivity, F(1, 112) = 115.61, p < .001, η2p = .51. These findings demonstrate that judgments of physical attractiveness can be influenced by information regarding the personality characteristics of individuals.

Results also showed that men gave higher physical attractiveness ratings than women, F(1, 112) = 7.41, p = .008, η2p = .06. There was also a significant interaction between humor production and gender, F(1, 112) = 4.98, p = .03, η2p = .04. Simple effects tests revealed that the effect of humor production on attractiveness was significant for men’s ratings, F(1, 58) = 30.57, p < .001, η2p = .35, but the effect of humor production was much stronger for women’s ratings, F(1, 54) = 78.26, p < .001, η2p = .59.

Despite the importance of physical attractiveness, we only found modest evidence supporting the interest indicator hypothesis. The hypothesis holds that how humor is perceived depends on whether there is an attraction between individuals (Li et al., 2009). People produce humor when they want to indicate they are interested in someone, and if the recipient is attracted to the person, they will respond more positively to the humor that is offered. As a result, humor should boost long-term partner desirability when physical attractiveness is high but not when it is low. The only evidence consistent with this hypothesis was a marginally significant interaction between humor receptivity and attractiveness, with receptivity boosting desirability of the physically attractive individuals more than the less attractive. We did not, however, find an interaction between humor production and physical attractiveness. Instead, humor production caused an increase in desirability of the lower and higher physically attractive individuals equally, as predicted by the fitness indicator hypothesis and the encryption hypothesis.

https://journals.sagepub.com/doi/10.1177/1474704915608744

In this one already attractive men didn't seem to get a boost, but humour did have a positive effect on the less attractive, meaning it could serve as a compensatory trait:

A Context × Target Choice interaction, F(1, 128) = 62.07, p < .001, r = .57, indicated that while attraction decreased nonsignificantly for first-choice targets (pre: M = 7.57, SD = 1.30; post: M = 7.36, SD = 1.45), F(1, 132) = 2.33, p > .10, attraction increased significantly for last-choice targets (pre: M = 2.63, SD = 1.59; post: M = 3.47, SD = 1.85), F(1, 128) = 60.59, p < .001, r = .57.

Thus, candidates’ use of humor in personal introductions did not, on average, increase attraction toward the candidates; however, people became less unattracted toward physically unattractive candidates to whom they initially reported the least romantic attraction.

https://www.researchgate.net/publication/24394032_An_Evolutionary_Perspective_on_Humor_Sexual_Selection_or_Interest_Indication

Then in this study, blind ratings of humour ability predicted mating success:

We measured capacity for producing verbal humor by using blind ratings of participant ability to produce funny captions for cartoons. Participants were given three cartoons without captions from the New Yorker magazine’s cartoon caption contest (cartoons were at least one year old to reduce the possibility of familiarity). They were instructed to write as many funny captions as they could, for all cartoons, in 10 minutes. This open-ended humor production is a reasonably valid measure of spontaneous humor ability (Feingold & Mazzella, 1991; 1993). Later, six judges (four men, two women, all students) rated the funniness of each caption on a scale from 1 (“not funny at all”) to 7 (“very funny”). Judges saw the captions in a randomized order, and were blind to any characteristics of the participants.

For the mating success factor, the final model was significant [F (2, 274) = 73.42, adjusted 2R = 0.35, p < o.001)], with only the sex (women = 0, men = 1) variable as a predictor (B = 1.16, SE = 0.10, p < .001).

https://www.researchgate.net/publication/251512898_Humor_ability_reveals_intelligence_predicts_mating_success_and_is_higher_in_males

Therefore it isn't just attractiveness that makes someone be perceived as funnier or more charismatic, although that's likely also true to an extent, but it's also humour ability that makes someone be perceived as more attractive, especially when it comes to men, and there are also results to show for it.

This is likely because it serves as an honest signal of underlying adaptive psychological traits though, which means that it will be hard to fake. This is why some men waste all their money on PUA courses with little results. It's not necessarily because being more charismatic only helps when you're physically attractive, it's that women are highly adept at discerning when a guy is faking it and it isn't being organically expressed but feels like a pre-rehearsed act.

That's why I don't really understand why anything personality or psychology related gets immediately put under the 'blue pill' label. Half of human genes are expressed in the brain and all personality/psychological traits are highly genetic. It's hardly a more 'optimistic' alternative to the over-emphasis some put on physical traits.