Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲5.41MB] [CPU: ▲20.17ms] 75% from 4 tests
An overview of server-side resources used by Goal Tracker - Custom Event Tracking for GA4
It is recommended to improve the following
- Extra RAM: The extra memory usage must be under 5MB (currently 5.41MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.22 ▲5.75 | 62.24 ▲24.34 |
Dashboard /wp-admin | 9.24 ▲5.93 | 68.89 ▲18.19 |
Posts /wp-admin/edit.php | 9.24 ▲5.88 | 81.96 ▲34.66 |
Add New Post /wp-admin/post-new.php | 9.97 ▲4.08 | 108.43 ▲7.99 |
Media Library /wp-admin/upload.php | 9.24 ▲6.01 | 66.15 ▲30.15 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 9.24 | 60.05 |
Server storage [IO: ▲4.78MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 336 new files
Database: no new tables, 11 new options
New WordPress options |
---|
fs_accounts |
fs_active_plugins |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
fs_debug_mode |
wp_goal_tracker_ga_options |
gtga_activation_timestamp |
... |
Browser metrics Passed 4 tests
Goal Tracker - Custom Event Tracking for GA4: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,953 ▲191 | 13.62 ▼0.66 | 15.21 ▲13.26 | 32.49 ▼11.63 |
Dashboard /wp-admin | 2,246 ▲68 | 5.62 ▼0.00 | 85.52 ▼14.46 | 43.63 ▲3.45 |
Posts /wp-admin/edit.php | 2,152 ▲52 | 1.99 ▼0.01 | 36.07 ▼1.27 | 35.18 ▼0.73 |
Add New Post /wp-admin/post-new.php | 1,544 ▲18 | 23.55 ▲0.45 | 665.24 ▼20.81 | 64.58 ▲8.43 |
Media Library /wp-admin/upload.php | 1,448 ▲45 | 4.17 ▼0.04 | 96.88 ▼5.97 | 43.91 ▼2.34 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,103 | 1.67 | 24.45 | 28.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/goal-tracker-ga/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 11 options
- fs_accounts
- wp_goal_tracker_ga_options
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- gtga_activation_timestamp
- fs_debug_mode
- fs_active_plugins
- widget_recent-posts
- ...
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
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/goal-tracker-ga/admin/partials/wp-goal-tracker-display.php
- > /wp-content/plugins/goal-tracker-ga/public/partials/wp-goal-tracker-ga-public-display.php
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 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: ga4, analytics, wordpress, events
goal-tracker-ga/goal-tracker-ga.php 92% from 13 tests
Analyzing the main PHP file in "Goal Tracker - Custom Event Tracking for GA4" version 1.0.16
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin44,712 lines of code in 260 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 131 | 8,228 | 18,275 | 34,227 |
TypeScript | 50 | 381 | 142 | 4,242 |
JavaScript | 39 | 265 | 316 | 3,257 |
CSS | 16 | 315 | 116 | 2,375 |
SVG | 18 | 21 | 0 | 489 |
XML | 2 | 0 | 0 | 64 |
JSON | 4 | 0 | 0 | 58 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 77.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 58 | |
▷ Abstract classes | 2 | 3.45% |
▷ Concrete classes | 56 | 96.55% |
▷ Final classes | 0 | 0.00% |
Methods | 1,326 | |
▷ Static methods | 203 | 15.31% |
▷ Public methods | 919 | 69.31% |
▷ Protected methods | 17 | 1.28% |
▷ Private methods | 390 | 29.41% |
Functions | 133 | |
▷ Named functions | 121 | 90.98% |
▷ Anonymous functions | 12 | 9.02% |
Constants | 149 | |
▷ Global constants | 102 | 68.46% |
▷ Class constants | 47 | 31.54% |
▷ Public constants | 47 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
20 PNG files occupy 0.76MB with 0.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
common/ui/src/assets/images/help-measurement-id.png | 57.44KB | 17.25KB | ▼ 69.98% |
public/images/icon-256x256.png | 9.25KB | 3.02KB | ▼ 67.36% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
common/ui/src/assets/images/search-400.png | 3.38KB | 3.21KB | ▼ 5.31% |
apps/basic/build/images/help-measurement-id.2f22bbe3.png | 57.44KB | 17.25KB | ▼ 69.98% |