making a simple plugin

Welcome to Stackoverflow. I think First of all you need to learn How to Google search. After that you can start writing your plugin. Well Here is the WordPress Plugin Handbook https://developer.wordpress.org/plugins/. As it states

The Plugin Developer Handbook is a resource for all things WordPress
plugins. Whether you’re new to WordPress plugin development, or you’re
an experienced plugin developer, you should be able to find the answer
to many of your plugin-related questions right here.

Good Luck

tech