Bob is not allowed to use a cleanout fitting for the connection of a drainage pipe. The drain pipe connection needs a sanitary tee installed. To protect the sink's trap, you will need to install a vent.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.