Final check for dissertation; what are some common bugs? I am currently in the process of completing my dissertation. 
I am a big fan of unit tests, so I would like to implement a procedure that corrects my writing ( or removes bugs so to speak.)

A few examples:


check spelling of all text
do all figures have a description that is up to date with the picture
search for "like" and replace it with "as" or a better sounding word
has every head and subhead one or two sentences of introduction 
are the figures at the right place in the pdf?


I am looking for a lot more of these "Bugs" that I was unfortunate enough to introduce into a text and found them only at the last-minute check. What else are common bugs that need to be eliminated?
This doesn't cover everything you want, by any means, but it is an attempt to automate similar things:

http://matt.might.net/articles/shell-scripts-for-passive-voice-weasel-words-duplicates/

You could probably accomplish some of what you want with similar scripts.  Some of the checks you wish to do are easily scripted as long as your thesis file(s) are plain text.  If you're using Word, automation will be more challenging.