He was a Qadi and an erudite scholar. My teachers have nothing but praise for him. They do mention some lapses but they advise us to have a good opinion of him. Also many of the great biographers such as Imam Dhahabi also have nothing but praise for him [Siyar: 15:452] And Allah Knows Best.