Title: Custom Plugin Performance and Security
Last modified: December 10, 2019

---

# Custom Plugin Performance and Security

 *  [himanim09](https://wordpress.org/support/users/himanim09/)
 * (@himanim09)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/custom-plugin-performance-and-security/)
 * I created a custom WordPress plugin on activating it an admin will enter the 
   secret key if key validates successfully in front-end user can see the plugin
   related data/pages etc. My question is what will be better way to create plugin
   pages? If on plugin activation create a post having type ‘page’ or create pages
   in plugin folder only and access them directly in the browser using URL rewrite?

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/custom-plugin-performance-and-security/#post-12228598)
 * It’s impractical to request plugin files directly, even through rewrites, if 
   your file utilizes WP resources. Such an approach will not be 100% portable to
   other installations. It’s grounds for rejection if you submit your plugin for
   the WP repository. Invoke your code through a page template, admin-ajax.php, 
   or admin-post.php. There really aren’t any other good options.
    -  This reply was modified 6 years, 5 months ago by [bcworkz](https://wordpress.org/support/users/bcworkz/).

Viewing 1 replies (of 1 total)

The topic ‘Custom Plugin Performance and Security’ is closed to new replies.

## Tags

 * [custom plugin](https://wordpress.org/support/topic-tag/custom-plugin/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/custom-plugin-performance-and-security/#post-12228598)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
