89% woocommerce-google-dynamic-retargeting-tag

Code Review | WooCommerce Google Ads Dynamic Remarketing

WordPress plugin WooCommerce Google Ads Dynamic Remarketing scored89%from 54 tests.

About plugin

  • Plugin page: woocommerce-googl...
  • Plugin version: 1.8.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.0-5.7
  • WordPress version: 6.3.1
  • First release: Oct 18, 2013
  • Latest release: Jul 29, 2022
  • Number of updates: 198
  • Update frequency: every 16.2 days
  • Top authors: alekv (100%)

Code review

54 tests

User reviews

32 reviews

Install metrics

4,000+ active /114,397 total downloads

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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.11MB] [CPU: ▼8.04ms] Passed 4 tests

Server-side resources used by WooCommerce Google Ads Dynamic Remarketing
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1346.64 ▼4.09
Dashboard /wp-admin3.43 ▲0.0851.47 ▼17.74
Posts /wp-admin/edit.php3.54 ▲0.1854.71 ▲1.19
Add New Post /wp-admin/post-new.php6.03 ▲0.1390.01 ▼11.51
Media Library /wp-admin/upload.php3.35 ▲0.1245.76 ▲6.25
Google Ads Dynamic Retargeting /wp-admin/admin.php?page=wgdr3.3136.15

Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
wgdr_plugin_options
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce Google Ads Dynamic Remarketing
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲6314.72 ▲0.371.79 ▲0.0542.12 ▲2.13
Dashboard /wp-admin2,228 ▲485.56 ▼0.0987.79 ▼7.8541.98 ▼1.32
Posts /wp-admin/edit.php2,131 ▲312.12 ▲0.1338.12 ▼2.8637.73 ▼1.41
Add New Post /wp-admin/post-new.php1,557 ▲2923.39 ▲0.34674.97 ▼46.7152.69 ▼11.78
Media Library /wp-admin/upload.php1,433 ▲364.21 ▲0.05106.18 ▼2.1346.02 ▲0.44
Google Ads Dynamic Retargeting /wp-admin/admin.php?page=wgdr9272.0635.3532.41

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • wgdr_plugin_options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 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
4 plugin tags: google ads, dynamic retargeting, woocommerce, dynamic remarketing

woocommerce-google-dynamic-retargeting-tag/wgdr.php 85% from 13 tests

This is the main PHP file of "WooCommerce Google Ads Dynamic Remarketing" version 1.8.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("woocommerce-google-dynamic-retargeting-tag.php" instead of "wgdr.php")
  • Requires at least: Required version does not match the one declared in readme.txt ("3.1" instead of "3.2.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin849 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP4253185674
PO File24040157
JavaScript14010
CSS1208

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity17.67
▷ Minimum class complexity6.00
▷ Maximum class complexity38.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods42
▷ Static methods00.00%
▷ Public methods42100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.19MB with 0.12MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/wgact-icon-256x256.png123.23KB45.05KB▼ 63.44%
images/wgdr-icon-256x256.png70.44KB24.03KB▼ 65.89%