84% one-stop-shop-woocommerce

Code Review | One Stop Shop for WooCommerce

WordPress plugin One Stop Shop for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: one-stop-shop-woo...
  • Plugin version: 1.4.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.3
  • WordPress version: 6.3.1
  • First release: May 11, 2021
  • Latest release: Jul 25, 2023
  • Number of updates: 33
  • Update frequency: every 24.4 days
  • Top authors: vendidero (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

20,000+ active /143,613 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

Analyzing server-side resources used by One Stop Shop for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.10 ▲3.26
Dashboard /wp-admin3.31 ▲0.0046.40 ▲3.00
Posts /wp-admin/edit.php3.36 ▲0.0047.20 ▼0.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.22 ▼20.69
Media Library /wp-admin/upload.php3.23 ▲0.0033.82 ▼1.37

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 186 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
one_stop_shop_woocommerce
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for One Stop Shop for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.17 ▼0.481.65 ▼0.1043.86 ▲4.80
Dashboard /wp-admin2,198 ▲285.61 ▼0.0395.61 ▼1.8241.66 ▲1.42
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0634.20 ▼3.3433.03 ▼3.70
Add New Post /wp-admin/post-new.php1,526 ▼023.20 ▼0.04659.39 ▼9.3749.86 ▲0.20
Media Library /wp-admin/upload.php1,397 ▼64.23 ▲0.0796.52 ▼11.7441.25 ▼5.00

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • one_stop_shop_woocommerce
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% 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
  • 108× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/one-stop-shop-woocommerce/vendor/composer/installers/src/Composer/Installers/LithiumInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/one-stop-shop-woocommerce/vendor/composer/installers/src/Composer/Installers/OxidInstaller.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/one-stop-shop-woocommerce/vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Interface 'Composer\\Plugin\\PluginInterface' not found in wp-content/plugins/one-stop-shop-woocommerce/vendor/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/one-stop-shop-woocommerce/vendor/composer/installers/src/Composer/Installers/Redaxo5Installer.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/one-stop-shop-woocommerce/vendor/composer/installers/src/Composer/Installers/PhiftyInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/one-stop-shop-woocommerce/vendor/composer/installers/src/Composer/Installers/SiteDirectInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/one-stop-shop-woocommerce/vendor/composer/installers/src/Composer/Installers/RadPHPInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/one-stop-shop-woocommerce/vendor/composer/installers/src/Composer/Installers/StarbugInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/one-stop-shop-woocommerce/vendor/composer/installers/src/Composer/Installers/HuradInstaller.php:4

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: eu, oss, woocommerce, compliance, one stop shop

one-stop-shop-woocommerce/one-stop-shop-woocommerce.php Passed 13 tests

Analyzing the main PHP file in "One Stop Shop for WooCommerce" version 1.4.0
64 characters long description:
Comply with the One Stop Shop procedure while using WooCommerce.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected11,457 lines of code in 176 files:
LanguageFilesBlank linesComment linesLines of code
PHP1672,1583,2269,447
PO File22723161,023
Sass1710356
JSON100280
CSS2160267
JavaScript225179
XML1005

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity8.74
▷ Minimum class complexity1.00
▷ Maximum class complexity141.00
Average method complexity3.12
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes155
▷ Abstract classes10.65%
▷ Concrete classes15499.35%
▷ Final classes00.00%
Methods566
▷ Static methods21037.10%
▷ Public methods43576.86%
▷ Protected methods8815.55%
▷ Private methods437.60%
Functions15
▷ Named functions213.33%
▷ Anonymous functions1386.67%
Constants12
▷ Global constants18.33%
▷ Class constants1191.67%
▷ Public constants11100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin