Try over-the-toilet options in small spaces. Cabinets and shelves can occupy space over the toilet without interfering with its use. Allow enough clearance between the shelf and toilet to remove the tank lid for repairs.
Also on these boards
Small Bathroom Solution
30 ways to store more in your bath from @Gayle Robertson Robertson Robertson Roberts Merry Homes and Gardens
30 ways to store more in your bath