Buddhism uses the middle path to develop both. The highest wisdom is seeing that in reality, all phenomena are incomplete, impermanent and do no constitute a fixed entity. True wisdom is not simply believing what we are told but instead experiencing and understanding truth and reality. Wisdom requires an open, objective, unbigoted mind. The Buddhist path requires courage patience, flexibility and intelligence.
Compassion includes qualities of sharing readiness to give comfort sympathy, concern, caring.
In Buddhism, we can really understand others, when we can really understand ourselves, through wisdom. Buddhist teachings can be understood and tested by anyone. Buddhism teaches that the solutions to our problems are within ourselves not outside. The Buddha asked all his followers not to take his word as true, but rather to test the teachings for themselves. This makes Buddhism less of a fixed package of beliefs which is to be accepted in its entirety, and more of a teaching which each person learns and uses in their own way.