Disrespectful from both the wife and the friend.
It’s ok to have male friends as a female (and vice-versa) but this behavior is not that of a friend. It should not be accepted by the husband nor the wife. If the wife insists it’s fine, imho there’s a bigger problem underneath.