84% wp-data-sync-woocommerce

Code Review | WP Data Sync for Woocommerce

WordPress plugin WP Data Sync for Woocommerce scored84%from 54 tests.

About plugin

  • Plugin page: wp-data-sync-wooc...
  • Plugin version: 2.1.12
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Feb 25, 2020
  • Latest release: Jul 14, 2023
  • Number of updates: 33
  • Update frequency: every 37.4 days
  • Top authors: Kevin Brent (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,367 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
Install script ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼5.85ms] Passed 4 tests

An overview of server-side resources used by WP Data Sync for Woocommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1543.67 ▲2.54
Dashboard /wp-admin3.44 ▲0.1450.06 ▲1.33
Posts /wp-admin/edit.php3.56 ▲0.2047.57 ▼6.42
Add New Post /wp-admin/post-new.php6.03 ▲0.1484.35 ▼20.85
Media Library /wp-admin/upload.php3.37 ▲0.1439.30 ▲5.07

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for WP Data Sync for Woocommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.30 ▼0.061.78 ▲0.1643.90 ▲1.73
Dashboard /wp-admin2,194 ▲175.54 ▼0.1385.03 ▼7.6138.30 ▼8.98
Posts /wp-admin/edit.php2,102 ▲21.99 ▲0.0136.11 ▲0.7931.06 ▼5.02
Add New Post /wp-admin/post-new.php1,528 ▼723.07 ▲4.87667.24 ▼1.1860.96 ▼7.04
Media Library /wp-admin/upload.php1,402 ▲24.17 ▼0.0793.89 ▼12.5746.71 ▲3.59

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% 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
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WP_DataSync\\Woo\\App\\add_filter() in wp-content/plugins/wp-data-sync-woocommerce/includes/functions/brand-radio-buttons.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WP_DataSync\\Woo\\App\\add_action() in wp-content/plugins/wp-data-sync-woocommerce/includes/functions/register-brand-taxonomy.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WP_DataSync\\Woo\\App\\add_action() in wp-content/plugins/wp-data-sync-woocommerce/includes/functions/remove-genesis-category-checklist-toggle.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: woocommerce, sync data, sync products, data transfer, api integration...

wp-data-sync-woocommerce/wp-data-sync-woocommerce.php 92% from 13 tests

The main PHP script in "WP Data Sync for Woocommerce" version 2.1.12 is automatically included on every request by WordPress
The following require your attention:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "4.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
Good job! No executable or dangerous file extensions detected501 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions417.39%
▷ Anonymous functions1982.61%
▷ Global constants1100.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 were not PNG files found in your plugin