As mentioned, overflows are notorious for collecting smelly waste.
One of your pics shows a drain hose connected to a spigot on a trap - whether that hose is from a W/M or a D/W, best practice is that the spigot should be pointing up, and that the connection be secured with a jubilee clip.
The other spigot boss (on the trap fitting) should be capped off.
After leaving the appliance footprint, drain hoses should immediately rise & be secured to just below the work top - they must not be allowed to sag as they run behind any other appliances or units.
When they reach the sink unit the hose drops down to be secured to the spigot.
Any sagging or running low will almost inevitably create the possibility of waste water &
debris accumulating and perhaps smelling.
If any of your traps or appliances require long waste pipe runs then its sometimes advisable to install an AAV (aka Durgo valve) in the run.