10% holded-integration

Code Review | Holded integration

WordPress plugin Holded integration scored10%from 54 tests.

About plugin

  • Plugin page: holded-integration
  • Plugin version: 3.4.6
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4
  • WordPress version: 6.3.1
  • First release: Jun 5, 2020
  • Latest release: Nov 10, 2023
  • Number of updates: 16
  • Update frequency: every 78.8 days
  • Top authors: holded (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /10,648 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin cannot be installed
    • > Error in wp-content/plugins/holded-integration/src/Services/Settings.php+7
    Uncaught Error: Class 'WC_Settings_API' not found in wp-content/plugins/holded-integration/src/Services/Settings.php:7
    Stack trace:
    #0 wp-content/plugins/holded-integration/vendor/composer/ClassLoader.php(576): include()
    #1 wp-content/plugins/holded-integration/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}()
    #2 [internal function]: Composer\Autoload\ClassLoader->loadClass()
    #3 wp-content/plugins/holded-integration/holded-integration.php(57): spl_autoload_call()
    #4 wp-includes/class-wp-hook.php(310): holdedWC_activate()
    #5 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #6 wp-includes/plugin.php(517): WP_Hook->do_action()
    #7 wp-admin/includes/plugin.php(693): do_action()

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

An overview of server-side resources used by Holded integration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.53 ▼5.02
Dashboard /wp-admin3.31 ▼0.0448.50 ▼15.42
Posts /wp-admin/edit.php3.36 ▲0.0048.06 ▲4.80
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.04 ▼23.39
Media Library /wp-admin/upload.php3.23 ▲0.0032.41 ▼1.12

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 173 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Holded integration: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.31 ▼0.041.68 ▲0.0741.01 ▼1.34
Dashboard /wp-admin2,195 ▲175.55 ▼0.1188.36 ▼16.7337.25 ▼11.14
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0935.85 ▼3.1430.31 ▼6.80
Add New Post /wp-admin/post-new.php1,526 ▼023.42 ▲0.33671.22 ▲62.9950.77 ▼6.07
Media Library /wp-admin/upload.php1,400 ▼34.15 ▼0.0395.83 ▼6.2741.47 ▼1.28

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Error in wp-content/plugins/holded-integration/src/Services/Settings.php+7
    Uncaught Error: Class 'WC_Settings_API' not found in wp-content/plugins/holded-integration/src/Services/Settings.php:7
    Stack trace:
    #0 wp-content/plugins/holded-integration/vendor/composer/ClassLoader.php(576): include()
    #1 wp-content/plugins/holded-integration/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}()
    #2 [internal function]: Composer\Autoload\ClassLoader->loadClass()
    #3 wp-content/plugins/holded-integration/uninstall.php(18): spl_autoload_call()
    #4 wp-admin/includes/plugin.php(1245): include_once('/var/www/wordpr...')
    #5 wp-admin/includes/plugin.php(960): uninstall_plugin()
  • The plugin did not uninstall correctly, leaving 173 files (0.50MB) in the plugin directory
    • (new file) sdk/DTOs/Order/Item.php
    • (new file) manifest.json
    • (new file) index.php
    • (new file) README.txt
    • (new file) holded-integration.php
    • (new file) sdk/Clients/ProductsClient.php
    • (new file) public/js/holdedWC-WCConfigPanel-ajaxsync.js
    • (new file) sdk/Clients/OrdersClient.php
    • (new file) public/css/holdedWC-WCConfigPanel.css
    • (new file) sdk/Clients/ShopsClient.php
    • ...
  • This plugin does not fully uninstall, leaving 7 options in the database
    • recovery_mode_email_last_sent
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% 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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 64× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Contracts\\HttpClient\\Exception\\HttpExceptionInterface' not found in wp-content/plugins/holded-integration/vendor/symfony/http-client-contracts/Exception/ServerExceptionInterface.php:21
    • > PHP Fatal error
      Cannot declare class JsonException, because the name is already in use in wp-content/plugins/holded-integration/vendor/symfony/polyfill-php73/Resources/stubs/JsonException.php on line 12
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Contracts\\HttpClient\\Exception\\ClientExceptionInterface' not found in wp-content/plugins/holded-integration/vendor/symfony/http-client/Exception/ClientException.php:21
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Contracts\\HttpClient\\ResponseInterface' not found in wp-content/plugins/holded-integration/vendor/symfony/http-client/Response/MockResponse.php:26
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Container\\ContainerInterface' not found in wp-content/plugins/holded-integration/vendor/symfony/service-contracts/ServiceProviderInterface.php:22
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Contracts\\HttpClient\\ResponseInterface' not found in wp-content/plugins/holded-integration/vendor/symfony/http-client/Response/CurlResponse.php:28
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Contracts\\HttpClient\\Exception\\ExceptionInterface' not found in wp-content/plugins/holded-integration/vendor/symfony/http-client-contracts/Exception/DecodingExceptionInterface.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Holded\\Woocommerce\\Hooks\\AbstractHook' not found in wp-content/plugins/holded-integration/src/Hooks/OrderCompleted.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/holded-integration/src/Views/ConfigPanel.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Holded\\Woocommerce\\Endpoints\\AbstractEndpoint' not found in wp-content/plugins/holded-integration/src/Endpoints/PaymentMethodsEndpoint.php:9

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 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: holded, woocommerce, erp

holded-integration/holded-integration.php 92% from 13 tests

This is the main PHP file of "Holded integration" version 3.4.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/lang")

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
There were no executable files found in this plugin9,800 lines of code in 161 files:
LanguageFilesBlank linesComment linesLines of code
PHP1422,2582,9708,817
JSON900790
Markdown8400119
CSS17041
JavaScript16133

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity10.63
▷ Minimum class complexity1.00
▷ Maximum class complexity164.00
Average method complexity2.98
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces40
Interfaces21
Traits7
Classes103
▷ Abstract classes87.77%
▷ Concrete classes9592.23%
▷ Final classes3738.95%
Methods545
▷ Static methods9317.06%
▷ Public methods46986.06%
▷ Protected methods91.65%
▷ Private methods6712.29%
Functions89
▷ Named functions1314.61%
▷ Anonymous functions7685.39%
Constants29
▷ Global constants724.14%
▷ Class constants2275.86%
▷ Public constants1986.36%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin