Hyperspace is based off of a theory that if you take the fabric of space time, squish it so that you get one really tall peak instead of one really long stretch, then climb over the peak (which in star wars they travel straight through it), then flatten that peak of fabric out, voila! You are now hundreds of light years from where you started.
Now there is no way we can do that in real life sadly because we do not have 1) The computers to calculate exactly how far you have to squish the fabric and 2) we Don't have the power capability to jump through that peak of fabric.
Now in hyper space massive things such as planets and black holes can effect hyperspace travel which is why you need such a highly advanced computer system.
Also in star wars when hahhan solo does random uncalculated jumps there is a heavy risk that they could have run into an active supernova or hit a planetary shadow, as such large objects throw gravitational shadows out in to hyper space