Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.04ms] Passed 4 tests
Analyzing server-side resources used by Event Tracking for Gravity Forms
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 43.76 ▲4.32 |
Dashboard /wp-admin | 3.34 ▼0.01 | 44.22 ▼13.63 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 44.86 ▼2.67 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 90.69 ▼11.14 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.42 ▼0.70 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Event Tracking for Gravity Forms
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.22 ▼1.36 | 1.93 ▲0.09 | 48.93 ▲7.05 |
Dashboard /wp-admin | 2,209 ▲21 | 4.87 ▼1.03 | 101.96 ▲1.37 | 39.10 ▼5.61 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.04 | 40.90 ▲0.43 | 34.57 ▼1.16 |
Add New Post /wp-admin/post-new.php | 1,514 ▼16 | 17.65 ▼0.38 | 659.13 ▼20.62 | 51.98 ▼18.13 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.20 ▼0.01 | 94.28 ▼8.55 | 42.28 ▼4.40 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'GFForms' not found in wp-content/plugins/gravity-forms-google-analytics-event-tracking/includes/GFGAET_Pagination_Settings.php:2
- > PHP Fatal error
Uncaught Error: Class 'GFForms' not found in wp-content/plugins/gravity-forms-google-analytics-event-tracking/includes/GFGAET_Partial_Entries.php:3
- > PHP Fatal error
Uncaught Error: Class 'GFForms' not found in wp-content/plugins/gravity-forms-google-analytics-event-tracking/includes/GFGAET_UA.php:2
- > PHP Fatal error
Uncaught Error: Class 'GFForms' not found in wp-content/plugins/gravity-forms-google-analytics-event-tracking/includes/GFGAET_Submission_Feeds.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
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
6 plugin tags: event tracking, matomo, piwik, google tag manager, gravity forms...
gravity-forms-google-analytics-event-tracking/gravity-forms-event-tracking.php 92% from 13 tests
The main PHP script in "Event Tracking for Gravity Forms" version 2.4.14 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("gravity-forms-google-analytics-event-tracking.php" instead of "gravity-forms-event-tracking.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin2,016 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 322 | 967 | 1,861 |
SVG | 3 | 0 | 1 | 65 |
CSS | 1 | 1 | 1 | 56 |
JavaScript | 2 | 0 | 0 | 34 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 94.00 |
Average method complexity | 3.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 94 | |
▷ Static methods | 18 | 19.15% |
▷ Public methods | 76 | 80.85% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 19.15% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/analytics.png | 9.84KB | 5.20KB | ▼ 47.20% |
img/gravity-forms-ga-addon-horizontal.png | 54.49KB | 20.72KB | ▼ 61.97% |
img/google-brands.png | 11.66KB | 6.43KB | ▼ 44.84% |
img/gravity-forms-logo-horizontal.png | 5.09KB | 2.64KB | ▼ 48.24% |
img/gtm.png | 51.81KB | 19.59KB | ▼ 62.18% |