By default most materials that are not abstract and have patterns like a bricks and tiles use UVs as the coordinate to map the material, but you can always replace that vector to fix stretching like in this case:
We have a stretched texture because the plane is 4 times larger on X axis than on Y axis
To fix the ratio we replace the coordinates with a UV map using mapping with X scaled to 4
Post your comment on this topic.