89% add-tiktok-pixel-for-wooccommerce

Code Review | Add TikTok Pixel for WooCommerce

WordPress plugin Add TikTok Pixel for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: add-tiktok-pixel-...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Nov 18, 2022
  • Latest release: Jun 29, 2023
  • Number of updates: 12
  • Update frequency: every 18.6 days
  • Top authors: scottybowl2 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /1,301 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.98ms] Passed 4 tests

Analyzing server-side resources used by Add TikTok Pixel for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.40 ▼5.90
Dashboard /wp-admin3.31 ▲0.0043.38 ▼4.58
Posts /wp-admin/edit.php3.36 ▲0.0046.88 ▲1.60
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.99 ▼7.02
Media Library /wp-admin/upload.php3.23 ▲0.0036.34 ▲2.48

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Add TikTok Pixel for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.36 ▼1.041.78 ▼0.2442.44 ▼3.03
Dashboard /wp-admin2,206 ▲185.79 ▼0.10101.74 ▼15.6639.74 ▼10.26
Posts /wp-admin/edit.php2,089 ▼01.99 ▲0.0236.48 ▼1.1433.45 ▼1.10
Add New Post /wp-admin/post-new.php1,533 ▲123.33 ▲0.05666.68 ▼17.5954.07 ▼1.71
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.0395.96 ▼9.7543.98 ▲0.23

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: tracking, tiktok, analytics

add-tiktok-pixel-for-wooccommerce/add-tiktok-pixel-for-woocommerce.php 85% from 13 tests

The entry point to "Add TikTok Pixel for WooCommerce" version 1.0.3 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("add-tiktok-pixel-for-wooccommerce.php" instead of "add-tiktok-pixel-for-woocommerce.php")

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
No dangerous file extensions were detected216 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity1.94
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin