Dishwashers can be awkward to install, because they fit tightly into a small space, hiding all of the complicated parts behind panels and doors. They also involve multiple connections for the water ...
The dishwasher drain must be connected before the P-trap, not after it, which is what was done here. With this improper installation, sewer gases have the potential to come back in to the dishwasher.