79% flamix-bitrix24-and-divi-contact-form-integration

Code Review | Flamix: Bitrix24 and Divi Contact Form integration

WordPress plugin Flamix: Bitrix24 and Divi Contact Form integration scored79%from 54 tests.

About plugin

  • Plugin page: flamix-bitrix24-a...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jun 30, 2023
  • Latest release: Jul 1, 2023
  • Number of updates: 4
  • Update frequency: every 4.0 days
  • Top authors: flamix (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /82 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▼6.35ms] Passed 4 tests

Analyzing server-side resources used by Flamix: Bitrix24 and Divi Contact Form integration
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2335.18 ▼3.03
Dashboard /wp-admin3.55 ▲0.2047.55 ▼9.82
Posts /wp-admin/edit.php3.60 ▲0.2446.22 ▲1.14
Add New Post /wp-admin/post-new.php6.06 ▲0.1888.21 ▼13.69
Media Library /wp-admin/upload.php3.41 ▲0.1835.69 ▲2.00
Bitrix24 ← Divi Forms /wp-admin/options-general.php?page=flamix-bitrix24-and-divi-contact-form-integration/includes/local/Settings/Menu.php3.4633.52

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 441 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Flamix: Bitrix24 and Divi Contact Form integration
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.36 ▲0.001.57 ▼0.0340.01 ▲0.79
Dashboard /wp-admin2,202 ▲285.60 ▲0.0783.62 ▼1.1539.66 ▼2.04
Posts /wp-admin/edit.php2,101 ▲11.99 ▼0.0235.06 ▼1.0935.94 ▼3.64
Add New Post /wp-admin/post-new.php1,532 ▲123.05 ▼0.21651.63 ▲14.3460.56 ▲9.94
Media Library /wp-admin/upload.php1,407 ▲74.22 ▼0.0095.40 ▼15.0245.44 ▼0.61
Bitrix24 ← Divi Forms /wp-admin/options-general.php?page=flamix-bitrix24-and-divi-contact-form-integration/includes/local/Settings/Menu.php9372.1724.5235.54

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% 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 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 fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/flamix-bitrix24-and-divi-contact-form-integration/includes/vendor/mobiledetect/mobiledetectlib/export/exportToJSON.php
  • 177× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Cloner\\Stub' not found in wp-content/plugins/flamix-bitrix24-and-divi-contact-form-integration/includes/vendor/symfony/var-dumper/Caster/EnumStub.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/flamix-bitrix24-and-divi-contact-form-integration/includes/vendor/monolog/monolog/src/Monolog/Handler/OverflowHandler.php:37
    • > PHP Fatal error
      Uncaught Error: Interface 'Stringable' not found in wp-content/plugins/flamix-bitrix24-and-divi-contact-form-integration/includes/vendor/symfony/polyfill-php80/PhpToken.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/flamix-bitrix24-and-divi-contact-form-integration/includes/vendor/monolog/monolog/src/Monolog/Handler/ProcessHandler.php:27
    • > PHP Fatal error
      Uncaught Error: Interface 'Monolog\\Formatter\\FormatterInterface' not found in wp-content/plugins/flamix-bitrix24-and-divi-contact-form-integration/includes/vendor/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php:37
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Polyfill\\Php80\\PhpToken' not found in wp-content/plugins/flamix-bitrix24-and-divi-contact-form-integration/includes/vendor/symfony/polyfill-php80/Resources/stubs/PhpToken.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Cloner\\Stub' not found in wp-content/plugins/flamix-bitrix24-and-divi-contact-form-integration/includes/vendor/symfony/var-dumper/Caster/CutStub.php:21
    • > PHP Fatal error
      Uncaught Error: Interface 'Monolog\\Formatter\\FormatterInterface' not found in wp-content/plugins/flamix-bitrix24-and-divi-contact-form-integration/includes/vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\MailHandler' not found in wp-content/plugins/flamix-bitrix24-and-divi-contact-form-integration/includes/vendor/monolog/monolog/src/Monolog/Handler/SendGridHandler.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/flamix-bitrix24-and-divi-contact-form-integration/includes/vendor/monolog/monolog/src/Monolog/Handler/MailHandler.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 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
10 plugin tags: b24, forms, integration, lead, form...

flamix-bitrix24-and-divi-contact-form-integration/flamix-bitrix24-and-divi-contact-form-integration.php Passed 13 tests

The principal PHP file in "Flamix: Bitrix24 and Divi Contact Form integration" v. 1.0.0 is loaded by WordPress automatically on each request
52 characters long description:
Bitrix24 and WordPress Divi Contact Form integration

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin37,519 lines of code in 414 files:
LanguageFilesBlank linesComment linesLines of code
PHP3526,06314,42730,025
Markdown341,89305,220
JSON24002,099
CSS100130
XML10020
YAML11015
JavaScript10010

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity12.64
▷ 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,899
▷ Static methods45624.01%
▷ Public methods1,47877.83%
▷ Protected methods19410.22%
▷ Private methods22711.95%
Functions244
▷ Named functions12250.00%
▷ Anonymous functions12250.00%
Constants212
▷ Global constants104.72%
▷ Class constants20295.28%
▷ Public constants14471.29%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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%