73% woo-synchronizer

Code Review | Woocommerce Synchronizer

WordPress plugin Woocommerce Synchronizer scored 73% from 54 tests.

About plugin

  • Plugin page: woo-synchronizer
  • Plugin version: 0.1
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.0.3
  • WordPress version: 5.8.1
  • First release: Feb 17, 2019
  • Latest release: Feb 17, 2019
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: sjhoo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 377 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.75MB] [CPU: ▼140.20ms] Passed 4 tests

A check of server-side resources used by Woocommerce Synchronizer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.7340.30 ▲6.95
Dashboard /wp-admin3.87 ▲0.8150.54 ▲9.19
Posts /wp-admin/edit.php3.91 ▲0.8041.95 ▼1.69
Add New Post /wp-admin/post-new.php6.15 ▲0.7294.97 ▼565.10
Media Library /wp-admin/upload.php3.74 ▲0.7437.69 ▼0.97

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 34 new files
Database: 3 new tables, 1 new option
New tables
wp_woo_sync_download_list
wp_woo_sync_future_publish
wp_woo_sync_relationships
New WordPress options
woo_sync_target_uniqid

Browser metrics Passed 4 tests

An overview of browser requirements for Woocommerce Synchronizer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,727 ▲13115.94 ▲0.008.10 ▼0.4547.58 ▼1.11
Dashboard /wp-admin2,996 ▲625.89 ▼0.09150.27 ▲2.09113.81 ▲4.18
Posts /wp-admin/edit.php2,763 ▲242.69 ▼0.0067.65 ▼2.2995.09 ▲14.04
Add New Post /wp-admin/post-new.php1,893 ▲39319.19 ▲0.27394.05 ▲30.51108.53 ▼3.10
Media Library /wp-admin/upload.php1,831 ▲245.03 ▲0.01152.95 ▼3.75123.76 ▼22.39

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure failed, leaving 3 tables in the database
    • wp_woo_sync_future_publish
    • wp_woo_sync_download_list
    • wp_woo_sync_relationships
  • Zombie WordPress options detected upon uninstall: 1 option
    • woo_sync_target_uniqid

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
Please fix the following items
  • 8× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-synchronizer/includes/synchronizer/target/products.php:580
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-synchronizer/includes/functions.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-synchronizer/includes/synchronizer/target/tags.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-synchronizer/includes/synchronizer/target/categories.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-synchronizer/includes/synchronizer/local/update.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-synchronizer/includes/synchronizer/local/create.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-synchronizer/includes/publisher.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-synchronizer/includes/synchronizer/target/attributes.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: There are too many tags (14 tag instead of maximum 10)
The official readme.txt might help

woo-synchronizer/woo_sync.php 85% from 13 tests

The entry point to "Woocommerce Synchronizer" version 0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woo-synchronizer.php" instead of "woo_sync.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin5,919 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP131,1931974,363
JavaScript11969583
PO File1170192482
CSS21123468
SVG20123

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity3.67
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions76
▷ Named functions7598.68%
▷ Anonymous functions11.32%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/logo.png52.07KB19.91KB▼ 61.77%
assets/img/loader.png31.38KB16.76KB▼ 46.58%