That looks like a sewage line (PVC) as opposed to the typical footing drain (Black corrugated pipe)
White PVC, with 3/8" to 1/2" holes about 6 inches apart the whole length, is perfectly usable for perimeter drains.
A sewage line should never come into and dump into an indoor chamber that is not hermetically sealed (except for inlet and outlet pipes).
When cleaning anything including baby diapers, it is better to sweep off or scrape off as much solid and semisolid material as you can first. (1) Less cleaning fluid or detergent needs to be used, (2) Less of a mushy mess which in turn means that bleaches or disinfectants will be more effective.