You can use WP-CLI to verify the integrity of WordPress core files as well as plugins.
Core
To verify WordPress core file checksums, use the core verify-checksums command:
wp core verify-checksums --version=$(wp core version)
Plugins
To verify plugins:
wp plugin verify-checksums –all