As indicated in the title the following line of code can trigger a warning due to an undefined key
if ( $block->context['query']['inherit'] ) {
This can easily be fixed by using the empty() function like this:
if ( !empty($block->context['query']['inherit']) ) {
I hope this goes in accordance with the code, and thank you so much for this amazing plugin.