Measure the area of the exhaust port on the cylinder. Then, you want to have your muffler with an opening about 80% of this size to create sufficient backpressure. So, add up the area of all those little holes inside the muffler and make sure they total up to 80% of the area. Then, if there's a spark screen, you'll have to come up with some way of determining the "open" area of the screen. Maybe take a 1/4 inch square section, see what % of that is open and then extrapolate to the area of the entire screen. It sounds as if the screen is gone, so you may not need to worry about this.Then you'll want to be sure that final exit on the muffler is also at 80% of exhaust port size and you're good to go.
Just make sure you can adjust the jetting in the carb to compensate for the lower restriction in the muffler. Making more power requires more fuel.