Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.77MB] [CPU: ▼1.63ms] Passed 4 tests
Server-side resources used by Analytics Insights for Google Analytics 4 (AIWP)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.03 ▲0.57 | 48.34 ▲5.29 |
Dashboard /wp-admin | 4.18 ▲0.83 | 54.80 ▼14.34 |
Posts /wp-admin/edit.php | 4.23 ▲0.87 | 56.75 ▲11.30 |
Add New Post /wp-admin/post-new.php | 6.71 ▲0.82 | 90.94 ▼3.48 |
Media Library /wp-admin/upload.php | 4.16 ▲0.93 | 40.28 ▲6.00 |
Tracking Code /wp-admin/admin.php?page=aiwp_tracking_settings | 4.16 | 38.03 |
Frontend Settings /wp-admin/admin.php?page=aiwp_frontend_settings | 4.16 | 43.27 |
General Settings /wp-admin/admin.php?page=aiwp_settings | 4.16 | 39.17 |
Errors & Debug /wp-admin/admin.php?page=aiwp_errors_debugging | 4.16 | 42.11 |
Backend Settings /wp-admin/admin.php?page=aiwp_backend_settings | 4.16 | 38.58 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 84 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
aiwp_options |
widget_aiwp-frontwidget-report |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Analytics Insights for Google Analytics 4 (AIWP)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,979 ▲232 | 16.03 ▲1.67 | 5.51 ▲3.81 | 36.40 ▼7.70 |
Dashboard /wp-admin | 2,366 ▲186 | 7.35 ▲1.69 | 132.41 ▲38.94 | 43.89 ▲3.18 |
Posts /wp-admin/edit.php | 2,203 ▲103 | 4.29 ▲2.28 | 54.65 ▲18.22 | 49.56 ▲13.66 |
Add New Post /wp-admin/post-new.php | 1,564 ▲28 | 23.28 ▲0.17 | 685.80 ▲68.76 | 62.18 ▲5.26 |
Media Library /wp-admin/upload.php | 1,440 ▲43 | 4.21 ▼0.02 | 100.74 ▲0.70 | 41.56 ▼0.12 |
Tracking Code /wp-admin/admin.php?page=aiwp_tracking_settings | 3,020 | 8.07 | 235.11 | 69.14 |
Frontend Settings /wp-admin/admin.php?page=aiwp_frontend_settings | 1,359 | 7.93 | 189.61 | 49.39 |
General Settings /wp-admin/admin.php?page=aiwp_settings | 1,311 | 7.98 | 144.50 | 42.15 |
Errors & Debug /wp-admin/admin.php?page=aiwp_errors_debugging | 1,379 | 7.97 | 143.46 | 45.47 |
Backend Settings /wp-admin/admin.php?page=aiwp_backend_settings | 1,485 | 7.92 | 143.65 | 48.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_aiwp-frontwidget-report
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please fix the following
- 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_js() in wp-content/plugins/analytics-insights/front/views/tagmanager-amp-code.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses() in wp-content/plugins/analytics-insights/front/views/analytics-amp-code.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses() in wp-content/plugins/analytics-insights/front/views/tagmanager-code.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_js() in wp-content/plugins/analytics-insights/front/views/analytics-optout-code.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/analytics-insights/front/views/analytics-code.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function AIWP() in wp-content/plugins/analytics-insights/admin/views/settings-sidebar.php:3
- > PHP Notice
Undefined index: state in wp-content/plugins/analytics-insights/tools/oauth2callback.php on line 3
- > PHP Warning
Use of undefined constant AIWP_CURRENT_VERSION - assumed 'AIWP_CURRENT_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/analytics-insights/front/views/tagmanager-code.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_js() in wp-content/plugins/analytics-insights/front/views/optimize-code.php:20
- > PHP Warning
Use of undefined constant AIWP_CURRENT_VERSION - assumed 'AIWP_CURRENT_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/analytics-insights/front/views/analytics-code.php on line 11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: google analytics, google analytics 4, wordpress analytics, analytics, ga4...
analytics-insights/analytics-insights.php 92% from 13 tests
This is the main PHP file of "Analytics Insights for Google Analytics 4 (AIWP)" version 6.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 148 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin7,817 lines of code in 60 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 290 | 823 | 5,065 |
JavaScript | 18 | 385 | 223 | 1,751 |
CSS | 14 | 169 | 60 | 1,001 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 38.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 285.00 |
Average method complexity | 7.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 24 | 100.00% |
▷ Final classes | 12 | 50.00% |
Methods | 145 | |
▷ Static methods | 43 | 29.66% |
▷ Public methods | 112 | 77.24% |
▷ Protected methods | 4 | 2.76% |
▷ Private methods | 29 | 20.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
22 compressed PNG files occupy 0.10MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
common/realtime/images/ui-icons_888888_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
common/realtime/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
common/realtime/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
common/realtime/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
common/realtime/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |