61% bdtask-crm

Code Review | Bdtask CRM Best CRM WordPress plugin with full marketing Solution

WordPress plugin Bdtask CRM Best CRM WordPress plugin with full marketing Solution scored 61% from 54 tests.

About plugin

  • Plugin page: bdtask-crm
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7.0
  • WordPress version: 6.3.1
  • First release: Jul 2, 2019
  • Latest release: Apr 29, 2021
  • Number of updates: 45
  • Update frequency: every 14.8 days
  • Top authors: bdtask (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,243 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.34MB] [CPU: ▼1.47ms] Passed 4 tests

Server-side resources used by Bdtask CRM Best CRM WordPress plugin with full marketing Solution
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1540.84 ▼2.48
Dashboard /wp-admin3.75 ▲0.4447.85 ▲1.79
Posts /wp-admin/edit.php3.80 ▲0.4446.13 ▼0.44
Add New Post /wp-admin/post-new.php6.28 ▲0.4094.30 ▼4.73
Media Library /wp-admin/upload.php3.61 ▲0.3841.31 ▲11.01
Leads /wp-admin/admin.php?page=bdtaskcrm_invoice3.7035.22
Manage Quotations /wp-admin/admin.php?page=bdtaskcrm_manage_quotation3.6035.36
Settings /wp-admin/admin.php?page=bdtaskcrm_setting3.6359.06
Manage Order /wp-admin/admin.php?page=bdtaskcrm_manage_order3.6149.48
Order /wp-admin/admin.php?page=bdtaskcrm_create_order3.7745.71
View Order /wp-admin/admin.php?page=bdtaskcrm_view_order3.6433.55
View Quotations /wp-admin/admin.php?page=bdtaskcrm_view_quotation3.6331.30
Premium /wp-admin/admin.php?page=bdtaskcrm_preminum3.5832.95
Update Quotation /wp-admin/admin.php?page=bdtaskcrm_update_qutation3.6927.31
Services /wp-admin/admin.php?page=bdtaskcrm_services3.6632.34

Server storage [IO: ▲13.36MB] [DB: ▲0.01MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 420 new files
Database: 4 new tables, 16 new options
New tables
wp_bdtaskcrm_services
wp_bdtaskcrm_order_tbl
wp_bdtaskcrm_order_details
wp_bdtaskcrm_clients
New WordPress options
professional_language
frontend_address
db_upgraded
frontend_button
frontend_authorziename
service_language
theysaidso_admin_options
can_compress_scripts
contact_language
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

An overview of browser requirements for Bdtask CRM Best CRM WordPress plugin with full marketing Solution
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,026 ▲29116.57 ▲1.834.68 ▲2.8341.51 ▼9.30
Dashboard /wp-admin2,308 ▲1207.09 ▲2.19124.33 ▲11.0239.64 ▼4.03
Posts /wp-admin/edit.php2,200 ▲1114.49 ▲2.4947.80 ▲7.6936.57 ▼1.35
Add New Post /wp-admin/post-new.php1,763 ▲24926.23 ▲8.67659.24 ▼7.8439.07 ▼20.49
Media Library /wp-admin/upload.php1,490 ▲1055.86 ▲1.72111.14 ▲16.4643.91 ▲3.30
Leads /wp-admin/admin.php?page=bdtaskcrm_invoice1,2234.7062.6241.89
Manage Quotations /wp-admin/admin.php?page=bdtaskcrm_manage_quotation1,0834.6157.5730.30
Settings /wp-admin/admin.php?page=bdtaskcrm_setting1,1775.3662.4628.22
Manage Order /wp-admin/admin.php?page=bdtaskcrm_manage_order1,0834.5783.5041.54
Order /wp-admin/admin.php?page=bdtaskcrm_create_order1,5014.2362.0750.07
View Order /wp-admin/admin.php?page=bdtaskcrm_view_order8724.1738.4323.13
View Quotations /wp-admin/admin.php?page=bdtaskcrm_view_quotation8694.1536.6721.02
Premium /wp-admin/admin.php?page=bdtaskcrm_preminum1,0844.0839.6039.53
Update Quotation /wp-admin/admin.php?page=bdtaskcrm_update_qutation1,2044.2943.2836.92
Services /wp-admin/admin.php?page=bdtaskcrm_services1,2024.5860.3333.39

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie tables detected upon uninstall: 4 tables
    • wp_bdtaskcrm_order_tbl
    • wp_bdtaskcrm_services
    • wp_bdtaskcrm_clients
    • wp_bdtaskcrm_order_details
  • This plugin did not uninstall successfully, leaving 16 options in the database
    • theysaidso_admin_options
    • category_language
    • can_compress_scripts
    • db_upgraded
    • service_language
    • widget_recent-comments
    • professional_language
    • widget_recent-posts
    • email_language
    • frontend_address
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=bdtaskcrm_update_qutation
    • > Notice in wp-content/plugins/bdtask-crm/admin/templates/bdtaskcrm_update_qutation.php+10
    Undefined index: id
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=bdtaskcrm_update_qutation
    • > Notice in wp-content/plugins/bdtask-crm/admin/templates/bdtaskcrm_update_qutation.php+167
    Undefined offset: 0
    • > GET request to /wp-admin/admin.php?page=bdtaskcrm_update_qutation
    • > Notice in wp-content/plugins/bdtask-crm/admin/templates/bdtaskcrm_update_qutation.php+99
    Trying to get property 'order_id' of non-object
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=bdtaskcrm_update_qutation
    • > Notice in wp-content/plugins/bdtask-crm/admin/templates/bdtaskcrm_update_qutation.php+134
    Trying to get property 'client_type' of non-object
    • > GET request to /wp-admin/admin.php?page=bdtaskcrm_update_qutation
    • > Notice in wp-content/plugins/bdtask-crm/admin/templates/bdtaskcrm_update_qutation.php+157
    Trying to get property 'create_date' of non-object
    • > GET request to /wp-admin/admin.php?page=bdtaskcrm_update_qutation
    • > Notice in wp-content/plugins/bdtask-crm/admin/templates/bdtaskcrm_update_qutation.php+167
    Trying to get property 'expiry_date' of non-object
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=bdtaskcrm_update_qutation
    • > Notice in wp-content/plugins/bdtask-crm/admin/templates/bdtaskcrm_update_qutation.php+386
    Undefined variable: value
    • > GET request to /wp-admin/admin.php?page=bdtaskcrm_update_qutation
    • > Notice in wp-content/plugins/bdtask-crm/admin/templates/bdtaskcrm_update_qutation.php+283
    Trying to get property 'special_instruction' of non-object
    • > GET request to /wp-admin/admin.php?page=bdtaskcrm_update_qutation
    • > Notice in wp-content/plugins/bdtask-crm/admin/templates/bdtaskcrm_update_qutation.php+288
    Trying to get property 'subTotal' of non-object
    • > GET request to /wp-admin/admin.php?page=bdtaskcrm_update_qutation
    • > Notice in wp-content/plugins/bdtask-crm/admin/templates/bdtaskcrm_update_qutation.php+295
    Trying to get property 'tax' of non-object
    • > GET request to /wp-admin/admin.php?page=bdtaskcrm_update_qutation
    • > Notice in wp-content/plugins/bdtask-crm/admin/templates/bdtaskcrm_update_qutation.php+302
    Trying to get property 'grand_total' of non-object
    • > GET request to /wp-admin/admin.php?page=bdtaskcrm_update_qutation
    • > Notice in wp-content/plugins/bdtask-crm/admin/templates/bdtaskcrm_update_qutation.php+377
    Undefined variable: tbl_services
    • > GET request to /wp-admin/admin.php?page=bdtaskcrm_update_qutation
    • > Warning in wp-content/plugins/bdtask-crm/admin/templates/bdtaskcrm_update_qutation.php+377
    array_filter() expects parameter 1 to be array, null given
    • > GET request to /wp-admin/admin.php?page=bdtaskcrm_update_qutation
    • > Warning in wp-content/plugins/bdtask-crm/admin/templates/bdtaskcrm_update_qutation.php+377
    Invalid argument supplied for foreach()
    • > GET request to /wp-admin/admin.php?page=bdtaskcrm_update_qutation
    • > Notice in wp-content/plugins/bdtask-crm/admin/templates/bdtaskcrm_update_qutation.php+386
    Trying to get property 'row_id' of non-object

SRP 0% 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
Almost there! Just fix the following items
  • 4× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/bdtask-crm/public/partials/bdtaskcrm-public-display.php
    • > /wp-content/plugins/bdtask-crm/admin/templates/pdf/dompdf/lib/php-css-parser/tests/quickdump.php
    • > /wp-content/plugins/bdtask-crm/admin/partials/bdtaskcrm-admin-display.php
    • > /wp-content/plugins/bdtask-crm/admin/templates/bdtaskcrm_update_order.php
  • 130× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Sabberworm\\CSS\\RuleSet\\RuleSet' not found in wp-content/plugins/bdtask-crm/admin/templates/pdf/dompdf/lib/php-css-parser/lib/Sabberworm/CSS/RuleSet/AtRuleSet.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Sabberworm\\CSS\\Value\\CSSFunction' not found in wp-content/plugins/bdtask-crm/admin/templates/pdf/dompdf/lib/php-css-parser/lib/Sabberworm/CSS/Value/Color.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Svg\\Tag\\Shape' not found in wp-content/plugins/bdtask-crm/admin/templates/pdf/dompdf/lib/php-svg-lib/src/Svg/Tag/Ellipse.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/bdtask-crm/admin/templates/pdf/dompdf/lib/php-css-parser/tests/Sabberworm/CSS/CSSList/AtRuleBlockListTest.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Svg\\Tag\\AbstractTag' not found in wp-content/plugins/bdtask-crm/admin/templates/pdf/dompdf/lib/php-svg-lib/src/Svg/Tag/Stop.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Sabberworm\\CSS\\CSSList\\CSSList' not found in wp-content/plugins/bdtask-crm/admin/templates/pdf/dompdf/lib/php-css-parser/lib/Sabberworm/CSS/CSSList/CSSBlockList.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Dompdf\\Renderer\\Block' not found in wp-content/plugins/bdtask-crm/admin/templates/pdf/dompdf/src/Renderer/Image.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Dompdf\\FrameReflower\\AbstractFrameReflower' not found in wp-content/plugins/bdtask-crm/admin/templates/pdf/dompdf/src/FrameReflower/NullFrameReflower.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'FontLib\\BinaryStream' not found in wp-content/plugins/bdtask-crm/admin/templates/pdf/dompdf/lib/php-font-lib/src/FontLib/Glyph/Outline.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/bdtask-crm/admin/templates/pdf/dompdf/lib/php-css-parser/tests/Sabberworm/CSS/RuleSet/LenientParsingTest.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6 in bdtask-crm/assets to your readme.txt
  • Tags: There are too many tags (15 tag instead of maximum 10)
You can look at the official readme.txt

bdtask-crm/bdtaskcrm.php 85% from 13 tests

The main file in "Bdtask CRM Best CRM WordPress plugin with full marketing Solution" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("bdtask-crm.php" instead of "bdtaskcrm.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis 97% from 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 plugin55,421 lines of code in 323 files:
LanguageFilesBlank linesComment linesLines of code
PHP2239,72016,20142,061
CSS412361445,376
JavaScript82981,1922,592
Sass1328241,560
LESS1328341,550
SVG300951
Markdown62550909
XML632201
JSON500139
YAML416365
HTML10017

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 652)
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity33.73
▷ Minimum class complexity1.00
▷ Maximum class complexity765.00
Average method complexity4.14
▷ Minimum method complexity1.00
▷ Maximum method complexity652.00
Code structure
Namespaces33
Interfaces5
Traits0
Classes189
▷ Abstract classes126.35%
▷ Concrete classes17793.65%
▷ Final classes00.00%
Methods2,085
▷ Static methods1456.95%
▷ Public methods1,79285.95%
▷ Protected methods1929.21%
▷ Private methods1014.84%
Functions35
▷ Named functions2057.14%
▷ Anonymous functions1542.86%
Constants164
▷ Global constants95.49%
▷ Class constants15594.51%
▷ Public constants155100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/templates/pdf/dompdf/lib/res/broken_image.png0.60KB0.47KB▼ 22.33%
admin/css/bdtask-logo.png2.65KB1.89KB▼ 28.60%