Some sufficient conditions for embedding a weighted Sobolev class on a John domain