Manual:CheckBadRedirects.php

Checks that pages marked as being redirects really are.