Show Google Analytics widget 1.4.2

Does Show Google Analytics widget work with WordPress 5.6.1 and PHP 7.4.8? A smoke test was performed on .

Summary

Errors
3PHP notices
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 26.33 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 version5.6.1
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs 100+
WordPress.org page https://wordpress.org/plugins/show-google-analytics-widget/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 5

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=show-google-analytics-widget%2Fwp-ga-count.php&plugin_status=all&paged=1&s&_wpnonce=d555341550
Aspect after-activation
HTTP status 200
Load time 0.482 s
Memory usage 2.71 MiB
JS errors None
Resource errors None

Settings → 設定 GA 帳號及參數

Page screenshot: Settings → 設定 GA 帳號及參數
URL /wp-admin/options-general.php?page=sig-ga-account
Aspect menu-item
HTTP status 200
Load time 0.444 s
Memory usage 2.68 MiB
JS errors None
Resource errors None

本月份GA資訊

Page screenshot: 本月份GA資訊
URL /wp-admin/admin.php?page=sig-view-ga
Aspect menu-item
HTTP status 200
Load time 0.308 s
Memory usage 2.67 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.296 s
Memory usage 2.64 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 1.114 s
Memory usage 2.78 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.538 s0.404 s-0.134 s2.79 MiB2.82 MiB+ 31.82 KiB
/wp-admin/edit.php0.231 s0.211 s-0.020 s2.84 MiB2.87 MiB+ 31.82 KiB
/wp-admin/post-new.php1.119 s0.819 s-0.300 s4.93 MiB4.98 MiB+ 44.12 KiB
/wp-admin/upload.php0.464 s0.539 s+0.075 s2.67 MiB2.69 MiB+ 27.46 KiB
/wp-admin/options-writing.php0.253 s0.241 s-0.012 s2.68 MiB2.68 MiB- 5.3 KiB
/wp-admin/media-new.php0.258 s0.494 s+0.236 s2.65 MiB2.67 MiB+ 26.9 KiB
/wp-admin/edit-tags.php?taxonomy=category0.195 s0.333 s+0.138 s2.68 MiB2.71 MiB+ 27.8 KiB
/wp-admin/post-new.php?post_type=page1.120 s1.602 s+0.482 s4.92 MiB4.95 MiB+ 27.7 KiB
/wp-admin/options-discussion.php0.483 s0.460 s-0.023 s2.65 MiB2.67 MiB+ 27.21 KiB
/wp-admin/edit-comments.php0.388 s0.226 s-0.162 s2.75 MiB2.77 MiB+ 26.75 KiB
/0.498 s0.306 s-0.192 s2.61 MiB2.64 MiB+ 23.38 KiB
Average 0.504 s0.512 s+0.008 s3.11 MiB3.13 MiB+ 26.33 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
PHP99.0%1,0483197
HTML0.8%901
CSS0.2%201
Total 1,059 319 9

PHP Code Analysis | More results »

Lines of code 914
Total complexity 215
Median class complexity 20.0
Median method complexity 2.0
Most complex class SigGaWidget
Most complex function gapi::requestReportData()
Classes 7
Methods 62
Functions 0

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.

Options wp_options 1

Sidebar Widgets 1

ID Name
sig-show-pageview顯示GA瀏覽人次統計

PHP Error Log 3 lines

[20-Feb-2021 14:15:50 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/show-google-analytics-widget/wp-ga-count.php on line 487
[20-Feb-2021 14:15:50 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/show-google-analytics-widget/wp-ga-count.php on line 511
[20-Feb-2021 14:15:50 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/show-google-analytics-widget/wp-ga-count.php on line 517
See also: All tests for this plugin, How to Hide Show Google Analytics widget Admin Menus