Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.79MB] [CPU: ▼3.53ms] Passed 4 tests
Analyzing server-side resources used by GAinWP Google Analytics Integration for WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.95 ▲0.49 | 45.59 ▲4.08 |
Dashboard /wp-admin | 4.24 ▲0.93 | 53.69 ▲2.21 |
Posts /wp-admin/edit.php | 4.24 ▲0.88 | 53.63 ▲1.95 |
Add New Post /wp-admin/post-new.php | 6.72 ▲0.83 | 87.67 ▼22.36 |
Media Library /wp-admin/upload.php | 4.24 ▲1.01 | 45.07 ▲9.32 |
Reporting Settings /wp-admin/admin.php?page=gainwp_report_settings | 4.24 | 39.49 |
Tracking Settings /wp-admin/admin.php?page=gainwp_tracking_settings | 4.24 | 40.64 |
Errors & Debug /wp-admin/admin.php?page=gainwp_errors_debugging | 4.24 | 37.25 |
General Settings /wp-admin/admin.php?page=gainwp_settings | 6.61 | 44.81 |
Server storage [IO: ▲1.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 133 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
gainwp_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_gainwp-frontwidget-report |
Browser metrics Passed 4 tests
A check of browser resources used by GAinWP Google Analytics Integration for WordPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,947 ▲201 | 15.57 ▲1.40 | 1.76 ▲0.01 | 42.27 ▼0.68 |
Dashboard /wp-admin | 2,360 ▲178 | 7.44 ▲1.45 | 130.07 ▲18.91 | 38.52 ▼5.13 |
Posts /wp-admin/edit.php | 2,193 ▲104 | 4.20 ▲2.14 | 50.38 ▲7.82 | 32.85 ▼2.05 |
Add New Post /wp-admin/post-new.php | 1,549 ▲11 | 23.22 ▲0.12 | 673.61 ▼0.25 | 57.89 ▲3.10 |
Media Library /wp-admin/upload.php | 1,433 ▲45 | 4.22 ▼0.01 | 104.20 ▲1.63 | 46.62 ▲1.30 |
Reporting Settings /wp-admin/admin.php?page=gainwp_report_settings | 1,293 | 2.18 | 25.31 | 38.70 |
Tracking Settings /wp-admin/admin.php?page=gainwp_tracking_settings | 3,055 | 2.12 | 35.77 | 35.48 |
Errors & Debug /wp-admin/admin.php?page=gainwp_errors_debugging | 1,108 | 2.08 | 31.42 | 35.60 |
General Settings /wp-admin/admin.php?page=gainwp_settings | 1,103 | 1.94 | 31.86 | 33.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_gainwp-frontwidget-report
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 7× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/ga-in/front/views/analytics-amp-clientidapi.php
- > /wp-content/plugins/ga-in/front/views/optimize-code.php
- > /wp-content/plugins/ga-in/front/views/analytics-amp-code.php
- > /wp-content/plugins/ga-in/front/views/analytics-code.php
- > /wp-content/plugins/ga-in/front/views/tagmanager-amp-code.php
- > /wp-content/plugins/ga-in/front/views/tagmanager-code.php
- > /wp-content/plugins/ga-in/front/views/analytics-optout-code.php
- 28× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: data in wp-content/plugins/ga-in/front/views/tagmanager-code.php on line 19
- > PHP Notice
Undefined variable: data in wp-content/plugins/ga-in/front/views/analytics-optout-code.php on line 11
- > PHP Warning
Use of undefined constant GAINWP_CURRENT_VERSION - assumed 'GAINWP_CURRENT_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/ga-in/front/views/analytics-code.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/ga-in/admin/views/access-code.php:8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ga-in/front/views/analytics-amp-code.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'Deconfin_Service' not found in wp-content/plugins/ga-in/tools/src/Deconfin/Service/Analytics.php:29
- > PHP Notice
Undefined variable: data in wp-content/plugins/ga-in/front/views/analytics-amp-code.php on line 10
- > PHP Notice
Undefined variable: data in wp-content/plugins/ga-in/front/views/analytics-code.php on line 16
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ga-in/front/views/analytics-code.php on line 9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ga-in/front/views/analytics-optout-code.php on line 11
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: google analytics code, google analytics dashboard, analytics, google analytics plugin, google analytics widget...
ga-in/gainwp.php 92% from 13 tests
The main PHP file in "GAinWP Google Analytics Integration for WordPress" ver. 5.4.6 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("ga-in.php" instead of "gainwp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected18,685 lines of code in 95 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 75 | 1,792 | 4,764 | 18,228 |
JavaScript | 12 | 10 | 0 | 449 |
CSS | 8 | 0 | 4 | 8 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 8.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 210.00 |
Average method complexity | 1.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 76.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 188 | |
▷ Abstract classes | 6 | 3.19% |
▷ Concrete classes | 182 | 96.81% |
▷ Final classes | 12 | 6.59% |
Methods | 1,728 | |
▷ Static methods | 48 | 2.78% |
▷ Public methods | 1,636 | 94.68% |
▷ Protected methods | 24 | 1.39% |
▷ Private methods | 68 | 3.94% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 58 | |
▷ Global constants | 6 | 10.34% |
▷ Class constants | 52 | 89.66% |
▷ Public constants | 52 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
34 compressed PNG files occupy 0.11MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
realtime/jquery/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
realtime/jquery/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
realtime/jquery/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
realtime/jquery/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
admin/images/star.png | 1.47KB | 1.39KB | ▼ 5.31% |