diff --git a/query-monitor-extend.php b/query-monitor-extend.php
index c72c25a..6a28a7a 100644
--- a/query-monitor-extend.php
+++ b/query-monitor-extend.php
@@ -15,7 +15,7 @@
defined( 'WPINC' ) || die();
defined( 'QMX_DISABLED' ) || define( 'QMX_DISABLED', false );
-defined( 'QMX_TESTED_WITH_QM' ) || define( 'QMX_TESTED_WITH_QM', '3.16.4' );
+defined( 'QMX_TESTED_WITH_QM' ) || define( 'QMX_TESTED_WITH_QM', get_plugin_data( __FILE__ )['QM tested up to'] ?? '3.0.0' );
if ( defined( 'QM_DISABLED' ) && constant( 'QM_DISABLED' ) ) {
return;
@@ -57,7 +57,7 @@
'Tested up to Query Monitor %3$s',
'https://wordpress.org/plugins/query-monitor/',
'https://github.com/johnbillion/query-monitor/releases/tag/',
- constant( 'QMX_TESTED_WITH_QM' ),
+ constant( 'QMX_TESTED_WITH_QM' )
)
);