Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.57MB] [CPU: ▼2.74ms] Passed 4 tests
Server-side resources used by Chatbot ChatGPT for WordPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.97 ▲0.51 | 46.30 ▲7.43 |
Dashboard /wp-admin | 3.92 ▲0.58 | 49.63 ▼6.21 |
Posts /wp-admin/edit.php | 3.96 ▲0.60 | 50.53 ▲1.03 |
Add New Post /wp-admin/post-new.php | 6.55 ▲0.66 | 86.58 ▼10.76 |
Media Library /wp-admin/upload.php | 3.80 ▲0.57 | 36.46 ▲5.00 |
Chatbot ChatGPT /wp-admin/options-general.php?page=chatbot-chatgpt | 3.74 | 37.67 |
Server storage [IO: ▲6.23MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 171 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_chatbot_chatgpt_interactions |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
chatbot_chatgpt_plugin_version |
chatbot_chatgpt_kn_status |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Chatbot ChatGPT for WordPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,938 ▲202 | 13.65 ▼0.51 | 11.58 ▲9.99 | 35.76 ▼5.81 |
Dashboard /wp-admin | 2,236 ▲55 | 5.84 ▲0.09 | 96.68 ▼7.32 | 44.22 ▼0.31 |
Posts /wp-admin/edit.php | 2,140 ▲40 | 2.31 ▲0.34 | 41.08 ▼2.20 | 38.38 ▲1.32 |
Add New Post /wp-admin/post-new.php | 1,558 ▲29 | 23.57 ▲0.22 | 622.99 ▲6.05 | 32.92 ▼26.29 |
Media Library /wp-admin/upload.php | 1,438 ▲35 | 4.62 ▲0.42 | 99.57 ▲3.20 | 41.70 ▲1.46 |
Chatbot ChatGPT /wp-admin/options-general.php?page=chatbot-chatgpt | 1,059 | 2.23 | 31.26 | 30.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_chatbot_chatgpt_interactions
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- chatbot_chatgpt_plugin_version
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chatbot-chatgpt/includes/chatbot-chatgpt-settings-kn-analysis.php:72
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/chatbot-chatgpt/includes/chatbot-chatgpt-settings-crawler.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: customer-support, ai, assistants, chatbot, openai...
chatbot-chatgpt/chatbot-chatgpt.php Passed 13 tests
"Chatbot ChatGPT for WordPress" version 1.7.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
67 characters long description:
A simple plugin to add a Chatbot ChatGPT to your Wordpress Website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected4,145 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 903 | 1,304 | 3,351 |
JavaScript | 3 | 136 | 144 | 528 |
CSS | 1 | 41 | 33 | 266 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 77.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 22.22% |
Functions | 126 | |
▷ Named functions | 120 | 95.24% |
▷ Anonymous functions | 6 | 4.76% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
111 PNG files occupy 3.98MB with 2.70MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icons/icon-018.png | 74.86KB | 23.06KB | ▼ 69.19% |
assets/icons/icon-017.png | 60.22KB | 21.71KB | ▼ 63.95% |
assets/icons/chinese-006.png | 47.78KB | 13.83KB | ▼ 71.05% |
assets/icons/chinese-003.png | 22.74KB | 6.98KB | ▼ 69.29% |
assets/icons/icon-021.png | 37.18KB | 12.84KB | ▼ 65.48% |