Issue in esp8266 while using all GPIO

First of all, there is no point in having multiple pinMode definitions for the same pin. Only the last one processed will define the current mode for the pin.

I’m surprised that these two lines of code compile at all:

The clue is in the name here, INPUT_PULLUP defines a pin as an INPUT and enables the internal pullup resistors so that it is HIGH by default…

There is no equivalent for the output pins, as they need to be defined as OUTPUT and their state controlled via a digitalWrite command, so there is really no such thing as a floating output pin.

I suspect that the problem you are experiencing is because you have widgets in the app that are attached to these pins digital pins, rather than using virtual pins in the app.
Read this for more info on using virtual pins:

Pete.