refactored board statistics plugin