2 days at UO is probably enough time but 2 days at WDW just really isn't enough. I would look into doing one night at a UO hotel which offers the express pass - RPR, POR, or HR. That one night at the hotel will provide you with express pass for 2 days (check in and check out). Buy 2 day tickets at
undercover tourist -- it is generally better price than through UO.
Now for WDW you could look into a few options -
1. book a home offsite which is cheaper but you only get the 30 day booking window for FP. You can find them through VRBO and probably airbnb
2. book a good neighbor hotel, such as the ones at disney springs area. These hotels provide you with the 60 day booking window for FP but you will need your own transportation to/from the parks.
3. Look at an onsite value resort.
I would try to do WDW for at least 4 days - one day per park. Buy your WDW tickets from undercover tourist. They often have deals where if you buy a WDW ticket and combine it with a UO ticket you save a little money. Not much but something.
There are many ways to save money and still make the trip worthwhile. It is tough to spend all that money and try to cram too much into to shore of a timeframe.
Another thing to consider is that it will be super hot and humid in July so when you think about doing parks from open to close it will be much more draining with the heat. We are doing UO and WDW in July but we planned it this way so we could stay longer and not interfere with school.