83% woocommerce-google-adwords-conversion-tracking

Code Review | Woocommerce Adwords Conversion Tracking

WordPress plugin Woocommerce Adwords Conversion Tracking scored83%from 54 tests.

About plugin

  • Plugin page: woocommerce-googl...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.8.1
  • WordPress version: 6.3.1
  • First release: Feb 21, 2014
  • Latest release: Jan 31, 2015
  • Number of updates: 18
  • Update frequency: every 19.2 days
  • Top authors: victoor89 (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

600+ active /9,245 total downloads

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.00MB] [CPU: ▼4.03ms] Passed 4 tests

An overview of server-side resources used by Woocommerce Adwords Conversion Tracking
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0136.43 ▼3.10
Dashboard /wp-admin3.31 ▲0.0045.64 ▼3.04
Posts /wp-admin/edit.php3.36 ▲0.0042.91 ▼5.17
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.32 ▼4.82
Media Library /wp-admin/upload.php3.23 ▲0.0033.37 ▲0.36

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Woocommerce Adwords Conversion Tracking
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.26 ▼1.121.51 ▼0.4842.62 ▲3.54
Dashboard /wp-admin2,203 ▲125.82 ▲0.9993.80 ▼15.1743.94 ▲0.77
Posts /wp-admin/edit.php2,086 ▼62.00 ▼0.0234.89 ▼15.6734.60 ▼2.36
Add New Post /wp-admin/post-new.php1,537 ▲418.29 ▼4.72613.83 ▲38.3756.65 ▼5.37
Media Library /wp-admin/upload.php1,388 ▲34.25 ▲0.1096.57 ▲0.0941.15 ▼3.38

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

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
Even though no errors were found, this is by no means 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
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/woocommerce-google-adwords-conversion-tracking/includes/wc-adwords-conversion-tracking-code.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woocommerce-google-adwords-conversion-tracking/wc-adwords-conversion-tracking.php:44

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 80% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === woocommerce-google-adwords-conversion-tracking === )
You can look at the official readme.txt

woocommerce-google-adwords-conversion-tracking/wc-adwords-conversion-tracking.php 62% from 13 tests

The main PHP script in "Woocommerce Adwords Conversion Tracking" version 1.0.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path should use only dashes and lowercase characters ("wact")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: Prefix the domain path with a forward slash character ("/wact")
  • Main file name: The principal plugin file should be the same as the plugin slug ("woocommerce-google-adwords-conversion-tracking.php" instead of "wc-adwords-conversion-tracking.php")
  • Git Repository: A Git repository was detected inside this plugin

Code Analysis Passed 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 plugin67 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2275967

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

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
There are no PNG files in this plugin