What this checks
This looks for a sitemap at the conventional path, reads robots.txt to see whether a Sitemap line declares one somewhere else, and reports the combination. A sitemap that exists but is undeclared, and a sitemap that is declared but does not resolve, are different failures and the report separates them rather than collapsing both into one message.