If something is to someone's credit, they deserve praise for it.
To her credit, Maria worked extra hours to help the team succeed.