StatTraq 1.3.0

Does StatTraq work with WordPress 6.8.1 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
51PHP fatal errors
83PHP warnings
94PHP deprecation warnings
11Database errors
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 14.93 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: insignificant.
The plugin didn't make the site noticeably slower.

Environment
WordPress version6.8.1
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 100+
WordPress.org page https://wordpress.org/plugins/wp-stattraq/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 4

Plugins ‹ Test site — WordPress

Page screenshot: Plugins ‹ Test site — WordPress
URL /wp-admin/plugins.php?plugin_status=all&paged=1&s
Requested URL /wp-admin/plugins.php?action=activate&plugin=wp-stattraq%2Fstattraq.php&plugin_status=all&paged=1&s&_wpnonce=05c14f136f
Aspect after-activation
HTTP status 200
Load time 0.466 s
Memory usage 3.53 MiB
JS errors None
Resource errors None

Stat Traq

Page screenshot: Stat Traq
URL /wp-admin/admin.php?page=wp-stattraq%2Findex.php
Requested URL /wp-admin/admin.php?page=wp-stattraq/index.php
Aspect menu-item
HTTP status 200
Load time 0.196 s
Memory usage 3.54 MiB
JS errors None
Resource errors None

Test site – Just another WordPress site

Page screenshot: Test site – Just another WordPress site
URL /
Aspect front-page
HTTP status 200
Load time 0.235 s
Memory usage 3.56 MiB
JS errors None
Resource errors None

Dashboard ‹ Test site — WordPress

Page screenshot: Dashboard ‹ Test site — WordPress
URL /wp-admin/index.php
Aspect new-meta-boxes
HTTP status 200
Load time 0.388 s
Memory usage 3.52 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.345 s0.377 s+0.032 s3.51 MiB3.52 MiB+ 12.54 KiB
/wp-admin/edit.php0.213 s0.194 s-0.019 s3.57 MiB3.58 MiB+ 8.71 KiB
/wp-admin/post-new.php0.943 s0.647 s-0.296 s6.06 MiB6.07 MiB+ 11.57 KiB
/wp-admin/upload.php0.797 s0.536 s-0.261 s3.52 MiB3.52 MiB- 3.2 KiB
/wp-admin/options-writing.php0.235 s0.199 s-0.036 s3.5 MiB3.5 MiB- 4.7 KiB
/wp-admin/media-new.php0.285 s0.246 s-0.039 s3.49 MiB3.49 MiB+ 3.49 KiB
/wp-admin/edit-tags.php?taxonomy=category0.171 s0.368 s+0.197 s3.5 MiB3.52 MiB+ 14.16 KiB
/wp-admin/post-new.php?post_type=page0.805 s0.697 s-0.108 s6.05 MiB6.06 MiB+ 7.09 KiB
/wp-admin/options-discussion.php0.357 s0.388 s+0.031 s3.5 MiB3.49 MiB- 8.2 KiB
/wp-admin/edit-comments.php0.223 s0.212 s-0.011 s3.52 MiB3.52 MiB- 3.2 KiB
/0.334 s0.206 s-0.128 s3.43 MiB3.56 MiB+ 125.99 KiB
Average 0.428 s0.370 s-0.058 s3.97 MiB3.98 MiB+ 14.93 KiB

Code Statistics

Note: Third-party libraries and minified JS/CSS files are excluded from these statistics where possible, so the numbers you see here may be lower than those reported by other tools.

PHP
Language % Lines of code Comment lines Files
PHP94.1%3,96737827
CSS5.5%23401
XML0.3%1101
INI0.1%501
Total 4,217 378 30

PHP Code Analysis | More results »

Lines of code 3,243
Total complexity 715
Median class complexity 21.0
Median method complexity 1.0
Most complex class PhpLineGraph
Most complex function statTraqGetBrowser()
Classes 5
Methods 79
Functions 61

Additions

Things that the plugin adds to the site. This section is not intended to be comprehensive. The test tool only looks for a few specific types of added content.

Meta Boxes

{
    "dashboard": {
        "StatTraq": {
            "title": "StatTraq",
            "context": "normal"
        }
    }
}

PHP Error Log 637 lines

[12-May-2025 19:55:47 UTC] PHP Deprecated:  File admin-functions.php is <strong>deprecated</strong> since version 2.5.0! Use wp-admin/includes/admin.php instead. in /wp-includes/functions.php on line 6121
[12-May-2025 19:55:47 UTC] PHP Warning:  Undefined variable $table_prefix in /wp-content/plugins/wp-stattraq/utils.php on line 12
[12-May-2025 19:55:47 UTC] PHP Warning:  Undefined variable $table_prefix in /wp-content/plugins/wp-stattraq/utils.php on line 13
[12-May-2025 19:55:47 UTC] PHP Warning:  Undefined property: wpdb::$linkcategories in /wp-includes/class-wpdb.php on line 789
[12-May-2025 19:55:47 UTC] PHP Warning:  Undefined variable $table_prefix in /wp-content/plugins/wp-stattraq/stattraq.php on line 42
[12-May-2025 19:55:47 UTC] PHP Warning:  Undefined variable $table_prefix in /wp-content/plugins/wp-stattraq/stattraq.php on line 43
[12-May-2025 19:55:47 UTC] PHP Fatal error:  Uncaught Error: Undefined constant "is_single" in /wp-content/plugins/wp-stattraq/stattraq.php:67
Stack trace:
#0 /wp-includes/class-wp-hook.php(324): stat_traq_event()
#1 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /wp-includes/load.php(1304): do_action()
#4 [internal function]: shutdown_action_hook()
#5 {main}
  thrown in /wp-content/plugins/wp-stattraq/stattraq.php on line 67
[12-May-2025 19:55:47 UTC] PHP Deprecated:  File admin-functions.php is <strong>deprecated</strong> since version 2.5.0! Use wp-admin/includes/admin.php instead. in /wp-includes/functions.php on line 6121
[12-May-2025 19:55:47 UTC] PHP Warning:  Undefined property: wpdb::$linkcategories in /wp-includes/class-wpdb.php on line 789
[12-May-2025 19:55:47 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
[12-May-2025 19:55:47 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
[12-May-2025 19:55:47 UTC] PHP Fatal error:  Uncaught Error: Undefined constant "is_single" in /wp-content/plugins/wp-stattraq/stattraq.php:67
Stack trace:
#0 /wp-includes/class-wp-hook.php(324): stat_traq_event()
#1 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /wp-includes/load.php(1304): do_action()
#4 [internal function]: shutdown_action_hook()
#5 {main}
  thrown in /wp-content/plugins/wp-stattraq/stattraq.php on line 67
[12-May-2025 19:55:48 UTC] PHP Deprecated:  File admin-functions.php is <strong>deprecated</strong> since version 2.5.0! Use wp-admin/includes/admin.php instead. in /wp-includes/functions.php on line 6121
[12-May-2025 19:55:48 UTC] PHP Warning:  Undefined property: wpdb::$linkcategories in /wp-includes/class-wpdb.php on line 789
[12-May-2025 19:55:48 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
[12-May-2025 19:55:48 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
[12-May-2025 19:55:48 UTC] PHP Fatal error:  Uncaught Error: Undefined constant "is_single" in /wp-content/plugins/wp-stattraq/stattraq.php:67
Stack trace:
#0 /wp-includes/class-wp-hook.php(324): stat_traq_event()
#1 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /wp-includes/load.php(1304): do_action()
#4 [internal function]: shutdown_action_hook()
#5 {main}
  thrown in /wp-content/plugins/wp-stattraq/stattraq.php on line 67
[12-May-2025 19:55:48 UTC] PHP Deprecated:  File admin-functions.php is <strong>deprecated</strong> since version 2.5.0! Use wp-admin/includes/admin.php instead. in /wp-includes/functions.php on line 6121
[12-May-2025 19:55:48 UTC] PHP Warning:  Undefined property: wpdb::$linkcategories in /wp-includes/class-wpdb.php on line 789
[12-May-2025 19:55:48 UTC] WordPress database error Table 'wordpress.wp_stattraq_options' doesn't exist for query SELECT * FROM wp_stattraq_options made by st_loadOptions
[12-May-2025 19:55:48 UTC] PHP Warning:  Undefined variable $year in /wp-content/plugins/wp-stattraq/reporter/hit_counter.php on line 16
[12-May-2025 19:55:48 UTC] PHP Warning:  Undefined variable $year in /wp-content/plugins/wp-stattraq/reporter/hit_counter.php on line 17
[12-May-2025 19:55:48 UTC] PHP Warning:  Undefined variable $year in /wp-content/plugins/wp-stattraq/reporter/hit_counter.php on line 33
[12-May-2025 19:55:48 UTC] PHP Warning:  Undefined variable $day in /wp-content/plugins/wp-stattraq/reporter/hit_counter.php on line 33
[12-May-2025 19:55:48 UTC] PHP Warning:  Array to string conversion in /wp-content/plugins/wp-stattraq/utils.php on line 56
[12-May-2025 19:55:48 UTC] PHP Warning:  Undefined variable $year in /wp-content/plugins/wp-stattraq/reporter/hit_counter.php on line 34
[12-May-2025 19:55:48 UTC] PHP Warning:  Undefined variable $day in /wp-content/plugins/wp-stattraq/reporter/hit_counter.php on line 34
[12-May-2025 19:55:48 UTC] PHP Warning:  Array to string conversion in /wp-content/plugins/wp-stattraq/utils.php on line 56
[12-May-2025 19:55:48 UTC] WordPress database error Table 'wordpress.wp_stattraq' doesn't exist for query SELECT DATE_FORMAT(access_time,'%H') AS dd, DATE_FORMAT(access_time,'%H') AS the_key, COUNT( line_id ) AS cnt, COUNT( line_id ) AS the_value, DATE_FORMAT(access_time, '%H') AS the_interval FROM wp_stattraq  WHERE access_time BETWEEN '20250512000000' AND '20250512235959'  AND access_time > DATE_SUB('20250512235959', INTERVAL 24 HOUR) GROUP by the_interval ORDER BY dd LIMIT 0, 24 made by getChartDBResults
[12-May-2025 19:55:48 UTC] PHP Deprecated:  substr(): Passing null to parameter #1 ($string) of type string is deprecated in /wp-content/plugins/wp-stattraq/reporter/phpBarGraph2.php on line 152
[12-May-2025 19:55:48 UTC] PHP Deprecated:  substr(): Passing null to parameter #1 ($string) of type string is deprecated in /wp-content/plugins/wp-stattraq/reporter/phpBarGraph2.php on line 153
[12-May-2025 19:55:48 UTC] PHP Deprecated:  substr(): Passing null to parameter #1 ($string) of type string is deprecated in /wp-content/plugins/wp-stattraq/reporter/phpBarGraph2.php on line 154
[12-May-2025 19:55:48 UTC] PHP Fatal error:  Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /wp-content/plugins/wp-stattraq/reporter/phpBarGraph2.php:263
Stack trace:
#0 /wp-content/plugins/wp-stattraq/reporter/chart_maker.php(107): PhpBarGraph->DrawBarGraph()
#1 {main}
  thrown in /wp-content/plugins/wp-stattraq/reporter/phpBarGraph2.php on line 263
[12-May-2025 19:55:48 UTC] PHP Fatal error:  Uncaught Error: Undefined constant "is_single" in /wp-content/plugins/wp-stattraq/stattraq.php:67
Stack trace:
#0 /wp-includes/class-wp-hook.php(324): stat_traq_event()
#1 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /wp-includes/load.php(1304): do_action()
#4 [internal function]: shutdown_action_hook()
#5 {main}
  thrown in /wp-content/plugins/wp-stattraq/stattraq.php on line 67
[12-May-2025 19:55:48 UTC] PHP Deprecated:  File admin-functions.php is <strong>deprecated</strong> since version 2.5.0! Use wp-admin/includes/admin.php instead. in /wp-includes/functions.php on line 6121
[12-May-2025 19:55:48 UTC] PHP Warning:  Undefined property: wpdb::$linkcategories in /wp-includes/class-wpdb.php on line 789
[12-May-2025 19:55:48 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
[12-May-2025 19:55:48 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
[12-May-2025 19:55:48 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
[12-May-2025 19:55:48 UTC] WordPress database error Table 'wordpress.wp_stattraq_options' doesn't exist for query SELECT * FROM wp_stattraq_options made by include('/plugins/wp-stattraq/index.php'), st_loadOptions
[12-May-2025 19:55:48 UTC] PHP Deprecated:  Function get_currentuserinfo is <strong>deprecated</strong> since version 4.5.0! Use wp_get_current_user() instead. in /wp-includes/functions.php on line 6121
[12-May-2025 19:55:48 UTC] WordPress database error Table 'wordpress.wp_stattraq' doesn't exist for query SELECT DISTINCT COUNT(access_time) as cnt, 
               DATE_FORMAT( access_time, '%Y-%M' ) as access_time2, 
               DATE_FORMAT( access_time, '%Y' ) as year, 
               DATE_FORMAT( access_time, '%m' ) AS month 
               FROM wp_stattraq WHERE  
               access_time BETWEEN '20241201000000' AND '20260201000000' 
               GROUP BY access_time2 ORDER BY month DESC made by include('/plugins/wp-stattraq/index.php'), require_once('/plugins/wp-stattraq/navigation.php'), generate_calendar, generate_month_list
[12-May-2025 19:55:48 UTC] WordPress database error Table 'wordpress.wp_stattraq_options' doesn't exist for query SELECT * FROM wp_stattraq_options made by include('/plugins/wp-stattraq/index.php'), getPageContent
[12-May-2025 19:55:48 UTC] PHP Fatal error:  Uncaught Error: Undefined constant "is_single" in /wp-content/plugins/wp-stattraq/stattraq.php:67
Stack trace:
#0 /wp-includes/class-wp-hook.php(324): stat_traq_event()
#1 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /wp-includes/load.php(1304): do_action()
#4 [internal function]: shutdown_action_hook()
#5 {main}
  thrown in /wp-content/plugins/wp-stattraq/stattraq.php on line 67
[12-May-2025 19:55:49 UTC] PHP Deprecated:  File admin-functions.php is <strong>deprecated</strong> since version 2.5.0! Use wp-admin/includes/admin.php instead. in /wp-includes/functions.php on line 6121
[12-May-2025 19:55:49 UTC] PHP Warning:  Undefined property: wpdb::$linkcategories in /wp-includes/class-wpdb.php on line 789
[12-May-2025 19:55:49 UTC] PHP Fatal error:  Uncaught Error: Undefined constant "is_single" in /wp-content/plugins/wp-stattraq/stattraq.php:67
Stack trace:
#0 /wp-includes/class-wp-hook.php(324): stat_traq_event()
#1 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()

(+537 more lines)
See also: All tests for this plugin