Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼2.36ms] Passed 4 tests
Analyzing server-side resources used by ChatBot for Social Media
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.48 ▼9.10 |
Dashboard /wp-admin | 3.38 ▲0.08 | 56.85 ▲4.68 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 60.15 ▲9.69 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 109.02 ▼4.48 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 39.36 ▼0.53 |
Manage FB Pages /wp-admin/admin.php?page=wpbot-fb-private-replies | 3.28 | 51.92 |
Messenger Chatbot /wp-admin/admin.php?page=wbfb-botsetting-page | 3.28 | 53.43 |
Server storage [IO: ▲1.99MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 123 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_wpbot_fb_pages |
wp_wpbot_fb_subscribers |
wp_wpbot_fb_broadcasts |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for ChatBot for Social Media
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,979 ▲190 | 15.05 ▲1.84 | 1.82 ▼0.26 | 44.41 ▼6.08 |
Dashboard /wp-admin | 2,385 ▲179 | 6.74 ▲0.91 | 131.15 ▲22.16 | 42.98 ▼0.81 |
Posts /wp-admin/edit.php | 2,294 ▲205 | 3.66 ▲1.66 | 57.05 ▲20.21 | 35.36 ▲1.33 |
Add New Post /wp-admin/post-new.php | 1,551 ▲18 | 24.30 ▲0.80 | 705.58 ▲103.92 | 35.01 ▼20.90 |
Media Library /wp-admin/upload.php | 1,430 ▲42 | 4.38 ▲0.16 | 82.92 ▼33.04 | 41.70 ▼1.05 |
Manage FB Pages /wp-admin/admin.php?page=wpbot-fb-private-replies | 995 | 3.36 | 42.04 | 31.69 |
Messenger Chatbot /wp-admin/admin.php?page=wbfb-botsetting-page | 1,162 | 3.53 | 43.43 | 35.60 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 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 were found after uninstall: 3 tables
- wp_wpbot_fb_broadcasts
- wp_wpbot_fb_pages
- wp_wpbot_fb_subscribers
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
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 | 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 fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/chatbot-for-messenger/wpbot-fb-messenger-addon.php
- 46× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNodeFactory' not found in wp-content/plugins/chatbot-for-messenger/vendor/facebook/graph-sdk/src/Facebook/GraphNodes/GraphObjectFactory.php:36
- > PHP Fatal error
Uncaught Error: Interface 'Facebook\\Http\\RequestBodyInterface' not found in wp-content/plugins/chatbot-for-messenger/vendor/facebook/graph-sdk/src/Facebook/Http/RequestBodyMultipart.php:37
- > PHP Fatal error
Uncaught Error: Interface 'Facebook\\PseudoRandomString\\PseudoRandomStringGeneratorInterface' not found in wp-content/plugins/chatbot-for-messenger/vendor/facebook/graph-sdk/src/Facebook/PseudoRandomString/McryptPseudoRandomStringGenerator.php:28
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/chatbot-for-messenger/vendor/facebook/graph-sdk/src/Facebook/GraphNodes/GraphAchievement.php:31
- > PHP Fatal error
Uncaught Error: Interface 'Facebook\\HttpClients\\FacebookHttpClientInterface' not found in wp-content/plugins/chatbot-for-messenger/vendor/facebook/graph-sdk/src/Facebook/HttpClients/FacebookCurlHttpClient.php:34
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\Collection' not found in wp-content/plugins/chatbot-for-messenger/vendor/facebook/graph-sdk/src/Facebook/GraphNodes/GraphNode.php:31
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\Helpers\\FacebookSignedRequestFromInputHelper' not found in wp-content/plugins/chatbot-for-messenger/vendor/facebook/graph-sdk/src/Facebook/Helpers/FacebookCanvasHelper.php:31
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\Exceptions\\FacebookSDKException' not found in wp-content/plugins/chatbot-for-messenger/vendor/facebook/graph-sdk/src/Facebook/Exceptions/FacebookResumableUploadException.php:31
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/chatbot-for-messenger/vendor/facebook/graph-sdk/src/Facebook/GraphNodes/GraphSessionInfo.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chatbot-for-messenger/wpbot-fb-ajax-handler.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: auto comment, facebook messenger, messenger, chatbot
chatbot-for-messenger/wpbot-fb-messenger-addon.php 69% from 13 tests
"ChatBot for Social Media" version 0.9.9'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 ("chatbot-for-messenger.php" instead of "wpbot-fb-messenger-addon.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Requires at least: The required version number must match the one declared in readme.txt ("4.9" instead of "4.6")
- Domain Path: The domain path points to an invalid folder, "/lang/" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin10,769 lines of code in 104 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 91 | 1,678 | 5,950 | 7,453 |
SVG | 2 | 0 | 0 | 2,959 |
JavaScript | 3 | 24 | 4 | 127 |
CSS | 4 | 15 | 5 | 117 |
JSON | 2 | 0 | 0 | 104 |
XML | 1 | 0 | 0 | 7 |
Markdown | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 6.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 1.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 5 | |
Traits | 1 | |
Classes | 72 | |
▷ Abstract classes | 1 | 1.39% |
▷ Concrete classes | 71 | 98.61% |
▷ Final classes | 0 | 0.00% |
Methods | 547 | |
▷ Static methods | 20 | 3.66% |
▷ Public methods | 502 | 91.77% |
▷ Protected methods | 26 | 4.75% |
▷ Private methods | 19 | 3.47% |
Functions | 71 | |
▷ Named functions | 67 | 94.37% |
▷ Anonymous functions | 4 | 5.63% |
Constants | 24 | |
▷ Global constants | 2 | 8.33% |
▷ Class constants | 22 | 91.67% |
▷ Public constants | 22 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin