Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.86ms] Passed 4 tests
Analyzing server-side resources used by Lara's Google Analytics (GA4)
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 40.22 ▲0.02 |
Dashboard /wp-admin | 3.34 ▲0.04 | 48.52 ▲0.21 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 46.83 ▼0.37 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 83.64 ▼15.28 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.25 ▲2.28 |
Server storage [IO: ▲4.99MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 106 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_lrgawidget_global_settings |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
lrgalite-global_options |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Lara's Google Analytics (GA4): an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,574 ▲1,812 | 14.79 ▲0.44 | 1.76 ▲0.19 | 40.66 ▼2.30 |
Dashboard /wp-admin | 3,970 ▲1,796 | 6.14 ▲0.40 | 133.60 ▲41.46 | 100.09 ▲52.20 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.94 ▼0.05 | 40.46 ▲1.96 | 35.78 ▲0.09 |
Add New Post /wp-admin/post-new.php | 1,526 ▼14 | 23.33 ▼2.05 | 588.36 ▼123.47 | 58.32 ▼8.93 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.29 ▲0.09 | 97.28 ▼1.10 | 40.90 ▼0.08 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 take a closer look at the following
- 18× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/lara-google-analytics/core/system/wordpress/admin.actions.php
- > /wp-content/plugins/lara-google-analytics/core/lrgawidget.handler.php
- > /wp-content/plugins/lara-google-analytics/core/plugins/earnings/lrga_earnings_sales.php
- > /wp-content/plugins/lara-google-analytics/core/storage.class.php
- > /wp-content/plugins/lara-google-analytics/core/review.notice.php
- > /wp-content/plugins/lara-google-analytics/core/output.class.php
- > /wp-content/plugins/lara-google-analytics/core/system/wordpress/system.bootstrap.class.php
- > /wp-content/plugins/lara-google-analytics/core/system/wordpress/plugin.updater.class.php
- > /wp-content/plugins/lara-google-analytics/core/boot.php
- > /wp-content/plugins/lara-google-analytics/core/system/wordpress/plugin.actions.class.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: google analytics widget, google analytics plugin, analytics, google analytics, google analytics dashboard
lara-google-analytics/lara-google-analytics.php 92% from 13 tests
"Lara's Google Analytics (GA4)" version 4.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 153 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin33,453 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 398 | 172 | 18,575 |
SVG | 4 | 0 | 12 | 9,587 |
PHP | 18 | 491 | 149 | 2,959 |
JavaScript | 13 | 409 | 114 | 2,331 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 20.43 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 3.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 133 | |
▷ Static methods | 44 | 33.08% |
▷ Public methods | 76 | 57.14% |
▷ Protected methods | 12 | 9.02% |
▷ Private methods | 45 | 33.83% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 23 | |
▷ Global constants | 16 | 69.57% |
▷ Class constants | 7 | 30.43% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
15 PNG files occupy 0.31MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/img/flags.png | 78.01KB | 25.86KB | ▼ 66.85% |
dist/img/lrwidget_logo.png | 10.88KB | 4.29KB | ▼ 60.53% |
dist/plugins/colorbox/images/overlay.png | 0.11KB | 0.15KB | 0.00% |
dist/img/xtraorbit_logo.png | 27.78KB | 12.13KB | ▼ 56.34% |
dist/plugins/minicolors/jquery.minicolors.png | 67.02KB | 34.31KB | ▼ 48.80% |