84% stock-sync-with-google-sheet-for-woocommerce

Code Review | Stock Sync for WooCommerce with Google Sheets - WooCommerce bulk edit, Stock Management, Inventory Management System & more

WordPress plugin Stock Sync for WooCommerce with Google Sheets - WooCommerce bulk edit, Stock Management, Inventory Management System & more scored84%from 54 tests.

About plugin

  • Plugin page: stock-sync-with-g...
  • Plugin version: 3.6.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.4.1
  • WordPress version: 6.3.1
  • First release: Mar 11, 2022
  • Latest release: Nov 29, 2023
  • Number of updates: 69
  • Update frequency: every 9.1 days
  • Top authors: azizultex (73.91%)mahfuz01 (13.04%)iamjafran (10.14%)devdrarif (5.8%)wppool (2.9%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active /11,282 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.92MB] [CPU: ▼2.25ms] Passed 4 tests

Server-side resources used by Stock Sync for WooCommerce with Google Sheets - WooCommerce bulk edit, Stock Management, Inventory Management System & more
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.37 ▲0.9139.55 ▼1.98
Dashboard /wp-admin4.25 ▲0.9055.48 ▼9.45
Posts /wp-admin/edit.php4.32 ▲0.9756.43 ▲10.43
Add New Post /wp-admin/post-new.php6.82 ▲0.9385.93 ▼7.58
Media Library /wp-admin/upload.php4.15 ▲0.9245.21 ▲10.00

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 142 new files
Database: no new tables, 32 new options
New WordPress options
ssgsw_show_custom_meta_fileds
ssgsw_show_attributes
ssgsw_update_notice
ssgsw_install_times
ssgsw_credential_file
ssgsw_show_short_description
ssgsw_new_user_activate
ssgsw_days_count
can_compress_scripts
ssgsw_show_sku
...

Browser metrics Passed 4 tests

A check of browser resources used by Stock Sync for WooCommerce with Google Sheets - WooCommerce bulk edit, Stock Management, Inventory Management System & more
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,181 ▲43014.07 ▼0.171.95 ▲0.2843.90 ▼2.24
Dashboard /wp-admin2,577 ▲4035.76 ▲0.17131.50 ▲36.2481.38 ▲38.83
Posts /wp-admin/edit.php2,318 ▲2182.12 ▲0.0139.68 ▲1.6934.02 ▼1.16
Add New Post /wp-admin/post-new.php1,884 ▲35722.21 ▼0.91763.72 ▲102.4950.36 ▲2.40
Media Library /wp-admin/upload.php1,600 ▲2034.20 ▲0.0198.73 ▲2.7973.39 ▲34.08

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 31 options
    • ssgsw_show_custom_meta_fileds
    • ssgsw_days_count
    • widget_recent-comments
    • ssgsw_show_sku
    • ssgsw_redirect_to_admin_page
    • ssgsw_synced
    • ssgsw_freeze_headers
    • ssgsw_apps_script__notice
    • widget_recent-posts
    • ssgsw_show_total_sales
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/stock-sync-with-google-sheet-for-woocommerce/templates/dashboard/support.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention: The official readme.txt might help

stock-sync-with-google-sheet-for-woocommerce/stock-sync-with-google-sheet-for-woocommerce.php Passed 13 tests

The principal PHP file in "Stock Sync for WooCommerce with Google Sheets - WooCommerce bulk edit, Stock Management, Inventory Management System & more" v. 3.6.0 is loaded by WordPress automatically on each request
55 characters long description:
Sync your WooCommerce product stock with Google Sheets.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected10,112 lines of code in 87 files:
LanguageFilesBlank linesComment linesLines of code
PHP361,2472,3556,733
SVG382501,247
CSS46320835
JavaScript512799774
Markdown21460446
XML1173760
JSON10017

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity38.69
▷ Minimum class complexity1.00
▷ Maximum class complexity108.00
Average method complexity3.29
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces2
Interfaces0
Traits1
Classes15
▷ Abstract classes16.67%
▷ Concrete classes1493.33%
▷ Final classes00.00%
Methods252
▷ Static methods83.17%
▷ Public methods21685.71%
▷ Protected methods83.17%
▷ Private methods2811.11%
Functions28
▷ Named functions1035.71%
▷ Anonymous functions1864.29%
Constants12
▷ Global constants12100.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
30 compressed PNG files occupy 4.78MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/tooltip/step2_add-google-sheet-url.png13.89KB14.59KB0.00%
public/images/tooltip/step4_copy-code.png5.90KB6.44KB0.00%
public/images/thumbnails/editor-access.png638.55KB214.79KB▼ 66.36%
public/images/tooltip/step3_copy-email-ID.png5.30KB5.79KB0.00%
public/images/enter-sheet-name.png9.56KB9.60KB0.00%