Hi Charlie, usually it isn't an error for an edge to be non-planar, especially if it is just a line.
One thing that is a bit odd with your example is that a couple of trim boundaries are made up of polylines instead of smooth curves, like here:
There is probably some poor accuracy in the model in those areas.
For naked edges usually those would be things you would want to fix.
One of the main ways to do that is by untrimming and retrimming faces. There is an object repair tutorial here which describes that process:
http://moi3d.com/forum/index.php?webtag=MOI&msg=446.17
For your case here those spots with a curved torus fillet being trimmed by a polyline is kind of weird, it would probably be good to get rid of that as part of the naked edge cleanup.
So for your case here I would probably delete the top face:
Then select these 3 faces:
Then use Edit > Separate twice, once breaks those 3 pieces off from the main object but the 3 are still connected then the 2nd one breaks them into individual surfaces that are not joined to any other surfaces.
Then run the ShrinkTrimmedSrf command (type Tab then ShrinkTrimmedSrf and then enter).
Then untrim those 3 surfaces by selecting all their edges and pushing Delete. You can select all edges of a surface by first selecting 1 edge and then using Ctrl+A for "Select All".
That will discard the current trim boundary are recover the full underlying surface. You want to do a ShrinkTrimmedSrf before the untrim so you don't end up with a full closed torus.
So at this point it will look like this:
The torus pieces now need to be retrimmed using the Edit > Trim command with the "Isocurve" option to cut off these pieces:
Then select everything, use Edit > Join to glue those 3 surfaces back to the main object, then select it and run Construct > Planar to make a new top face.
Let me know if you get stuck on any of these steps.
- Michael