78% sync-wc-google

Code Review | Bulk Product Sync - Bulk Product Editor for WooCommerce with Google Sheets™

WordPress plugin Bulk Product Sync - Bulk Product Editor for WooCommerce with Google Sheets™ scored78%from 54 tests.

About plugin

  • Plugin page: sync-wc-google
  • Plugin version: 8.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 2, 2020
  • Latest release: Nov 13, 2023
  • Number of updates: 105
  • Update frequency: every 10.8 days
  • Top authors: nmedia (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

600+ active /26,557 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

An overview of server-side resources used by Bulk Product Sync - Bulk Product Editor for WooCommerce with Google Sheets™
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.54 ▲1.20
Dashboard /wp-admin3.31 ▲0.0144.29 ▼4.79
Posts /wp-admin/edit.php3.36 ▲0.0047.51 ▼0.78
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.48 ▼8.83
Media Library /wp-admin/upload.php3.23 ▲0.0035.19 ▲0.24

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Bulk Product Sync - Bulk Product Editor for WooCommerce with Google Sheets™
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.29 ▼0.421.85 ▲0.1343.77 ▲2.13
Dashboard /wp-admin2,195 ▲185.58 ▼0.0385.54 ▼3.6638.84 ▼4.21
Posts /wp-admin/edit.php2,097 ▼31.95 ▲0.0139.02 ▼1.0936.26 ▼1.54
Add New Post /wp-admin/post-new.php1,526 ▼022.96 ▼0.83578.12 ▼29.4452.62 ▲0.62
Media Library /wp-admin/upload.php1,397 ▼64.18 ▲0.01100.52 ▲1.8442.68 ▼1.15

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% 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
Please fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/sync-wc-google/includes/meta.json.php
    • > /wp-content/plugins/sync-wc-google/includes/wprest.class.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wbps_get_webapp_url() in wp-content/plugins/sync-wc-google/templates/main.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/sync-wc-google/sync-wc-google.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wbps_get_authcode() in wp-content/plugins/sync-wc-google/templates/setup.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: woocommerce stock, stock update, bulk stock manage, bulk products, woocommerce products...

sync-wc-google/sync-wc-google.php 92% from 13 tests

"Bulk Product Sync - Bulk Product Editor for WooCommerce with Google Sheets™" version 8.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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 plugin1,844 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP138034801,770
CSS17568
JavaScript1566

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity30.71
▷ Minimum class complexity8.00
▷ Maximum class complexity46.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods77
▷ Static methods1519.48%
▷ Public methods77100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions63
▷ Named functions2438.10%
▷ Anonymous functions3961.90%
Constants5
▷ Global constants5100.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
1 PNG file occupies 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/bps-logo.png86.84KB28.08KB▼ 67.67%