Comparing two WordPress installations

I assume from your question that the ‘bug’ is an operational thing, not a code failure.

So, you can write some PHP code that will put the file hashes of every file of the first site into a database. Then compare those hashes with the hashes from the other site.

Any difference in files will show up as different hashes….but it won’t tell you what the differences are.

So a second option is to ‘diff’ the two sets of files. This should find and highlight the differences.

The creation of either of these solutions is up to you.