73% flamix-bitrix24-and-woo-integrations

Code Review | Flamix: Bitrix24 and WooCommerce Orders integration

WordPress plugin Flamix: Bitrix24 and WooCommerce Orders integration scored73%from 54 tests.

About plugin

  • Plugin page: flamix-bitrix24-a...
  • Plugin version: 2.7.7
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jun 17, 2021
  • Latest release: Oct 11, 2023
  • Number of updates: 36
  • Update frequency: every 23.6 days
  • Top authors: flamix (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /3,504 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.26MB] [CPU: ▼4.04ms] Passed 4 tests

Analyzing server-side resources used by Flamix: Bitrix24 and WooCommerce Orders integration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.99 ▲0.5243.60 ▲8.03
Dashboard /wp-admin3.49 ▲0.1445.35 ▼14.64
Posts /wp-admin/edit.php3.96 ▲0.6056.73 ▲10.34
Add New Post /wp-admin/post-new.php6.07 ▲0.1882.39 ▼13.68
Media Library /wp-admin/upload.php3.41 ▲0.1836.67 ▲4.14
Bitrix24 ← WooCommerce /wp-admin/options-general.php?page=flamix-bitrix24-and-woo-integrations/settings/Settings.php3.4332.91

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 329 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Flamix: Bitrix24 and WooCommerce Orders integration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.51 ▲0.151.86 ▲0.2138.25 ▼3.77
Dashboard /wp-admin2,199 ▲185.52 ▼0.1586.18 ▼11.6739.36 ▼3.00
Posts /wp-admin/edit.php2,101 ▲12.01 ▲0.0336.68 ▼0.4436.29 ▼1.34
Add New Post /wp-admin/post-new.php1,538 ▲1223.13 ▲0.05651.55 ▼24.9055.81 ▲2.29
Media Library /wp-admin/upload.php1,404 ▲44.22 ▲0.0393.88 ▼11.8444.41 ▼1.85
Bitrix24 ← WooCommerce /wp-admin/options-general.php?page=flamix-bitrix24-and-woo-integrations/settings/Settings.php1,4579.27288.5077.29

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=flamix-bitrix24-and-woo-integrations/settings/Settings.php
    • > Warning in wp-content/plugins/flamix-bitrix24-and-woo-integrations/includes/vendor/flamix/b24-lead/src/Bitrix24/Lead.php+52
    session_start(): Cannot start session when headers already sent

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 non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/flamix-bitrix24-and-woo-integrations/includes/vendor/mobiledetect/mobiledetectlib/export/exportToJSON.php
  • 147× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/flamix-bitrix24-and-woo-integrations/includes/vendor/guzzlehttp/promises/src/AggregateException.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/flamix-bitrix24-and-woo-integrations/includes/vendor/monolog/monolog/src/Monolog/Handler/TelegramBotHandler.php:34
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/flamix-bitrix24-and-woo-integrations/includes/vendor/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractSyslogHandler' not found in wp-content/plugins/flamix-bitrix24-and-woo-integrations/includes/vendor/monolog/monolog/src/Monolog/Handler/SyslogUdpHandler.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/flamix-bitrix24-and-woo-integrations/includes/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Formatter\\JsonFormatter' not found in wp-content/plugins/flamix-bitrix24-and-woo-integrations/includes/vendor/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/flamix-bitrix24-and-woo-integrations/includes/vendor/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/flamix-bitrix24-and-woo-integrations/includes/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/flamix-bitrix24-and-woo-integrations/includes/vendor/monolog/monolog/src/Monolog/Processor/HostnameProcessor.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/flamix-bitrix24-and-woo-integrations/includes/vendor/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php:23

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

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
Please take inspiration from this readme.txt

flamix-bitrix24-and-woo-integrations/flamix-bitrix24-and-woo-integrations.php Passed 13 tests

"Flamix: Bitrix24 and WooCommerce Orders integration" version 2.7.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
66 characters long description:
Automatic Lead or Deal creating in Bitrix24 from WooCommerce order

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected26,458 lines of code in 307 files:
LanguageFilesBlank linesComment linesLines of code
PHP2594,59912,62519,722
Markdown291,86005,089
JSON17001,612
XML10020
YAML11015

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity11.70
▷ Minimum class complexity1.00
▷ Maximum class complexity139.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity78.00
Code structure
Namespaces29
Interfaces36
Traits8
Classes200
▷ Abstract classes84.00%
▷ Concrete classes19296.00%
▷ Final classes3819.79%
Methods1,553
▷ Static methods26917.32%
▷ Public methods1,18976.56%
▷ Protected methods17211.08%
▷ Private methods19212.36%
Functions126
▷ Named functions1411.11%
▷ Anonymous functions11288.89%
Constants140
▷ Global constants10.71%
▷ Class constants13999.29%
▷ Public constants10172.66%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/vendor/flamix/conversions/img/form_example.png53.11KB16.68KB▼ 68.59%