New plugin: Generation time by seconds - plugin is not activated error

I am attempting to create a plugin that will aggregate page generation time binned by seconds, which would create a report similar to this:
1s 500 actions
2s 100 actions
3s 50 actions

At this point I have made a base plugin from the documentation, and copied code from the VisitTime plugin in an attempt to get something to work, but get an error I can’t fix when I visit a link:

Error: Error: The report ‘PageGenerationBySeconds’ was requested but it is not available at this stage. (Plugin ‘’ is not activated.)

Is there a place I can put the code to help with debugging this issue?


Do you have the plugins code on github or somewhere else public?
Maybe someone could have a look then…