In classification problem, if the dataset is imbalanced, accuracy as well as weighted f1-score can be extremely misleading. Matthews correlation coefficient (MCC) is a very good alternative in that case.
MCC can be calculated as:
The values of MCC range from -1 to 1, while 0 is the expected values for the coin tossing classifier.