A small contribution for all those using WordPress as a backend, framework or something similar. The applications, especially in the B2B sector, becoming more and more, as do the questions.
So far, I've always liked to recommended BackPress. But even a well-maintained standard is feasible, with all its advantages in the context of the philosophy of updates. WordPress reduces initializing to a minimum, if the constant
SHORTINIT is set.
wp-settings.php of WordPress is the key.
// Stop most of WordPress from being loaded if we just want the basics. if ( SHORTINIT ) return false;
Thus, the loading process is much slimmer and files that are loaded later, must be integrated via a Plugin or Theme functions. The ability is worth it and not infrequently, the part of WordPress in some projects is so small compared to your own developments, that this is worth to do.
define( 'SHORTINIT', TRUE ); is done quickly and you can start the test, but note: the globals
$wp, $wp_query, $wp_the_query was set as