Before going into details, it is useful to note that the report should have two basic parts. This is explained on the [[Addons development]] page, that these go into two different files:
# the source code file
(e.g.: <code>report.py</code> )# and a Gramps Plugin Registration file (e.g.: <code>report.gpr.py</code> ).