79% flamix-bitrix24-and-ninja-forms-integration

Code Review | Flamix: Bitrix24 and Ninja Forms integration

WordPress plugin Flamix: Bitrix24 and Ninja Forms 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: Apr 24, 2023
  • Latest release: Jul 1, 2023
  • Number of updates: 6
  • Update frequency: every 11.7 days
  • Top authors: flamix (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /112 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Server-side resources used by Flamix: Bitrix24 and Ninja Forms integration
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2334.90 ▼5.97
Dashboard /wp-admin3.55 ▲0.2545.43 ▼2.62
Posts /wp-admin/edit.php3.61 ▲0.2551.26 ▲1.18
Add New Post /wp-admin/post-new.php6.07 ▲0.1883.44 ▼5.45
Media Library /wp-admin/upload.php3.41 ▲0.1834.11 ▲2.20
Bitrix24 ← Ninja /wp-admin/options-general.php?page=flamix-bitrix24-and-ninja-forms-integration/includes/local/Settings/Menu.php3.4538.86
Bitrix24 integration /wp-admin/admin.php?page=flamix-bitrix24-and-ninja-forms-integration/includes/local/Settings/Menu.php3.4533.51

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 443 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Flamix: Bitrix24 and Ninja Forms integration
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.45 ▼0.301.58 ▼0.1144.74 ▲5.05
Dashboard /wp-admin2,210 ▲224.84 ▼0.27105.51 ▼8.1141.05 ▼2.74
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0039.62 ▼1.3236.46 ▲0.58
Add New Post /wp-admin/post-new.php1,538 ▲2423.22 ▲5.67612.87 ▼72.9262.90 ▲11.29
Media Library /wp-admin/upload.php1,395 ▲134.20 ▲0.0897.23 ▼0.9942.24 ▲2.17
Bitrix24 ← Ninja /wp-admin/options-general.php?page=flamix-bitrix24-and-ninja-forms-integration/includes/local/Settings/Menu.php9272.1825.1635.39
Bitrix24 integration /wp-admin/admin.php?page=flamix-bitrix24-and-ninja-forms-integration/includes/local/Settings/Menu.php9272.1826.2428.30

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • 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 | 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 perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/flamix-bitrix24-and-ninja-forms-integration/includes/vendor/mobiledetect/mobiledetectlib/export/exportToJSON.php
  • 177× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\VarDumper\\Dumper\\ContextProvider\\ContextProviderInterface' not found in wp-content/plugins/flamix-bitrix24-and-ninja-forms-integration/includes/vendor/symfony/var-dumper/Dumper/ContextProvider/CliContextProvider.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/flamix-bitrix24-and-ninja-forms-integration/includes/vendor/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\VarDumper\\Command\\Descriptor\\DumpDescriptorInterface' not found in wp-content/plugins/flamix-bitrix24-and-ninja-forms-integration/includes/vendor/symfony/var-dumper/Command/Descriptor/HtmlDescriptor.php:25
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/flamix-bitrix24-and-ninja-forms-integration/includes/vendor/guzzlehttp/psr7/src/LimitStream.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\MailHandler' not found in wp-content/plugins/flamix-bitrix24-and-ninja-forms-integration/includes/vendor/monolog/monolog/src/Monolog/Handler/SymfonyMailerHandler.php:29
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/flamix-bitrix24-and-ninja-forms-integration/includes/vendor/guzzlehttp/psr7/src/DroppingStream.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/flamix-bitrix24-and-ninja-forms-integration/includes/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/flamix-bitrix24-and-ninja-forms-integration/includes/vendor/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php:25
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/flamix-bitrix24-and-ninja-forms-integration/includes/vendor/psr/http-client/src/NetworkExceptionInterface.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Caster\\ConstStub' not found in wp-content/plugins/flamix-bitrix24-and-ninja-forms-integration/includes/vendor/symfony/var-dumper/Caster/LinkStub.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: crm, bitrix24, forms, b24, lead...

flamix-bitrix24-and-ninja-forms-integration/flamix-bitrix24-and-ninja-forms-integration.php Passed 13 tests

"Flamix: Bitrix24 and Ninja Forms integration" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
46 characters long description:
Bitrix24 and WordPress Ninja Forms integration

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
Everything looks great! No dangerous files found in this plugin37,526 lines of code in 415 files:
LanguageFilesBlank linesComment linesLines of code
PHP3526,06614,43530,025
Markdown341,89305,220
JSON24002,099
CSS100130
YAML21022
XML10020
JavaScript10010

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No 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

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%