\DeclareDelayedFloatFlavor can throw surprising error
Just got:
./endfloat-test.tex:17: Package endfloat Error: Unknown environment `figure'.
See the endfloat package documentation for explanation.
Type H <return> for immediate help.
...
l.17 \DeclareDelayedFloatFlavor{map}{figure}
The reason is simple, I first associated the map env as being a figure and then later decided to figures should be inlines using "nofigures" or "onlytables" option. But those options omit declaring "figure" as \DeclareDelayedFloat
to the package and then you get the error.
Again I think this is not easy understandable from a user perspective and furthermore a setup might set up extra envs by default (say in a config file). So it is not that convenient if the options to turn a certain type off are then throwing errors if you don't comment out the Flavor lines too