As Wallace requested it to be translated to .py (the .scm works in GIMP 2.10 by the way).
Anyways it was very simple to do so here it is. Plug-in Menu Location:
View/Crosshair Guides
Plugin simply adds a centered vertical and horizontal guides on your active layer.