How to get the plugin folder path in wordpress?

echo $plugin_folder= plugins_url();

To get any specific file inside plugin directory use :

Here getting path of file ‘widget_newslider11123.html’ insde plugin “books”

echo plugins_url(‘books/widget_newslider11123.html’);

Reference : https://codex.wordpress.org/Function_Reference/plugins_url