It compares core and plugins with the official
wordpress.org checksums and reads media files from start to end, because a program or a zip can be glued behind a real picture. It reads the code WordPress loads by itself (wp-config.php, mu-plugins, drop-ins), and it checks .htaccess and the database dump too.