When comparing XtraFinder vs ImageOptim, the Slant community recommends ImageOptim for most people. In the question“What are the best power user tools for macOS?” ImageOptim is ranked 8th while XtraFinder is ranked 23rd. The most important reason people chose ImageOptim is:
Great for compressing images for web usage or saving harddrive space.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Free
Pro Old full-size color labels from OS X < 10.9

Pro Adds useful toolbar items
XtraFinder provides useful options for toolbar such as: Launch as Root, New Terminal Here, New File..., and Select...
Pro Additional right-click options
Xtra Finder provides additional options when performing the right click.
Pro Custom hotkeys

Pro Copy Path

Pro Can open a terminal in set position
XtraFinder can open up a terminal from the right-click menu in given path with "New Terminal Here".
Pro Dual panel
Split the Finder window into to windows to achieve better file handling.
Pro Colored icons in the Finder sidebar
Pro Losslessly compresses PNG, GIF, and JPEG images
Great for compressing images for web usage or saving harddrive space.
Pro Fast & Simple
Pro Simple drag'n' drop interface
Simply drag images (or folders) into the window.
Pro Tries several different image optimizers before picking the best one
Pro Edits files in place
It does edit files in place, overwriting the original. This is exactly what I want, so I love it, but it's good to know beforehand.
Pro Can handle PNG, GIF, and JPEG images
Great for compressing images for web usage or saving harddrive space.
Cons

Con Doesn't work on recent macOS versions without a workaround
This tool doesn't work on recent macOS versions, except if you try workaraound that may or may not work. It involves disabling System Integrity Protection and details on how to do it can be found on the XtraFinder website.
Con Compression algorithm not as good as counterparts
Con Cannot abort an optimization
Optimization can run for a long time. Sometimes it reaches 20% quickly and then spend a long time to attain 21.2%. But you cannot interrupt the process.
Con Does not work on SVG yet
