Compression and diffusion: a joint approach to detect complexity