WP Statistics 14.6.2

Does WP Statistics work with WordPress 6.5.2 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
1PHP fatal errors
2Database errors
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

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

Page speed impact: 0.023 seconds
The average page load time increased by this amount after activating the plugin.

Environment
WordPress version6.5.2
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 600,000+
WordPress.org page https://wordpress.org/plugins/wp-statistics/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 22

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-statistics%2Fwp-statistics.php&plugin_status=all&paged=1&s&_wpnonce=5baacacb61
Aspect after-activation
HTTP status 200
Load time 0.577 s
Memory usage 3.83 MiB
JS errors None
Resource errors None

Statistics

Page screenshot: Statistics
URL /wp-admin/admin.php?page=wps_overview_page
Aspect menu-item
HTTP status 200
Load time 2.817 s
Memory usage 3.72 MiB
JS errors None
Resource errors None

Statistics → Visits

Page screenshot: Statistics → Visits
URL /wp-admin/admin.php?page=wps_hits_page
Aspect menu-item
HTTP status 200
Load time 0.379 s
Memory usage 3.67 MiB
JS errors None
Resource errors None

Statistics → Online

Page screenshot: Statistics → Online
URL /wp-admin/admin.php?page=wps_online_page
Aspect menu-item
HTTP status 200
Load time 0.356 s
Memory usage 3.67 MiB
JS errors None
Resource errors None

Statistics → Visitors

Page screenshot: Statistics → Visitors
URL /wp-admin/admin.php?page=wps_visitors_page
Aspect menu-item
HTTP status 200
Load time 0.399 s
Memory usage 3.7 MiB
JS errors None
Resource errors None

Statistics → Referrers

Page screenshot: Statistics → Referrers
URL /wp-admin/admin.php?page=wps_referrers_page
Aspect menu-item
HTTP status 200
Load time 0.325 s
Memory usage 3.66 MiB
JS errors None
Resource errors None

Statistics → Search Engines

Page screenshot: Statistics → Search Engines
URL /wp-admin/admin.php?page=wps_searches_page
Aspect menu-item
HTTP status 200
Load time 0.529 s
Memory usage 3.64 MiB
JS errors None
Resource errors None

Statistics → Post Types

Page screenshot: Statistics → Post Types
URL /wp-admin/admin.php?page=wps_pages_page
Aspect menu-item
HTTP status 200
Load time 0.374 s
Memory usage 3.67 MiB
JS errors None
Resource errors None

Statistics → Taxonomies

Page screenshot: Statistics → Taxonomies
URL /wp-admin/admin.php?page=wps_taxonomies_page&taxonomy=category
Requested URL /wp-admin/admin.php?page=wps_taxonomies_page
Aspect menu-item
HTTP status 200
Load time 0.342 s
Memory usage 3.69 MiB
JS errors None
Resource errors None

Statistics → Authors

Page screenshot: Statistics → Authors
URL /wp-admin/admin.php?page=wps_authors_page
Aspect menu-item
HTTP status 200
Load time 0.319 s
Memory usage 3.67 MiB
JS errors None
Resource errors None

Statistics → Browsers

Page screenshot: Statistics → Browsers
URL /wp-admin/admin.php?page=wps_browser_page
Aspect menu-item
HTTP status 200
Load time 0.344 s
Memory usage 3.64 MiB
JS errors None
Resource errors None

Statistics → Platforms

Page screenshot: Statistics → Platforms
URL /wp-admin/admin.php?page=wps_platform_page
Aspect menu-item
HTTP status 200
Load time 0.377 s
Memory usage 3.64 MiB
JS errors None
Resource errors None

Statistics → Top Visitors Today

Page screenshot: Statistics → Top Visitors Today
URL /wp-admin/admin.php?page=wps_top-visitors_page
Aspect menu-item
HTTP status 200
Load time 0.351 s
Memory usage 3.67 MiB
JS errors None
Resource errors None

Statistics →

Page screenshot: Statistics →
URL /wp-admin/admin.php?page=wps_break_menu
Aspect menu-item
HTTP status 200
Load time 0.191 s
Memory usage N/A
JS errors None
Resource errors None

Statistics → Optimization

Page screenshot: Statistics → Optimization
URL /wp-admin/admin.php?page=wps_optimization_page
Aspect menu-item
HTTP status 200
Load time 0.377 s
Memory usage 5.33 MiB
JS errors None
Resource errors None

Statistics → Settings

Page screenshot: Statistics → Settings
URL /wp-admin/admin.php?page=wps_settings_page
Aspect menu-item
HTTP status 200
Load time 0.827 s
Memory usage 3.8 MiB
JS errors None
Resource errors None

Statistics → Add-Ons

Page screenshot: Statistics → Add-Ons
URL /wp-admin/admin.php?page=wps_plugins_page
Aspect menu-item
HTTP status 200
Load time 2.943 s
Memory usage 3.69 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.280 s
Memory usage 3.44 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.431 s
Memory usage 3.72 MiB
JS errors None
Resource errors None

Add New Post ‹ Test site — WordPress

Page screenshot: Add New Post ‹ Test site — WordPress
URL /wp-admin/post-new.php
Aspect new-meta-boxes
HTTP status 200
Load time 0.705 s
Memory usage 5.89 MiB
JS errors None
Resource errors None

Add New Page ‹ Test site — WordPress

Page screenshot: Add New Page ‹ Test site — WordPress
URL /wp-admin/post-new.php?post_type=page
Aspect new-meta-boxes
HTTP status 200
Load time 0.819 s
Memory usage 5.88 MiB
JS errors None
Resource errors None

Widgets ‹ Test site — WordPress

Page screenshot: Widgets ‹ Test site — WordPress
URL /wp-admin/widgets.php
Aspect new-sidebar-widgets
HTTP status 200
Load time 2.625 s
Memory usage 5.82 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.377 s0.538 s+0.161 s3.44 MiB3.72 MiB+ 287.32 KiB
/wp-admin/edit.php0.220 s0.280 s+0.060 s3.46 MiB3.79 MiB+ 337.23 KiB
/wp-admin/post-new.php0.976 s0.892 s-0.084 s5.59 MiB5.89 MiB+ 310.11 KiB
/wp-admin/upload.php0.598 s0.534 s-0.064 s3.38 MiB3.61 MiB+ 236.88 KiB
/wp-admin/options-writing.php0.211 s0.291 s+0.080 s3.37 MiB3.6 MiB+ 231.19 KiB
/wp-admin/media-new.php0.287 s0.306 s+0.019 s3.35 MiB3.6 MiB+ 250.47 KiB
/wp-admin/edit-tags.php?taxonomy=category0.189 s0.224 s+0.035 s3.37 MiB3.63 MiB+ 265.22 KiB
/wp-admin/post-new.php?post_type=page0.551 s0.670 s+0.119 s5.59 MiB5.88 MiB+ 304.96 KiB
/wp-admin/options-discussion.php0.234 s0.386 s+0.152 s3.36 MiB3.59 MiB+ 238.98 KiB
/wp-admin/edit-comments.php0.504 s0.266 s-0.238 s3.39 MiB3.62 MiB+ 235.63 KiB
/0.354 s0.364 s+0.010 s3.42 MiB3.43 MiB+ 11.98 KiB
Average 0.409 s0.432 s+0.023 s3.79 MiB4.03 MiB+ 246.36 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.

SVG
PHP
JavaScript
Sass
Language % Lines of code Comment lines Files
SVG30.8%19,6920280
PHP29.3%18,7195,419175
JavaScript25.1%16,0501,90150
Sass11.4%7,2849265
Markdown2.4%1,51401
CSS1.1%691473
Total 63,950 7,459 574

PHP Code Analysis | More results »

Lines of code 13,654
Total complexity 2,924
Median class complexity 16.0
Median method complexity 3.0
Most complex class Parsedown
Most complex function WP_STATISTICS\visitors_page::view()
Classes 101
Methods 677
Functions 22

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.

Database Tables 9

Options wp_options 5

User Metadata wp_usermeta 2

Sidebar Widgets 1

ID Name
wp_statistics_widgetStatistics

Meta Boxes

{
    "dashboard": {
        "wp-statistics-quickstats-widget": {
            "title": "Quick Stats",
            "context": "normal"
        },
        "wp-statistics-summary-widget": {
            "title": "Traffic Summary",
            "context": "normal"
        },
        "wp-statistics-browsers-widget": {
            "title": "Browser Usage",
            "context": "normal"
        },
        "wp-statistics-platforms-widget": {
            "title": "Most Used Platforms",
            "context": "normal"
        },
        "wp-statistics-devices-widget": {
            "title": "Device Usage Breakdown",
            "context": "normal"
        },
        "wp-statistics-models-widget": {
            "title": "Top Device Models",
            "context": "normal"
        },
        "wp-statistics-referring-widget": {
            "title": "Top Referring",
            "context": "normal"
        },
        "wp-statistics-hits-widget": {
            "title": "Daily Traffic Trend",
            "context": "normal"
        },
        "wp-statistics-search-widget": {
            "title": "Referrals from Search Engines",
            "context": "normal"
        },
        "wp-statistics-pages-widget": {
            "title": "Most Visited Pages",
            "context": "normal"
        },
        "wp-statistics-top-visitors-widget": {
            "title": "Most Active Visitors",
            "context": "normal"
        },
        "wp-statistics-recent-widget": {
            "title": "Latest Visitor Breakdown",
            "context": "normal"
        },
        "wp-statistics-useronline-widget": {
            "title": "Currently Online",
            "context": "normal"
        }
    },
    "post": {
        "wp-statistics-post-widget": {
            "title": "Daily Traffic Trend",
            "context": "normal"
        }
    },
    "page": {
        "wp-statistics-post-widget": {
            "title": "Daily Traffic Trend",
            "context": "normal"
        }
    }
}

PHP Error Log 9 lines

[16-Apr-2024 17:50:00 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') AND `last_counter` BETWEEN '2024-03-17' AND '2024-04-16'' at line 1 for query SELECT COUNT(*) FROM `wp_statistics_visitor` WHERE `agent` NOT IN () AND `last_counter` BETWEEN '2024-03-17' AND '2024-04-16' made by do_action('wp_ajax_wp_statistics_admin_meta_box'), WP_Hook->do_action, WP_Hook->apply_filters, WP_STATISTICS\Ajax->admin_meta_box_action_callback, WP_STATISTICS\MetaBox\browsers::get
[16-Apr-2024 17:50:11 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') AND `last_counter` BETWEEN '2024-03-17' AND '2024-04-16'' at line 1 for query SELECT COUNT(*) FROM `wp_statistics_visitor` WHERE `agent` NOT IN () AND `last_counter` BETWEEN '2024-03-17' AND '2024-04-16' made by do_action('wp_ajax_wp_statistics_admin_meta_box'), WP_Hook->do_action, WP_Hook->apply_filters, WP_STATISTICS\Ajax->admin_meta_box_action_callback, WP_STATISTICS\MetaBox\browsers::get
[16-Apr-2024 17:50:14 UTC] PHP Fatal error:  Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, class WP_STATISTICS\exclusions_page does not have a method "exclusions" in /wp-includes/class-wp-hook.php:324
Stack trace:
#0 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#1 /wp-includes/plugin.php(517): WP_Hook->do_action()
#2 /wp-admin/admin.php(259): do_action()
#3 {main}
  thrown in /wp-includes/class-wp-hook.php on line 324
See also: All tests for this plugin