84% conversion-tracking-for-woocommerce

Code Review | Conversion Tracking for WooCommerce

WordPress plugin Conversion Tracking for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: conversion-tracki...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3-5.2.1
  • WordPress version: 6.3.1
  • First release: Jul 15, 2018
  • Latest release: Jun 18, 2019
  • Number of updates: 8
  • Update frequency: every 42.6 days
  • Top authors: marketacumen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /771 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.53ms] Passed 4 tests

A check of server-side resources used by Conversion Tracking for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.30 ▼0.02
Dashboard /wp-admin3.35 ▼0.0047.32 ▼14.34
Posts /wp-admin/edit.php3.40 ▲0.0449.85 ▲0.45
Add New Post /wp-admin/post-new.php5.93 ▲0.0492.38 ▼10.51
Media Library /wp-admin/upload.php3.27 ▲0.0434.31 ▼1.23

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Conversion Tracking for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼1.204.54 ▲2.8338.88 ▲0.09
Dashboard /wp-admin2,206 ▲185.86 ▼0.10106.10 ▲9.3644.17 ▲3.94
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0338.84 ▲1.5235.20 ▲1.59
Add New Post /wp-admin/post-new.php1,542 ▲2818.36 ▲0.89614.31 ▼47.5352.48 ▼14.71
Media Library /wp-admin/upload.php1,382 ▼64.16 ▼0.0696.16 ▲0.9742.51 ▼0.16

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/conversion-tracking-for-woocommerce/output-samples.php
    • > /wp-content/plugins/conversion-tracking-for-woocommerce/conversion-tracking-for-woocommerce.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% 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
10 plugin tags: analytics, tracking, custom, woocommerce, wcpayload...

conversion-tracking-for-woocommerce/conversion-tracking-for-woocommerce.php 92% from 13 tests

The main file in "Conversion Tracking for WooCommerce" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "2.3")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected861 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
Markdown11210553
PHP220106308

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods213.33%
▷ Public methods533.33%
▷ Protected methods00.00%
▷ Private methods1066.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin