Zip file creation is a better way to enable the user to download multiple files in one package. This may affect the page load time according to the number of files and their size.
Arises more problem when need to create multiple zip files on page load for download.
To avoid this type of problem you can either use only PHP or jQuery AJAX to create and download the zip file when it’s required.
In this tutorial, I am using jQuery AJAX.