Show Google Analytics widget 1.5.3

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

Summary

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

Memory usage: 34.7 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.8.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=ab79c75fad
Aspect after-activation
HTTP status 200
Load time 0.298 s
Memory usage 3.07 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.258 s
Memory usage N/A
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.132 s
Memory usage 3.03 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.164 s
Memory usage 2.94 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.121 s
Memory usage 4.49 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.316 s0.246 s-0.070 s3.08 MiB3.12 MiB+ 35.34 KiB
/wp-admin/edit.php0.190 s0.187 s-0.003 s3.11 MiB3.21 MiB+ 99.34 KiB
/wp-admin/post-new.php1.223 s0.935 s-0.288 s5.27 MiB5.31 MiB+ 40.26 KiB
/wp-admin/upload.php0.531 s0.405 s-0.126 s3.03 MiB3.06 MiB+ 34.94 KiB
/wp-admin/options-writing.php0.142 s0.184 s+0.042 s3.02 MiB3.04 MiB+ 18.18 KiB
/wp-admin/media-new.php0.230 s0.220 s-0.010 s3.01 MiB3.04 MiB+ 34.38 KiB
/wp-admin/edit-tags.php?taxonomy=category0.184 s0.181 s-0.003 s3.04 MiB3.07 MiB+ 35.28 KiB
/wp-admin/post-new.php?post_type=page0.985 s0.886 s-0.099 s5.26 MiB5.29 MiB+ 35.84 KiB
/wp-admin/options-discussion.php0.278 s0.286 s+0.008 s3 MiB3.04 MiB+ 34.69 KiB
/wp-admin/edit-comments.php0.214 s0.204 s-0.010 s3.04 MiB3.08 MiB+ 34.23 KiB
/0.297 s0.259 s-0.038 s2.96 MiB2.94 MiB- 20.77 KiB
Average 0.417 s0.363 s-0.054 s3.44 MiB3.47 MiB+ 34.7 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.1%1,2373299
HTML0.7%901
CSS0.2%201
Total 1,248 329 11

PHP Code Analysis | More results »

Lines of code 1,085
Total complexity 279
Median class complexity 21.0
Median method complexity 2.0
Most complex class SigGaWidget
Most complex function SigGaWidget::show_ga_views_widget()
Classes 9
Methods 69
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 2

Sidebar Widgets 2

ID Name
sig-show-pageview顯示GA瀏覽統計
sig-show-hot顯示GA熱門文章

PHP Error Log 2 lines

[14-Sep-2021 01:02:48 UTC] PHP Warning:  require_once(/wp-content/plugins/show-google-analytics-widget/templates/setup.php): failed to open stream: No such file or directory in /wp-content/plugins/show-google-analytics-widget/wp-ga-count.php on line 343
[14-Sep-2021 01:02:48 UTC] PHP Fatal error:  require_once(): Failed opening required '/wp-content/plugins/show-google-analytics-widget/templates/setup.php' (include_path='.:/opt/bitnami/php/lib/php') in /wp-content/plugins/show-google-analytics-widget/wp-ga-count.php on line 343
See also: All tests for this plugin, How to Hide Show Google Analytics widget Admin Menus