78% flamix-bitrix24-and-contact-forms-7-integrations

Code Review | Flamix: Bitrix24 and Contact Forms 7 integrations

WordPress plugin Flamix: Bitrix24 and Contact Forms 7 integrations scored78%from 54 tests.

About plugin

  • Plugin page: flamix-bitrix24-a...
  • Plugin version: 3.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jan 29, 2021
  • Latest release: Jul 6, 2023
  • Number of updates: 41
  • Update frequency: every 21.8 days
  • Top authors: flamix (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /6,016 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.21MB] [CPU: ▼6.34ms] Passed 4 tests

An overview of server-side resources used by Flamix: Bitrix24 and Contact Forms 7 integrations
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2438.37 ▲0.23
Dashboard /wp-admin3.56 ▲0.2549.01 ▼0.99
Posts /wp-admin/edit.php3.61 ▲0.2550.66 ▼2.35
Add New Post /wp-admin/post-new.php6.07 ▲0.1887.23 ▼22.23
Media Library /wp-admin/upload.php3.42 ▲0.1837.26 ▲4.70
Bitrix24 ← Contact Form 7 /wp-admin/options-general.php?page=flamix-bitrix24-and-contact-forms-7-integrations/includes/local/Settings/Menu.php3.4634.92

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 439 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

Flamix: Bitrix24 and Contact Forms 7 integrations: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.21 ▼1.091.67 ▲0.0344.07 ▲6.36
Dashboard /wp-admin2,210 ▲194.85 ▼1.05105.07 ▲2.8441.38 ▼3.38
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0441.18 ▼0.9438.31 ▲2.60
Add New Post /wp-admin/post-new.php1,536 ▲823.44 ▲5.09604.12 ▼8.3955.97 ▼7.70
Media Library /wp-admin/upload.php1,392 ▲14.20 ▲0.0394.74 ▼6.4041.80 ▼6.90
Bitrix24 ← Contact Form 7 /wp-admin/options-general.php?page=flamix-bitrix24-and-contact-forms-7-integrations/includes/local/Settings/Menu.php1,49812.92293.4885.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/flamix-bitrix24-and-contact-forms-7-integrations/includes/vendor/mobiledetect/mobiledetectlib/export/exportToJSON.php
  • 177× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/flamix-bitrix24-and-contact-forms-7-integrations/includes/vendor/monolog/monolog/src/Monolog/Handler/CubeHandler.php:24
    • > PHP Fatal error
      Uncaught Error: Interface 'Monolog\\Formatter\\FormatterInterface' not found in wp-content/plugins/flamix-bitrix24-and-contact-forms-7-integrations/includes/vendor/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php:37
    • > PHP Fatal error
      Uncaught Error: Interface 'Monolog\\Formatter\\FormatterInterface' not found in wp-content/plugins/flamix-bitrix24-and-contact-forms-7-integrations/includes/vendor/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/flamix-bitrix24-and-contact-forms-7-integrations/includes/vendor/monolog/monolog/src/Monolog/Handler/SamplingHandler.php:33
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Caster\\CutStub' not found in wp-content/plugins/flamix-bitrix24-and-contact-forms-7-integrations/includes/vendor/symfony/var-dumper/Caster/CutArrayStub.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/flamix-bitrix24-and-contact-forms-7-integrations/includes/vendor/monolog/monolog/src/Monolog/Processor/WebProcessor.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\VarDumper\\Dumper\\ContextProvider\\ContextProviderInterface' not found in wp-content/plugins/flamix-bitrix24-and-contact-forms-7-integrations/includes/vendor/symfony/var-dumper/Dumper/ContextProvider/RequestContextProvider.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/flamix-bitrix24-and-contact-forms-7-integrations/includes/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/flamix-bitrix24-and-contact-forms-7-integrations/includes/vendor/monolog/monolog/src/Monolog/Handler/ElasticsearchHandler.php:47
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/flamix-bitrix24-and-contact-forms-7-integrations/includes/vendor/monolog/monolog/src/Monolog/Handler/OverflowHandler.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

flamix-bitrix24-and-contact-forms-7-integrations/flamix-bitrix24-and-contact-forms-7-integrations.php Passed 13 tests

"Flamix: Bitrix24 and Contact Forms 7 integrations" version 3.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
49 characters long description:
Bitrix24 and WordPress Contact Form 7 integration

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
Good job! No executable or dangerous file extensions detected37,450 lines of code in 412 files:
LanguageFilesBlank linesComment linesLines of code
PHP3506,04514,17729,956
Markdown341,89305,220
JSON24002,099
CSS100130
XML10020
YAML11015
JavaScript10010

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity12.65
▷ Minimum class complexity1.00
▷ Maximum class complexity166.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity78.00
Code structure
Namespaces46
Interfaces43
Traits10
Classes270
▷ Abstract classes103.70%
▷ Concrete classes26096.30%
▷ Final classes4818.46%
Methods1,900
▷ Static methods45724.05%
▷ Public methods1,47977.84%
▷ Protected methods19410.21%
▷ Private methods22711.95%
Functions224
▷ Named functions10245.54%
▷ Anonymous functions12254.46%
Constants212
▷ Global constants104.72%
▷ Class constants20295.28%
▷ Public constants14471.29%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
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%