Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲2.41MB] [CPU: ▼4.67ms] Passed 4 tests
A check of server-side resources used by Google Listings & Ads
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.83 ▲2.36 | 38.86 ▼0.95 |
Dashboard /wp-admin | 5.85 ▲2.50 | 48.23 ▼13.62 |
Posts /wp-admin/edit.php | 5.85 ▲2.50 | 48.55 ▲1.27 |
Add New Post /wp-admin/post-new.php | 8.16 ▲2.28 | 89.67 ▼5.39 |
Media Library /wp-admin/upload.php | 5.85 ▲2.62 | 35.30 ▲4.53 |
Server storage [IO: ▲23.23MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4,261 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
gla_delayed_activate |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Google Listings & Ads
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲8 | 14.57 ▲0.24 | 1.64 ▼0.28 | 37.11 ▼8.85 |
Dashboard /wp-admin | 2,203 ▲26 | 5.63 ▲0.06 | 90.38 ▼3.58 | 42.62 ▼4.42 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.07 ▲0.11 | 39.17 ▲1.95 | 35.42 ▲0.15 |
Add New Post /wp-admin/post-new.php | 1,540 ▲13 | 25.27 ▲2.10 | 614.40 ▼88.03 | 64.48 ▲8.26 |
Media Library /wp-admin/upload.php | 1,402 ▼1 | 4.22 ▲0.05 | 98.92 ▼1.14 | 39.51 ▼3.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- gla_delayed_activate
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/google-listings-and-ads/vendor/googleads/google-ads-php/scripts/print_php_information.php
- 2439× 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/google-listings-and-ads/vendor/google/common-protos/src/Api/FieldInfo.php:16
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/google-listings-and-ads/vendor/googleads/google-ads-php/src/Google/Ads/GoogleAds/V14/Errors/MerchantCenterErrorEnum.php:16
- > PHP Fatal error
Uncaught Error: Class 'Grpc\\BaseStub' not found in wp-content/plugins/google-listings-and-ads/vendor/googleads/google-ads-php/src/Google/Ads/GoogleAds/V14/Services/MerchantCenterLinkServiceGrpcClient.php:27
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\Common\\SymmetricKey' not found in wp-content/plugins/google-listings-and-ads/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/BlockCipher.php:22
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\WooCommerce\\GoogleListingsAndAds\\Vendor\\Google\\Service\\Resource' not found in wp-content/plugins/google-listings-and-ads/vendor/google/apiclient-services/src/ShoppingContent/Resource/Regions.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/google-listings-and-ads/vendor/googleads/google-ads-php/src/Google/Ads/GoogleAds/V14/Services/ApplyRecommendationOperation/SitelinkExtensionParameters.php:16
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\WooCommerce\\GoogleListingsAndAds\\Vendor\\Google\\Model' not found in wp-content/plugins/google-listings-and-ads/vendor/google/apiclient-services/src/ShoppingContent/ProductShippingWeight.php:20
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/google-listings-and-ads/vendor/googleads/google-ads-php/src/Google/Ads/GoogleAds/V14/Errors/ConversionAdjustmentUploadErrorEnum.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Google\\ApiCore\\ServerStreamingCallInterface' not found in wp-content/plugins/google-listings-and-ads/vendor/google/gax/src/Transport/Rest/RestServerStreamingCall.php:49
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\WooCommerce\\GoogleListingsAndAds\\Vendor\\Google\\Service' not found in wp-content/plugins/google-listings-and-ads/vendor/google/apiclient-services/src/SiteVerification.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: ads, google, listings, woocommerce
google-listings-and-ads/google-listings-and-ads.php Passed 13 tests
The primary PHP file in "Google Listings & Ads" version 2.5.12 is used by WordPress to initiate all plugin functionality
112 characters long description:
Native integration with Google that allows merchants to easily display their products across Google’s network.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin326,615 lines of code in 4,174 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3,957 | 58,616 | 260,571 | 307,413 |
Markdown | 88 | 3,785 | 0 | 10,427 |
JSON | 68 | 0 | 0 | 7,609 |
SVG | 17 | 0 | 0 | 342 |
CSS | 10 | 0 | 0 | 279 |
XSD | 1 | 18 | 0 | 142 |
XML | 9 | 7 | 3 | 139 |
YAML | 5 | 22 | 0 | 92 |
JavaScript | 15 | 0 | 55 | 74 |
Python | 1 | 13 | 23 | 44 |
Protocol Buffers | 1 | 6 | 0 | 40 |
Dockerfile | 1 | 7 | 6 | 11 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 140)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 5.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 679.00 |
Average method complexity | 1.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 140.00 |
Code structure | ||
---|---|---|
Namespaces | 469 | |
Interfaces | 146 | |
Traits | 74 | |
Classes | 3,665 | |
▷ Abstract classes | 267 | 7.29% |
▷ Concrete classes | 3,398 | 92.71% |
▷ Final classes | 101 | 2.97% |
Methods | 26,470 | |
▷ Static methods | 2,428 | 9.17% |
▷ Public methods | 24,158 | 91.27% |
▷ Protected methods | 1,273 | 4.81% |
▷ Private methods | 1,039 | 3.93% |
Functions | 544 | |
▷ Named functions | 104 | 19.12% |
▷ Anonymous functions | 440 | 80.88% |
Constants | 3,874 | |
▷ Global constants | 20 | 0.52% |
▷ Class constants | 3,854 | 99.48% |
▷ Public constants | 3,718 | 96.47% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.17MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/build/images/js/src/components/paid-ads/campaign-preview/images/26a3f83547ba2af2f541.shop-sample-logo.png | 0.71KB | 0.55KB | ▼ 23.18% |
js/build/images/js/src/get-started-page/benefits-card/ff593be89bcb7ad1ab7e.image.png | 86.73KB | 30.24KB | ▼ 65.13% |
js/build/images/js/src/components/free-listings/configure-product-listings/hero/fb15f79da797ad9cca81.google-free-listing.png | 73.46KB | 26.19KB | ▼ 64.34% |
js/build/images/js/src/components/paid-ads/campaign-preview/images/093d4a30c2447b174c17.map-background.png | 11.08KB | 6.00KB | ▼ 45.84% |