10% bigbuy-wc-dropshipping-connector

Code Review | BigBuy Dropshipping Connector for WooCommerce

WordPress plugin BigBuy Dropshipping Connector for WooCommerce scored10%from 54 tests.

About plugin

  • Plugin page: bigbuy-wc-dropshi...
  • Plugin version: 1.9.10
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1
  • WordPress version: 6.3.1
  • First release: Nov 7, 2019
  • Latest release: Nov 7, 2023
  • Number of updates: 138
  • Update frequency: every 10.6 days
  • Top authors: devsmip (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

700+ active /44,288 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/bigbuy-wc-dropshipping-connector/src/Service/DirectoryService.php+220
    mkdir(): File exists

Server metrics [RAM: ▼0.01MB] [CPU: ▼12.04ms] Passed 4 tests

An overview of server-side resources used by BigBuy Dropshipping Connector for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.09 ▼6.29
Dashboard /wp-admin3.31 ▼0.0447.46 ▼15.28
Posts /wp-admin/edit.php3.36 ▲0.0047.36 ▼1.87
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.69 ▼22.75
Media Library /wp-admin/upload.php3.23 ▲0.0031.79 ▼3.82

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 566 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

BigBuy Dropshipping Connector for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.35 ▲0.011.56 ▼0.1839.28 ▼6.07
Dashboard /wp-admin2,195 ▲155.62 ▼0.0488.05 ▼5.7438.79 ▼6.00
Posts /wp-admin/edit.php2,097 ▼32.06 ▲0.0938.92 ▼0.7234.93 ▼0.57
Add New Post /wp-admin/post-new.php1,526 ▼023.50 ▲0.25616.87 ▼44.7560.22 ▲10.30
Media Library /wp-admin/upload.php1,400 ▼34.26 ▲0.1094.72 ▼8.1842.17 ▲0.96

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/bigbuy-wc-dropshipping-connector/vendor/cocur/slugify/bin/generate-default.php
  • 111× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WcMipConnector\\Monolog\\Handler\\Handler' not found in wp-content/plugins/bigbuy-wc-dropshipping-connector/lib/monolog/monolog/src/Monolog/Handler/GroupHandler.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'WcMipConnector\\Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/bigbuy-wc-dropshipping-connector/lib/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'WcMipConnector\\Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/bigbuy-wc-dropshipping-connector/lib/monolog/monolog/src/Monolog/Handler/PsrHandler.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'WcMipConnector\\Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/bigbuy-wc-dropshipping-connector/lib/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php:23
    • > PHP Fatal error
      Uncaught Error: Interface 'WcMipConnector\\Monolog\\Formatter\\FormatterInterface' not found in wp-content/plugins/bigbuy-wc-dropshipping-connector/lib/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Log\\LoggerInterface' not found in wp-content/plugins/bigbuy-wc-dropshipping-connector/vendor/psr/log/Psr/Log/AbstractLogger.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'WcMipConnector\\Monolog\\Handler\\FingersCrossed\\ActivationStrategyInterface' not found in wp-content/plugins/bigbuy-wc-dropshipping-connector/lib/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php:41
    • > PHP Fatal error
      Uncaught Error: Interface 'WcMipConnector\\Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/bigbuy-wc-dropshipping-connector/lib/monolog/monolog/src/Monolog/Processor/WebProcessor.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'WcMipConnector\\Monolog\\Handler\\GroupHandler' not found in wp-content/plugins/bigbuy-wc-dropshipping-connector/lib/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'WcMipConnector\\Monolog\\Formatter\\JsonFormatter' not found in wp-content/plugins/bigbuy-wc-dropshipping-connector/lib/monolog/monolog/src/Monolog/Formatter/LogmaticFormatter.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Contributors: Plugin contributors field is missing
You can take inspiration from this readme.txt

bigbuy-wc-dropshipping-connector/WcMipconnector.php 85% from 13 tests

"BigBuy Dropshipping Connector for WooCommerce" version 1.9.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bigbuy-wc-dropshipping-connector.php" instead of "WcMipconnector.php")

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
No dangerous file extensions were detected46,972 lines of code in 537 files:
LanguageFilesBlank linesComment linesLines of code
PHP4787,48511,77334,780
JSON371208,734
PO File67191,0382,033
CSS315651,169
SVG1205161
JavaScript112095

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity6.93
▷ Minimum class complexity1.00
▷ Maximum class complexity148.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces63
Interfaces19
Traits5
Classes422
▷ Abstract classes92.13%
▷ Concrete classes41397.87%
▷ Final classes20.48%
Methods2,035
▷ Static methods1547.57%
▷ Public methods1,65681.38%
▷ Protected methods1838.99%
▷ Private methods1969.63%
Functions34
▷ Named functions720.59%
▷ Anonymous functions2779.41%
Constants370
▷ Global constants00.00%
▷ Class constants370100.00%
▷ Public constants20154.32%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
app/assets/image/logo.png13.40KB6.48KB▼ 51.65%