Not been to Tunisia for a long time so it might have changed, but I enjoyed it.
I can see both sides. Yes, there is hassle, but a firm "no" and not engaging always sorted it. Just keep walking, if you dont want to buy from the shop, no thanks and walk away.
Yes, people stare/shout at points but some of that is cultural. No different to any other African country really. Walk around Spain or Greece or Italy and the locals look at you too, they're just a bit more covert about it😂
Parts of it can feel run down but the purpose built tourist resorts like Hammamet, Yasmine Hammamet, Sousse, feel a bit more upmarket. It's not what you're going to get in Spain but it feels more developed than other places in Africa or some Caribbean islands.
I've been with a partner and with friends as a females only holiday, couple of times with each different group, and didn't once feel unsafe. Did the touristy stuff like El Jem, Sahara, camel rides, boat trips, and also just wandered on our own. We ventured into nightclubs where there definitely weren't a lot of tourists and we all survived intact.
It is what you make it. We went before 2015 and it was cheap, great weather, and had enough to do outside of the hotel that we could go out and wander in the evenings for dinner. I remember people in our hotel then saying it wasn't safe to go out and thinking wtf, where?
I probably wouldn't go back now but that's not because it's a bad place or unsafe, just that the AI hotel type holiday isn't really our thing now. If we were looking for an AI break with the kids, I wouldn't rule it out.