Books would have spotted the plan as soon as he so much as glanced at that “extra deep” coffin. There are three or four such improbabilities in the Holmes stories.
Holmes never saw the coffin until they went to the house to rescue the lady. He merely deduced the extra large coffin since the woman at the funeral parlor said it was a special order and took extra time to deliver..............