This Building defect shows incorrectly filled fire retardant foam. The entire void should be filled prior to attaching architraves to offer additional fire resistance.
This could cause potential risk to human life of the occupants of the building, as any gaps surrounding the door which may not be visible to the human eye without our intervention would act as a route for spread of both lethal smoke and flames in the event of a fire.