https://guestpostshub.com/custom-table-with-php-in-wordpress/
How to Create a Custom Table with PHP in WordPress