Transmission of a p-polarized electromagnetic wave through a two-layer plasma structure with spatially nonuniform distributions of electron density in the layers is studied. The case, when the electromagnetic wave is obliquely incident on the structure and is evanescent in both plasma layers, is considered. The conditions for total transparency of the two-layer structure are found for the thin slab case and when the plasma inhomogeneity is weak. It is shown that the transmission coefficient of the p-polarized wave can be about unity, even if the plasma inhomogeneity is large. The effects of plasma inhomogeneity on transparency of the structure are more important if the slabs are thick, comparing with the case of thin layers.