84% flamix-bitrix24-and-woo-products-sync

Code Review | Flamix: Bitrix24 and WooCommerce Products Sync

WordPress plugin Flamix: Bitrix24 and WooCommerce Products Sync scored84%from 54 tests.

About plugin

  • Plugin page: flamix-bitrix24-a...
  • Plugin version: 1.4.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Oct 21, 2022
  • Latest release: Aug 7, 2023
  • Number of updates: 30
  • Update frequency: every 9.7 days
  • Top authors: flamix (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /537 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.04ms] Passed 4 tests

Server-side resources used by Flamix: Bitrix24 and WooCommerce Products Sync
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.32 ▼1.66
Dashboard /wp-admin3.33 ▲0.0346.68 ▲0.70
Posts /wp-admin/edit.php3.44 ▲0.0945.21 ▼0.78
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.73 ▼3.41
Media Library /wp-admin/upload.php3.25 ▲0.0234.56 ▼2.32

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 304 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Flamix: Bitrix24 and WooCommerce Products Sync: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.10 ▼0.171.70 ▲0.1444.40 ▲2.28
Dashboard /wp-admin2,210 ▲335.63 ▲0.0481.08 ▼6.7039.78 ▼4.80
Posts /wp-admin/edit.php2,112 ▲121.97 ▼0.0236.30 ▼1.8935.33 ▲0.75
Add New Post /wp-admin/post-new.php1,538 ▲1023.24 ▲0.26674.93 ▲3.6553.47 ▲2.11
Media Library /wp-admin/upload.php1,415 ▲184.18 ▼0.0094.56 ▼5.4442.52 ▼1.75

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 139× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Caster\\ConstStub' not found in wp-content/plugins/flamix-bitrix24-and-woo-products-sync/includes/vendor/symfony/var-dumper/Caster/ClassStub.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Cloner\\AbstractCloner' not found in wp-content/plugins/flamix-bitrix24-and-woo-products-sync/includes/vendor/symfony/var-dumper/Cloner/VarCloner.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\Handler' not found in wp-content/plugins/flamix-bitrix24-and-woo-products-sync/includes/vendor/monolog/monolog/src/Monolog/Handler/FilterHandler.php:31
    • > PHP Fatal error
      Uncaught Error: Interface 'Flamix\\CommerceML\\Contracts\\ExportImport' not found in wp-content/plugins/flamix-bitrix24-and-woo-products-sync/includes/local/Woo/Products.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\MailHandler' not found in wp-content/plugins/flamix-bitrix24-and-woo-products-sync/includes/vendor/monolog/monolog/src/Monolog/Handler/MandrillHandler.php:23
    • > PHP Fatal error
      Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/flamix-bitrix24-and-woo-products-sync/includes/vendor/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/flamix-bitrix24-and-woo-products-sync/includes/vendor/monolog/monolog/src/Monolog/Handler/GelfHandler.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/flamix-bitrix24-and-woo-products-sync/includes/vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\Handler' not found in wp-content/plugins/flamix-bitrix24-and-woo-products-sync/includes/vendor/monolog/monolog/src/Monolog/Handler/GroupHandler.php:24
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\VarDumper\\Dumper\\DataDumperInterface' not found in wp-content/plugins/flamix-bitrix24-and-woo-products-sync/includes/vendor/symfony/var-dumper/Dumper/ContextualizedDumper.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
Please take inspiration from this readme.txt

flamix-bitrix24-and-woo-products-sync/flamix-bitrix24-and-woo-products-sync.php Passed 13 tests

The primary PHP file in "Flamix: Bitrix24 and WooCommerce Products Sync" version 1.4.1 is used by WordPress to initiate all plugin functionality
60 characters long description:
Flamix Bitrix24 and WooCommerce Products Sync by CommerceML.

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
Good job! No executable or dangerous file extensions detected22,446 lines of code in 288 files:
LanguageFilesBlank linesComment linesLines of code
PHP2594,0028,29620,270
Markdown102700849
JSON900817
XML600219
SVG200151
CSS100130
JavaScript10010

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity11.29
▷ Minimum class complexity1.00
▷ Maximum class complexity166.00
Average method complexity3.01
▷ Minimum method complexity1.00
▷ Maximum method complexity73.00
Code structure
Namespaces38
Interfaces21
Traits11
Classes201
▷ Abstract classes115.47%
▷ Concrete classes19094.53%
▷ Final classes136.84%
Methods1,207
▷ Static methods33027.34%
▷ Public methods90374.81%
▷ Protected methods18815.58%
▷ Private methods1169.61%
Functions137
▷ Named functions9468.61%
▷ Anonymous functions4331.39%
Constants143
▷ Global constants117.69%
▷ Class constants13292.31%
▷ Public constants8564.39%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin