78% youbeli-sync

Code Review | Youbeli Sync for WooCommerce

WordPress plugin Youbeli Sync for WooCommerce scored 78% from 54 tests.

About plugin

  • Plugin page: youbeli-sync
  • Plugin version: 2.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.3.2
  • WordPress version: 6.3.1
  • First release: Dec 21, 2017
  • Latest release: Feb 24, 2020
  • Number of updates: 29
  • Update frequency: every 72.3 days
  • Top authors: youbeli (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,169 total downloads

Benchmarks

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
This plugin's installer ran successfully

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

Analyzing server-side resources used by Youbeli Sync for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.97 ▲0.66
Dashboard /wp-admin3.31 ▲0.0045.23 ▼4.53
Posts /wp-admin/edit.php3.36 ▲0.0046.29 ▲0.17
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.88 ▼5.95
Media Library /wp-admin/upload.php3.23 ▲0.0033.94 ▲3.37

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Youbeli Sync for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.30 ▼1.481.64 ▼0.1141.54 ▼1.08
Dashboard /wp-admin2,206 ▲144.89 ▼0.07105.71 ▼4.5337.71 ▼4.88
Posts /wp-admin/edit.php2,092 ▲31.99 ▼0.0040.27 ▼0.6535.64 ▼1.96
Add New Post /wp-admin/post-new.php1,542 ▲2818.27 ▲0.43580.39 ▼115.2859.62 ▲7.58
Media Library /wp-admin/upload.php1,388 ▼04.25 ▲0.0294.13 ▼2.5741.86 ▼1.73

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/youbeli-sync/youbeli.php
  • 8× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/youbeli-sync/views/setting.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/youbeli-sync/views/category_setting.php:2
    • > PHP Notice
      Undefined variable: size in wp-content/plugins/youbeli-sync/views/log.php on line 8
    • > PHP Notice
      Undefined variable: deleted in wp-content/plugins/youbeli-sync/views/log.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/youbeli-sync/views/log.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/youbeli-sync/views/product_sync.php:2
    • > PHP Notice
      Undefined variable: saved in wp-content/plugins/youbeli-sync/views/setting.php on line 3
    • > PHP Notice
      Undefined variable: unit in wp-content/plugins/youbeli-sync/views/log.php on line 8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: youbeli, marketplace, synchronize, woocommerce, sell...

youbeli-sync/youbeli.php 85% from 13 tests

The main PHP file in "Youbeli Sync for WooCommerce" ver. 2.3 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("youbeli-sync.php" instead of "youbeli.php")
  • Requires at least: The required version number must match the one declared in readme.txt ("3.8" instead of "4.1")

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
Good job! No executable or dangerous file extensions detected1,974 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP8193161,405
CSS4386427
JavaScript3122142

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity64.67
▷ Minimum class complexity1.00
▷ Maximum class complexity162.00
Average method complexity4.08
▷ Minimum method complexity1.00
▷ Maximum method complexity63.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods62
▷ Static methods5995.16%
▷ Public methods5791.94%
▷ Protected methods00.00%
▷ Private methods58.06%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG files were detected