45% convoworks-wp

Code Review | Convoworks WP

WordPress plugin Convoworks WP scored45%from 54 tests.

About plugin

  • Plugin page: convoworks-wp
  • Plugin version: 0.22.38.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jun 9, 2021
  • Latest release: Nov 25, 2023
  • Number of updates: 262
  • Update frequency: every 3.4 days
  • Top authors: zefdev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,552 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.11MB] [CPU: ▼0.43ms] Passed 4 tests

This is a short check of server-side resources used by Convoworks WP
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1636.68 ▼1.63
Dashboard /wp-admin3.44 ▲0.1349.87 ▼1.36
Posts /wp-admin/edit.php3.49 ▲0.1349.39 ▼0.65
Add New Post /wp-admin/post-new.php5.98 ▲0.0983.37 ▲1.94
Media Library /wp-admin/upload.php3.30 ▲0.0733.19 ▲1.97
Getting Started /wp-admin/admin.php?page=convo-getting-started3.4035.36
Settings /wp-admin/admin.php?page=convo-settings3.3844.94
Request Log /wp-admin/admin.php?page=convo-service-conversation-request-log3.4632.46
Convoworks WP /wp-admin/admin.php?page=convo-plugin3.3332.34
Service Single /wp-admin/admin.php?page=convo-service-single3.2928.62

Server storage [IO: ▲41.05MB] [DB: ▲0.01MB] 67% from 3 tests

Input-output and database impact of this plugin
These are issues you should consider
  • Filesystem usage must be lower than 25MB (currently using 41.05MB)
Filesystem: 3,503 new files
Database: 6 new tables, 8 new options
New tables
wp_convo_service_data
wp_convo_service_releases
wp_convo_cache
wp_convo_service_versions
wp_convo_service_conversation_log
wp_convo_service_params
New WordPress options
can_compress_scripts
widget_theysaidso_widget
convo_db_version
db_upgraded
widget_recent-posts
theysaidso_admin_options
recovery_mode_email_last_sent
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Convoworks WP
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲5914.70 ▲0.361.52 ▼0.1836.35 ▼7.96
Dashboard /wp-admin2,223 ▲435.49 ▼0.1287.22 ▼4.6940.22 ▼4.43
Posts /wp-admin/edit.php2,131 ▲341.96 ▼0.0438.28 ▼0.6235.06 ▼3.67
Add New Post /wp-admin/post-new.php1,551 ▲2123.06 ▲0.06675.63 ▲67.5652.67 ▲2.28
Media Library /wp-admin/upload.php1,431 ▲314.16 ▼0.0296.39 ▼0.8842.57 ▼1.68
Getting Started /wp-admin/admin.php?page=convo-getting-started3,48159.331,333.14113.47
Settings /wp-admin/admin.php?page=convo-settings1,11628.39374.1754.60
Request Log /wp-admin/admin.php?page=convo-service-conversation-request-log1,21028.23236.7335.86
Convoworks WP /wp-admin/admin.php?page=convo-plugin1,10826.42345.7777.40
Service Single /wp-admin/admin.php?page=convo-service-single7111.636.7216.49

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie tables detected upon uninstall: 6 tables
    • wp_convo_service_params
    • wp_convo_service_data
    • wp_convo_service_conversation_log
    • wp_convo_cache
    • wp_convo_service_versions
    • wp_convo_service_releases
  • This plugin does not fully uninstall, leaving 8 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • convo_db_version
    • db_upgraded
    • widget_recent-comments
    • recovery_mode_email_last_sent

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=convo-service-single
    • > Notice in wp-content/plugins/convoworks-wp/src/Convo/Http/ServicesController.php+15
    Undefined index: id
    • > GET request to /wp-admin/admin.php?page=convo-service-single
    • > Notice in wp-content/plugins/convoworks-wp/src/Convo/Http/ServicesController.php+18
    Trying to get property 'data' of non-object
    • > GET request to /wp-admin/admin.php?page=convo-service-single
    • > Error in wp-content/plugins/convoworks-wp/vendor/league/plates/src/Template/ResolveTemplatePath/NameAndFolderResolveTemplatePath.php+17
    Uncaught Convoworks\League\Plates\Exception\TemplateNotFound: The template "services/single" could not be found at "wp-content/plugins/convoworks-wp/src/Convo/../../resources/views/services/single.php". in wp-content/plugins/convoworks-wp/vendor/league/plates/src/Template/ResolveTemplatePath/NameAndFolderResolveTemplatePath.php:17
    Stack trace:
    #0 wp-content/plugins/convoworks-wp/vendor/league/plates/src/Template/Template.php(142): Convoworks\League\Plates\Template\ResolveTemplatePath\NameAndFolderResolveTemplatePath->__invoke()
    #1 wp-content/plugins/convoworks-wp/vendor/league/plates/src/Engine.php(264): Convoworks\League\Plates\Template\Template->render()
    #2 wp-content/plugins/convoworks-wp/src/Convo/helpers.php(78): Convoworks\League\Plates\Engine->render()
    #3 wp-content/plugins/convoworks-wp/src/Convo/Http/ServicesController.php(18): Convo\view()
    #4 wp-includes/class-wp-hook.

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 4× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/convoworks-wp/vendor/nikic/php-parser/test_old/run.php
    • > /wp-content/plugins/convoworks-wp/vendor/nikic/php-parser/grammar/rebuildParsers.php
    • > /wp-content/plugins/convoworks-wp/convo-plugin.php
    • > /wp-content/plugins/convoworks-wp/vendor/league/plates/example/templates/sidebar.php
  • 1676× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/convoworks-wp/vendor/google/common-protos/src/Type/LocalizedText.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Convo\\Core\\Workflow\\AbstractBasicComponent' not found in wp-content/plugins/convoworks-wp/vendor/zef-dev/convoworks-core/src/Convo/Pckg/Core/Init/MysqlConnectionComponent.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Convoworks\\Symfony\\Component\\Cache\\Adapter\\AbstractAdapter' not found in wp-content/plugins/convoworks-wp/vendor/symfony/cache/Adapter/PdoAdapter.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Convoworks\\Symfony\\Component\\ExpressionLanguage\ode\ode' not found in wp-content/plugins/convoworks-wp/vendor/symfony/expression-language/Node/ConditionalNode.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\UploadedFileFactoryInterface' not found in wp-content/plugins/convoworks-wp/vendor/http-interop/http-factory-guzzle/src/UploadedFileFactory.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Convoworks\\Symfony\\Component\\Cache\\Adapter\\AbstractAdapter' not found in wp-content/plugins/convoworks-wp/vendor/symfony/cache/Adapter/DoctrineAdapter.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Convoworks\\Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/convoworks-wp/vendor/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Convoworks\\PhpParser\ode\\Scalar' not found in wp-content/plugins/convoworks-wp/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Convoworks\\PhpParser\ode\\Expr' not found in wp-content/plugins/convoworks-wp/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/UnaryMinus.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Convoworks\\phpseclib3\\Crypt\\EC\\BaseCurves\\Prime' not found in wp-content/plugins/convoworks-wp/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/brainpoolP512r1.php:17

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=convo-plugin
    • > Network (severe)
    wp-json/convo/v1/services - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=convo-plugin
    • > Console-api (warning) in unknown
    /wp-content/plugins/convoworks-wp/resources/assets/external/angular.js?ver=0.22.38.2 128:209 "ConvoworksMainController fetching all services failed because of" Object
    • > GET request to /wp-admin/admin.php?page=convo-plugin
    • > Console-api (severe) in wp-content/plugins/convoworks-wp/resources/assets/external/angular.js?ver=0.22.38.2+128:209
    app $exceptionHandler exception" Errorat eval (webpack-internal:///99011:12117:13)at /wp-content/plugins/convoworks-wp/resources/assets/external/angular.js?ver=0.22.38.2:141:462at m.$digest (/wp-content/plugins/convoworks-wp/resources/assets/external/angular.js?ver=0.22.38.2:153:83)at m.$apply (/wp-content/plugins/convoworks-wp/resources/assets/external/angular.js?ver=0.22.38.2:156:500)at k (/wp-content/plugins/convoworks-wp/resources/assets/external/angular.js?ver=0.22.38.2:107:449)at v (/wp-content/plugins/convoworks-wp/resources/assets/external/angular.js?ver=0.22.38.2:113:557)at y.onload (/wp-content/plugins/convoworks-wp/resources/assets/external/angular.js?ver=0.22.38.2:113:981) "cause" "Possibly unhandled rejection: {}
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=convo-plugin
    • > Other (warning) in unknown
    /wp-admin/admin.php?page=convo-plugin#!/convoworks-editor - Failed to decode downloaded font: /wp-content/plugins/convoworks-wp/resources/assets/fonts/fontawesome-webfont.woff2?v=4.7.0
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=convo-plugin
    • > Other (warning) in unknown
    /wp-admin/admin.php?page=convo-plugin#!/convoworks-editor - OTS parsing error: Failed to convert WOFF 2.0 font to SFNT

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: You are using too many tags: 17 tag instead of maximum 10
You can look at the official readme.txt

convoworks-wp/convo-plugin.php 77% from 13 tests

"Convoworks WP" version 0.22.38.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("convoworks-wp.php" instead of "convo-plugin.php")
  • Domain Path: The domain path points to an invalid folder, "/resources/lang" does not exist
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis 3% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Please make sure to remedy the following
  • Do not distribute dangerous files with your plugin
    • .bat - Batch File in Windows
      • wp-content/plugins/convoworks-wp/vendor/bin/html-to-markdown.bat
      • wp-content/plugins/convoworks-wp/vendor/bin/mp3scan.bat
      • wp-content/plugins/convoworks-wp/vendor/bin/php-parse.bat
245,992 lines of code in 3,223 files:
LanguageFilesBlank linesComment linesLines of code
PHP2,7426,525121,808166,263
JSON1173043,123
CSS103,16135913,740
Markdown1594,713012,642
HTML12559023,741
SVG8113,113
yacc3284121,791
JavaScript29173757990
XML19227425
Protocol Buffers2143864
Python1204857
Bourne Shell34018
DOS Batch30012
TOML13012
YAML1001

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
Please fix the following
  • Method cyclomatic complexity should be reduced to less than 100 (currently 210)
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity8.18
▷ Minimum class complexity1.00
▷ Maximum class complexity679.00
Average method complexity2.22
▷ Minimum method complexity1.00
▷ Maximum method complexity210.00
Code structure
Namespaces393
Interfaces242
Traits49
Classes2,375
▷ Abstract classes27211.45%
▷ Concrete classes2,10388.55%
▷ Final classes904.28%
Methods15,358
▷ Static methods1,5119.84%
▷ Public methods11,91377.57%
▷ Protected methods2,08113.55%
▷ Private methods1,3648.88%
Functions769
▷ Named functions20426.53%
▷ Anonymous functions56573.47%
Constants1,717
▷ Global constants482.80%
▷ Class constants1,66997.20%
▷ Public constants1,61997.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
44 PNG files occupy 0.62MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/assets/img/icon-content-alt.png0.44KB0.45KB0.00%
vendor/league/plates/doc/static/images/logo.png2.25KB1.53KB▼ 32.22%
public/assets/images/dialogflow.png25.91KB11.31KB▼ 56.37%
public/assets/img/icon-help.png0.27KB0.28KB0.00%
public/assets/images/icon-content-alt.png1.13KB0.60KB▼ 46.94%