10% integration-with-bitrix24

Code Review | Bitrix24

WordPress plugin Bitrix24 scored10%from 54 tests.

About plugin

  • Plugin page: integration-with-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7
  • WordPress version: 6.3.1
  • First release: Feb 10, 2017
  • Latest release: Apr 4, 2017
  • Number of updates: 8
  • Update frequency: every 6.5 days
  • Top authors: bitrix24 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

900+ active /11,795 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Parse error in wp-content/plugins/integration-with-bitrix24/bitrix24_forms.php+321
    syntax error, unexpected end of file

Server metrics [RAM: ▼0.01MB] [CPU: ▼5.67ms] Passed 4 tests

An overview of server-side resources used by Bitrix24
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.69 ▲5.28
Dashboard /wp-admin3.31 ▼0.0453.20 ▼14.94
Posts /wp-admin/edit.php3.36 ▲0.0052.27 ▲0.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.82 ▼5.25
Media Library /wp-admin/upload.php3.23 ▲0.0038.35 ▼2.75

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Bitrix24
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.74 ▲0.161.97 ▲0.2743.14 ▲2.83
Dashboard /wp-admin2,221 ▲185.84 ▲0.93112.03 ▲1.5242.36 ▼4.24
Posts /wp-admin/edit.php2,103 ▲32.01 ▼0.0444.79 ▲4.9035.09 ▼0.65
Add New Post /wp-admin/post-new.php1,559 ▲2822.72 ▼0.08626.49 ▼54.0371.47 ▲15.74
Media Library /wp-admin/upload.php1,394 ▼34.21 ▼0.0699.60 ▼19.7749.93 ▼0.71

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/integration-with-bitrix24/bitrix24_forms.php on line 321

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots need descriptions #1, #10, #11, #12, #13, #14, #15, #16, #17, #2, #3, #4, #5, #6, #7, #8, #9 in integration-with-bitrix24/assets to your readme.txt
You can take inspiration from this readme.txt

integration-with-bitrix24/bitrix24_forms.php 85% from 13 tests

The entry point to "Bitrix24" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("integration-with-bitrix24.php" instead of "bitrix24_forms.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 317 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin586 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP366155503
PO File2161983

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity20.33
▷ Minimum class complexity2.00
▷ Maximum class complexity34.00
Average method complexity6.27
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods12
▷ Static methods18.33%
▷ Public methods975.00%
▷ Protected methods00.00%
▷ Private methods325.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin