89% woosync-product-stock-synchronizer-for-woocommerce

Code Review | Syncfic - Product Stock Synchronization for WooCommerce

WordPress plugin Syncfic - Product Stock Synchronization for WooCommerce scored 89% from 54 tests.

About plugin

  • Plugin page: woosync-product-s...
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 5, 2019
  • Latest release: Apr 12, 2021
  • Number of updates: 18
  • Update frequency: every 29.6 days
  • Top authors: psdtowpservice (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,443 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.68MB] [CPU: ▼20.10ms] Passed 4 tests

An overview of server-side resources used by Syncfic - Product Stock Synchronization for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.42 ▼2.10
Dashboard /wp-admin3.33 ▲0.0243.65 ▼2.14
Posts /wp-admin/edit.php3.38 ▲0.0244.91 ▲1.85
Add New Post /wp-admin/post-new.php3.11 ▼2.7735.03 ▼77.70
Media Library /wp-admin/upload.php3.25 ▲0.0236.06 ▲1.54

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Syncfic - Product Stock Synchronization for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.26 ▼1.221.66 ▼0.3440.65 ▼3.09
Dashboard /wp-admin2,203 ▲185.84 ▼0.0495.18 ▼4.9940.36 ▼7.77
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0834.21 ▼0.2033.90 ▼0.11
Add New Post /wp-admin/post-new.php1,514 ▼017.53 ▲0.01678.58 ▼7.2556.70 ▼4.03
Media Library /wp-admin/upload.php1,382 ▼94.21 ▼0.0693.97 ▼10.0240.91 ▼6.47

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: woocommerce-stock-sync, woocommerce-product-sync, woocommerce-inventory-sync, woocommerce-product-sync-plugin, stock-synchronization-for-woocommerce...

woosync-product-stock-synchronizer-for-woocommerce/woo_sync_product.php 69% from 13 tests

The principal PHP file in "Syncfic - Product Stock Synchronization for WooCommerce" v. 2.0.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woosync-product-stock-synchronizer-for-woocommerce.php" instead of "woo_sync_product.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 326 characters long)
  • Domain Path: The domain path folder does not exist ("/languages")

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
Success! There were no dangerous files found in this plugin106 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP33246106

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected