The 4mm foam will help with heat and sound. It's not a complete solution, depending on how crazy you want to get with it.
I used similar stuff, but it was 6mm with foil on the top surface.
4mm is kinda thin, and it will pack down in places where it has weight on it ( like under you heels).
But, go too thick and you start having issues re-fitting carpet, console, seats, trim panels etc. 4mm on dynamat should be ok though.
With the foam, you want to do the best you can to cover the whole floor, imcluding as far up the firewall as you can, and the whole trans tunnel.
Fill in any gaps in your cutting, and use foil HVAC tape to cover ALL the seams.
When I did mine, it definitely made a difference, but I had heat pouring through the shifter hole on the trans tunnel (stick shift). When I figured out a way to effectively cover that under the console it made a huge difference. It kinda highlighted how much heat & noise small gaps let through.
If you want to go nuts, also add MLV (mass loaded vinyl).
The dynamat dampens vibrations in the steel panels, closed cell foam absorbs heat and sound, MLV blocks and absorbs vibrations. Ideally, you want a combination of layers to baffle and block the sound vibrations.