Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼15.51ms] Passed 4 tests
Analyzing server-side resources used by Sig GA4 Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 42.00 ▼4.00 |
Dashboard /wp-admin | 3.57 ▲0.22 | 52.84 ▼12.44 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 51.45 ▼5.31 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 90.53 ▼40.28 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 42.47 ▲5.95 |
GA4 widget config /wp-admin/options-general.php?page=siga4w_setting | 3.44 | 37.34 |
Server storage [IO: ▲7.68MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 989 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
_siga4w_setting |
Browser metrics Passed 4 tests
Sig GA4 Widget: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,913 ▲152 | 13.80 ▼0.58 | 8.59 ▲5.65 | 40.37 ▲2.54 |
Dashboard /wp-admin | 2,218 ▲38 | 5.63 ▼0.02 | 87.31 ▼9.26 | 41.68 ▼6.43 |
Posts /wp-admin/edit.php | 2,120 ▲20 | 1.96 ▼0.05 | 36.47 ▼5.05 | 31.80 ▼9.70 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 23.09 ▼0.32 | 675.17 ▲6.99 | 62.30 ▲2.18 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.20 ▼0.02 | 116.12 ▲3.56 | 48.46 ▲2.25 |
GA4 widget config /wp-admin/options-general.php?page=siga4w_setting | 1,089 | 1.65 | 28.06 | 80.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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 fix the following
- 477× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/sig-ga4-widget/vendor/google/longrunning/src/LongRunning/ListOperationsRequest.php:16
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/sig-ga4-widget/vendor/google/analytics-data/src/V1beta/DateRange.php:17
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/sig-ga4-widget/vendor/google/protobuf/src/Google/Protobuf/Type.php:16
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/sig-ga4-widget/vendor/google/common-protos/src/Type/Quaternion.php:58
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/sig-ga4-widget/vendor/google/common-protos/src/Api/Expr/V1alpha1/Value.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/sig-ga4-widget/vendor/google/protobuf/src/Google/Protobuf/Internal/TimestampBase.php:9
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/sig-ga4-widget/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:20
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/sig-ga4-widget/vendor/google/longrunning/src/LongRunning/DeleteOperationRequest.php:16
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/sig-ga4-widget/vendor/google/analytics-data/src/V1beta/Filter.php:16
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/sig-ga4-widget/vendor/google/analytics-data/src/V1alpha/DimensionHeader.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
7 plugin tags: tracking, ga4, analytics, ga, pixnet...
sig-ga4-widget/sig-ga4-widget.php Passed 13 tests
The main PHP script in "Sig GA4 Widget" version 1.0.1 is automatically included on every request by WordPress
63 characters long description:
Use Google Analytics 4 data to display website pageviews widget
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected60,303 lines of code in 941 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 861 | 12,433 | 58,930 | 52,996 |
Markdown | 38 | 1,634 | 0 | 4,761 |
JSON | 29 | 0 | 0 | 2,215 |
PO File | 1 | 66 | 82 | 150 |
Protocol Buffers | 2 | 14 | 38 | 64 |
Python | 1 | 16 | 41 | 55 |
XML | 2 | 0 | 1 | 32 |
Bourne Shell | 1 | 2 | 0 | 11 |
YAML | 2 | 0 | 0 | 11 |
JavaScript | 2 | 1 | 13 | 5 |
CSS | 2 | 0 | 6 | 3 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 5.66 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 435.00 |
Average method complexity | 1.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 75.00 |
Code structure | ||
---|---|---|
Namespaces | 123 | |
Interfaces | 40 | |
Traits | 17 | |
Classes | 777 | |
▷ Abstract classes | 5 | 0.64% |
▷ Concrete classes | 772 | 99.36% |
▷ Final classes | 38 | 4.92% |
Methods | 5,319 | |
▷ Static methods | 565 | 10.62% |
▷ Public methods | 4,933 | 92.74% |
▷ Protected methods | 44 | 0.83% |
▷ Private methods | 342 | 6.43% |
Functions | 184 | |
▷ Named functions | 58 | 31.52% |
▷ Anonymous functions | 126 | 68.48% |
Constants | 514 | |
▷ Global constants | 10 | 1.95% |
▷ Class constants | 504 | 98.05% |
▷ Public constants | 485 | 96.23% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.62MB with 0.42MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 634.56KB | 200.82KB | ▼ 68.35% |