Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▲2.18ms] Passed 4 tests
This is a short check of server-side resources used by Zidy_Chatbot
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 46.32 ▲9.90 |
Dashboard /wp-admin | 3.37 ▲0.06 | 48.72 ▼0.63 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 53.41 ▲6.52 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 95.96 ▼5.22 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 43.33 ▲8.04 |
Zidy Webchat /wp-admin/options-general.php?page=zidy-webchat-options | 3.25 | 34.01 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Zidy_Chatbot
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.84 ▲0.47 | 1.81 ▲0.03 | 40.03 ▼4.63 |
Dashboard /wp-admin | 2,210 ▲19 | 5.79 ▼0.05 | 101.69 ▼6.16 | 40.90 ▼4.00 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.98 ▼0.00 | 40.10 ▲2.89 | 37.45 ▼0.20 |
Add New Post /wp-admin/post-new.php | 1,538 ▲19 | 23.18 ▼0.05 | 673.32 ▼4.65 | 65.98 ▲7.94 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.23 ▼0.01 | 101.79 ▼1.67 | 44.38 ▲1.23 |
Zidy Webchat /wp-admin/options-general.php?page=zidy-webchat-options | 837 | 2.06 | 24.86 | 25.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=zidy-webchat-options
- > Notice in wp-content/plugins/zidy-chatbot/templates/admin.php+31
Undefined index: widget_code
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/zidy-chatbot/templates/admin.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 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
6 plugin tags: texting, webchat, chat widget, zidy_chatbot, zidy...
zidy-chatbot/Zidy_Chatbot.php 85% from 13 tests
The primary PHP file in "Zidy_Chatbot" version 1.0.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 186 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("zidy-chatbot.php" instead of "Zidy_Chatbot.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected135 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 24 | 10 | 135 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 5.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 3 | 100.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 11 | 100.00% |
▷ Public methods | 10 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 9.09% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin