When I include a file like so:
require_once(ABSPATH . 'wp-admin/includes/admin.php');
require_once (ABSPATH . 'wp-admin/includes/dashboard.php');
It breaks my site, and gives me an error:
Fatal error: Call to undefined function wp_get_current_user() in /www/websites/mysite.com/wp-includes/capabilities.php on line 926
Also, is it good practice to use a class structure when developing a plugin? It seems to open a ton of errors..