Shiny App Running Locally but just says Please Wait Eternally when published on free shiny server

Only if by efficient you mean smaller.

Very likely but we can't possibly know for sure. As I said, we can't give you any specific advice without a reproducible example (reprex) illustrating your issue.

Have a look at these resources, to see how to create one for a shiny app