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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 36.68 ▼1.63 |
Dashboard /wp-admin | 3.44 ▲0.13 | 49.87 ▼1.36 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 49.39 ▼0.65 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 83.37 ▲1.94 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 33.19 ▲1.97 |
Getting Started /wp-admin/admin.php?page=convo-getting-started | 3.40 | 35.36 |
Settings /wp-admin/admin.php?page=convo-settings | 3.38 | 44.94 |
Request Log /wp-admin/admin.php?page=convo-service-conversation-request-log | 3.46 | 32.46 |
Convoworks WP /wp-admin/admin.php?page=convo-plugin | 3.33 | 32.34 |
Service Single /wp-admin/admin.php?page=convo-service-single | 3.29 | 28.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲59 | 14.70 ▲0.36 | 1.52 ▼0.18 | 36.35 ▼7.96 |
Dashboard /wp-admin | 2,223 ▲43 | 5.49 ▼0.12 | 87.22 ▼4.69 | 40.22 ▼4.43 |
Posts /wp-admin/edit.php | 2,131 ▲34 | 1.96 ▼0.04 | 38.28 ▼0.62 | 35.06 ▼3.67 |
Add New Post /wp-admin/post-new.php | 1,551 ▲21 | 23.06 ▲0.06 | 675.63 ▲67.56 | 52.67 ▲2.28 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.16 ▼0.02 | 96.39 ▼0.88 | 42.57 ▼1.68 |
Getting Started /wp-admin/admin.php?page=convo-getting-started | 3,481 | 59.33 | 1,333.14 | 113.47 |
Settings /wp-admin/admin.php?page=convo-settings | 1,116 | 28.39 | 374.17 | 54.60 |
Request Log /wp-admin/admin.php?page=convo-service-conversation-request-log | 1,210 | 28.23 | 236.73 | 35.86 |
Convoworks WP /wp-admin/admin.php?page=convo-plugin | 1,108 | 26.42 | 345.77 | 77.40 |
Service Single /wp-admin/admin.php?page=convo-service-single | 711 | 1.63 | 6.72 | 16.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
- > PHP Fatal error
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
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
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2,742 | 6,525 | 121,808 | 166,263 |
JSON | 117 | 3 | 0 | 43,123 |
CSS | 10 | 3,161 | 359 | 13,740 |
Markdown | 159 | 4,713 | 0 | 12,642 |
HTML | 125 | 590 | 2 | 3,741 |
SVG | 8 | 1 | 1 | 3,113 |
yacc | 3 | 284 | 12 | 1,791 |
JavaScript | 29 | 173 | 757 | 990 |
XML | 19 | 22 | 7 | 425 |
Protocol Buffers | 2 | 14 | 38 | 64 |
Python | 1 | 20 | 48 | 57 |
Bourne Shell | 3 | 4 | 0 | 18 |
DOS Batch | 3 | 0 | 0 | 12 |
TOML | 1 | 3 | 0 | 12 |
YAML | 1 | 0 | 0 | 1 |
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 code | 0.30 |
Average class complexity | 8.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 679.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 210.00 |
Code structure | ||
---|---|---|
Namespaces | 393 | |
Interfaces | 242 | |
Traits | 49 | |
Classes | 2,375 | |
▷ Abstract classes | 272 | 11.45% |
▷ Concrete classes | 2,103 | 88.55% |
▷ Final classes | 90 | 4.28% |
Methods | 15,358 | |
▷ Static methods | 1,511 | 9.84% |
▷ Public methods | 11,913 | 77.57% |
▷ Protected methods | 2,081 | 13.55% |
▷ Private methods | 1,364 | 8.88% |
Functions | 769 | |
▷ Named functions | 204 | 26.53% |
▷ Anonymous functions | 565 | 73.47% |
Constants | 1,717 | |
▷ Global constants | 48 | 2.80% |
▷ Class constants | 1,669 | 97.20% |
▷ Public constants | 1,619 | 97.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/assets/img/icon-content-alt.png | 0.44KB | 0.45KB | 0.00% |
vendor/league/plates/doc/static/images/logo.png | 2.25KB | 1.53KB | ▼ 32.22% |
public/assets/images/dialogflow.png | 25.91KB | 11.31KB | ▼ 56.37% |
public/assets/img/icon-help.png | 0.27KB | 0.28KB | 0.00% |
public/assets/images/icon-content-alt.png | 1.13KB | 0.60KB | ▼ 46.94% |