This is your work, valued
checkshvar. Simple program that reads standard input searching for shell variables, command substitutions (`cmd ...`) and enclose them inside double quotes.