Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.34MB] [CPU: ▼2.87ms] Passed 4 tests
This is a short check of server-side resources used by WP Google Analytics Events - No-Code Custom Event Tracking for Google Analytics
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 39.83 ▼3.46 |
Dashboard /wp-admin | 3.73 ▲0.42 | 47.52 ▼4.09 |
Posts /wp-admin/edit.php | 3.78 ▲0.42 | 46.58 ▲1.11 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.36 | 89.56 ▼5.05 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 39.36 ▲7.76 |
Scroll Tracking /wp-admin/admin.php?page=wp-google-analytics-events-scroll | 3.61 | 41.25 |
General Settings /wp-admin/admin.php?page=wp-google-analytics-events | 3.56 | 32.14 |
Upgrade Now /wp-admin/admin.php?page=wp-google-analytics-events-upgrade | 3.53 | 32.28 |
Getting Started Guide /wp-admin/admin.php?page=wp-google-analytics-events-getstarted | 3.56 | 35.40 |
What's New /wp-admin/admin.php?page=wp-google-analytics-events-whatsnew | 3.56 | 30.63 |
Click Tracking /wp-admin/admin.php?page=wp-google-analytics-events-click | 3.61 | 34.89 |
Server storage [IO: ▲3.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 75 new files
Database: no new tables, 9 new options
New WordPress options |
---|
ga_events_activation_date |
widget_theysaidso_widget |
ga_events_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
GA_EVENTS_version |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Google Analytics Events - No-Code Custom Event Tracking for Google Analytics
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,975 ▲240 | 13.73 ▼0.84 | 8.71 ▲6.72 | 42.31 ▼0.21 |
Dashboard /wp-admin | 2,300 ▲112 | 5.84 ▼0.00 | 99.50 ▼12.02 | 89.56 ▲43.56 |
Posts /wp-admin/edit.php | 2,182 ▲93 | 2.15 ▲0.12 | 34.53 ▼1.85 | 38.20 ▲3.56 |
Add New Post /wp-admin/post-new.php | 1,667 ▲153 | 22.77 ▲5.09 | 680.33 ▼2.47 | 44.56 ▼10.13 |
Media Library /wp-admin/upload.php | 1,479 ▲91 | 4.26 ▲0.10 | 100.00 ▼9.63 | 81.44 ▲37.14 |
Scroll Tracking /wp-admin/admin.php?page=wp-google-analytics-events-scroll | 1,453 | 12.93 | 175.02 | 51.32 |
General Settings /wp-admin/admin.php?page=wp-google-analytics-events | 1,290 | 15.37 | 175.26 | 63.61 |
Upgrade Now /wp-admin/admin.php?page=wp-google-analytics-events-upgrade | 685 | 7.28 | 108.84 | 26.37 |
Getting Started Guide /wp-admin/admin.php?page=wp-google-analytics-events-getstarted | 790 | 10.52 | 114.45 | 39.06 |
What's New /wp-admin/admin.php?page=wp-google-analytics-events-whatsnew | 822 | 10.51 | 107.53 | 33.86 |
Click Tracking /wp-admin/admin.php?page=wp-google-analytics-events-click | 1,446 | 10.97 | 129.77 | 44.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 9 options in the database
- widget_recent-posts
- GA_EVENTS_version
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- ga_events_activation_date
- theysaidso_admin_options
- ga_events_options
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=wp-google-analytics-events-upgrade
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'ga_events_settings_page' not found or invalid function name
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 6× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-google-analytics-events/ga-scroll-event.php
- > /wp-content/plugins/wp-google-analytics-events/templates/getting-started-guide-section.php
- > /wp-content/plugins/wp-google-analytics-events/templates/whats-new-section-content.php
- > /wp-content/plugins/wp-google-analytics-events/include/Settings.php
- > /wp-content/plugins/wp-google-analytics-events/include/Activation.php
- > /wp-content/plugins/wp-google-analytics-events/main-plugin-file-sketch.php
- 14× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wp-google-analytics-events/include/TrackingTable.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wp-google-analytics-events/templates/scroll-tracking-modals.php:52
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-google-analytics-events/include/TrackingTable.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-google-analytics-events/include/saved-snippets.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wp-google-analytics-events/templates/click-tracking-modals.php:52
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-google-analytics-events/include/TrackingTable.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'GAE_PLUGIN_PATHinclude/TrackingTable.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-google-analytics-events/templates/scroll-elements-input-table.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/wp-google-analytics-events/templates/reports.php:3
- > PHP Fatal error
require_once(): Failed opening required 'GAE_PLUGIN_PATHinclude/TrackingTable.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-google-analytics-events/templates/click-elements-input-table.php on line 3
- > PHP Warning
Use of undefined constant GAE_PLUGIN_PATH - assumed 'GAE_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-google-analytics-events/templates/click-elements-input-table.php on line 3
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-google-analytics-events-click
- > Console-api (warning) in unknown
https://cdn.tailwindcss.com/ 61:1708 "cdn.tailwindcss.com should not be used in production. To use Tailwind CSS in production, install it as a PostCSS plugin or use the Tailwind CLI: https://tailwindcss.com/docs/installation"
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-google-analytics-events-click
- > Console-api (warning) in unknown
/wp-content/plugins/wp-google-analytics-events/js/dist/admin-scripts-libs.js?ver=1 4049:17 "jQuery.Deferred exception: Cannot set properties of null (setting 'innerHTML')" "TypeError: Cannot set properties of null (setting 'innerHTML')\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wp-google-analytics-events/js/dist/admin-scripts.min.js?ver=1:6:21)\n at mightThrow (/wp-content/plugins/wp-google-analytics-events/js/dist/admin-scripts-libs.js?ver=1:3766:29)\n at process (/wp-content/plugins/wp-google-analytics-events/js/dist/admin-scripts-libs.js?ver=1:3834:12)" undefined
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-google-analytics-events-click
- > Javascript (severe) in unknown
/wp-content/plugins/wp-google-analytics-events/js/dist/admin-scripts-libs.js?ver=1 4058:2 Uncaught TypeError: Cannot set properties of null (setting 'innerHTML')
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: A description for screenshot #4 is missing in wp-google-analytics-events/assets to your readme.txt
wp-google-analytics-events/ga-scroll-event.php 92% from 13 tests
"WP Google Analytics Events - No-Code Custom Event Tracking for Google Analytics" version 2.8.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-google-analytics-events.php" instead of "ga-scroll-event.php")
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
There were no executable files found in this plugin20,495 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 22 | 4,712 | 4,239 | 16,723 |
PHP | 19 | 525 | 280 | 2,890 |
CSS | 4 | 148 | 36 | 850 |
SVG | 1 | 2 | 0 | 31 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 26.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 3.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 98 | |
▷ Static methods | 26 | 26.53% |
▷ Public methods | 94 | 95.92% |
▷ Protected methods | 1 | 1.02% |
▷ Private methods | 3 | 3.06% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
25 PNG files occupy 0.86MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/bg_icon_support.png | 2.35KB | 1.26KB | ▼ 46.49% |
click-tracking-page.png | 139.81KB | 44.43KB | ▼ 68.22% |
css/third-party/images/ui-icons_777620_256x240.png | 4.51KB | 4.18KB | ▼ 7.28% |
images/wpflow-logo-banner.png | 35.67KB | 12.03KB | ▼ 66.28% |
images/ga-help.png | 0.46KB | 0.45KB | 0.21% |