I suggest you another metod. I did it myself.
My bookshelves don't have rear ports, instead they have passive radioators (Buchardt S400 MKII, very bassy speakers), but it doesn't mean they can be placed close to the wall, it's a bad idea.
I placed behind the speakers Basotect panels, very effective sound-absorbing porous material, and sound increased amazingly, bass became cleaner, punchy and heavy. But anyway the speakers should stand 40-50 sm from the wall.