It's not that the script has plot holes so much as the made up science for how time works has logical holes. Like, if you listen to Data for how long until the breach destroys the ship, and do the math, we should be able to see it visibly moving.
But, dude, that's like the least important criticism ever leveled at a TV episode. How could something like that lower your enjoyment of the episode?
("Starship Mine" isn't a bad story, it's the season's given action episode, but it is an example of trying another format that doesn't quite work. "Power Play" might be a better example...)