Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/better-analytics/library/DigitalPointBetterAnalytics/Base/Admin.php+57
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.42MB] [CPU: ▼2.21ms] Passed 4 tests
An overview of server-side resources used by Better Google Analytics
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.31 | 45.83 ▼1.16 |
Dashboard /wp-admin | 3.77 ▲0.46 | 52.66 ▲1.45 |
Posts /wp-admin/edit.php | 3.81 ▲0.46 | 58.24 ▲5.64 |
Add New Post /wp-admin/post-new.php | 6.41 ▲0.52 | 89.83 ▼12.94 |
Media Library /wp-admin/upload.php | 3.67 ▲0.44 | 40.12 ▲3.83 |
A/B Testing /wp-admin/admin.php?page=better-analytics_experiments | 3.85 | 38.98 |
Issue Monitor /wp-admin/admin.php?page=better-analytics_monitor | 3.85 | 37.00 |
Test Setup /wp-admin/tools.php?page=better-analytics_test | 3.99 | 43.72 |
Goals /wp-admin/admin.php?page=better-analytics_goals | 3.85 | 37.72 |
Charts /wp-admin/admin.php?page=better-analytics_areacharts | 3.85 | 42.18 |
Reports /wp-admin/admin.php?page=better-analytics_heatmaps | 3.85 | 40.54 |
Settings /wp-admin/options-general.php?page=better-analytics | 4.07 | 38.01 |
Events /wp-admin/admin.php?page=better-analytics_events | 3.85 | 40.74 |
OAuth2 Endpoint /wp-admin/tools.php?page=better-analytics_auth | 3.88 | 39.12 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 49 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_better-analytics_stats_widget |
better_analytics |
widget_better-analytics_popular_widget |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Better Google Analytics
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,059 ▲298 | 15.92 ▲1.54 | 25.16 ▲23.49 | 43.15 ▼2.01 |
Dashboard /wp-admin | 2,361 ▲155 | 6.94 ▲1.96 | 128.31 ▲23.79 | 39.39 ▼5.64 |
Posts /wp-admin/edit.php | 2,186 ▲86 | 2.19 ▲0.22 | 40.33 ▼0.64 | 38.75 ▼1.28 |
Add New Post /wp-admin/post-new.php | 1,596 ▲51 | 17.71 ▼5.38 | 603.23 ▼87.54 | 58.17 ▼0.10 |
Media Library /wp-admin/upload.php | 1,483 ▲83 | 4.22 ▲0.01 | 99.98 ▲0.95 | 42.46 ▼0.04 |
A/B Testing /wp-admin/admin.php?page=better-analytics_experiments | 845 | 2.04 | 23.46 | 25.79 |
Issue Monitor /wp-admin/admin.php?page=better-analytics_monitor | 845 | 2.07 | 25.24 | 25.01 |
Test Setup /wp-admin/tools.php?page=better-analytics_test | 1,350 | 2.20 | 25.93 | 40.21 |
Goals /wp-admin/admin.php?page=better-analytics_goals | 854 | 2.20 | 29.53 | 24.06 |
Charts /wp-admin/admin.php?page=better-analytics_areacharts | 844 | 2.04 | 24.76 | 25.21 |
Reports /wp-admin/admin.php?page=better-analytics_heatmaps | 844 | 2.19 | 24.33 | 23.62 |
Settings /wp-admin/options-general.php?page=better-analytics | 2,432 | 2.62 | 57.82 | 42.74 |
Events /wp-admin/admin.php?page=better-analytics_events | 844 | 2.19 | 24.11 | 26.85 |
OAuth2 Endpoint /wp-admin/tools.php?page=better-analytics_auth | 503 | 3.05 | 78.86 | 88.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 8 options
- widget_recent-comments
- widget_better-analytics_popular_widget
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_better-analytics_stats_widget
- can_compress_scripts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 4 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=better-analytics_auth
- > Notice in wp-content/plugins/better-analytics/library/DigitalPointBetterAnalytics/Helper/Reporting.php+110
Undefined index: api
- 16 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=better-analytics_auth
- > Notice in wp-content/plugins/better-analytics/library/DigitalPointBetterAnalytics/Helper/Reporting.php+110
Trying to access array offset on value of type null
- > GET request to /wp-admin/tools.php?page=better-analytics_test
- > Notice in wp-content/plugins/better-analytics/library/DigitalPointBetterAnalytics/ViewAdmin/test.php+369
Undefined index: siteSearchSetup
- > GET request to /wp-admin/tools.php?page=better-analytics_test
- > Notice in wp-content/plugins/better-analytics/library/DigitalPointBetterAnalytics/ViewAdmin/test.php+382
Undefined index: ecommerceTracking
- > GET request to /wp-admin/tools.php?page=better-analytics_test
- > Notice in wp-content/plugins/better-analytics/library/DigitalPointBetterAnalytics/ViewAdmin/test.php+396
Undefined index: enhancedEcommerceTracking
- > GET request to /wp-admin/tools.php?page=better-analytics_test
- > Notice in wp-content/plugins/better-analytics/library/DigitalPointBetterAnalytics/ViewAdmin/test.php+414
Undefined index: industryVertical
- 12 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=better-analytics
- > Notice in wp-content/plugins/better-analytics/library/DigitalPointBetterAnalytics/ViewAdmin/config.php+628
Undefined index: dimension
- > GET request to /wp-admin/options-general.php?page=better-analytics
- > Notice in wp-content/plugins/better-analytics/library/DigitalPointBetterAnalytics/ViewAdmin/config.php+267
Undefined index: user_engagement
- > GET request to /wp-admin/options-general.php?page=better-analytics
- > Notice in wp-content/plugins/better-analytics/library/DigitalPointBetterAnalytics/ViewAdmin/config.php+314
Undefined index: page_scroll
- > GET request to /wp-admin/options-general.php?page=better-analytics
- > Notice in wp-content/plugins/better-analytics/library/DigitalPointBetterAnalytics/ViewAdmin/config.php+320
Undefined index: time_on_page
- > GET request to /wp-admin/options-general.php?page=better-analytics
- > Notice in wp-content/plugins/better-analytics/library/DigitalPointBetterAnalytics/ViewAdmin/config.php+1160
Undefined index: extra_js
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/better-analytics/js/loader.php
- > /wp-content/plugins/better-analytics/better-analytics.php
- 20× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/better-analytics/library/DigitalPointBetterAnalytics/Formatting/ExperimentTable.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/better-analytics/library/DigitalPointBetterAnalytics/ViewAdmin/goals.php:3
- > PHP Fatal error
Uncaught Error: Class 'DigitalPointBetterAnalytics_Helper_Reporting_Advanced' not found in wp-content/plugins/better-analytics/library/DigitalPointBetterAnalytics/Helper/Reporting.php:3
- > PHP Fatal error
Uncaught Error: Class 'DigitalPointBetterAnalytics_Helper_Analytics_Advanced' not found in wp-content/plugins/better-analytics/library/DigitalPointBetterAnalytics/Helper/Analytics.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/better-analytics/library/DigitalPointBetterAnalytics/ViewAdmin/reports/heatmaps.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/better-analytics/library/DigitalPointBetterAnalytics/Widget/Stats.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/better-analytics/library/DigitalPointBetterAnalytics/ViewAdmin/config_network.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/better-analytics/library/DigitalPointBetterAnalytics/ViewAdmin/experiments.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/better-analytics/library/DigitalPointBetterAnalytics/Widget/PopularPosts.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/better-analytics/library/DigitalPointBetterAnalytics/ViewAdmin/test.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 39 tag instead of maximum 10
better-analytics/better-analytics.php 92% from 13 tests
The main PHP file in "Better Google Analytics" ver. 1.2.7 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 340 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected8,657 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 1,811 | 236 | 8,270 |
CSS | 3 | 25 | 10 | 243 |
Markdown | 1 | 6 | 0 | 59 |
JSON | 1 | 0 | 0 | 44 |
JavaScript | 4 | 0 | 1 | 41 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 28.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 119.00 |
Average method complexity | 3.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 6 | 25.00% |
▷ Concrete classes | 18 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 256 | |
▷ Static methods | 61 | 23.83% |
▷ Public methods | 166 | 64.84% |
▷ Protected methods | 87 | 33.98% |
▷ Private methods | 3 | 1.17% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/chosen/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
assets/chosen/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |