Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.03ms] Passed 4 tests
Server-side resources used by Wany.Chat
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.72 ▼0.72 |
Dashboard /wp-admin | 3.34 ▲0.03 | 48.76 ▼3.29 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.93 ▼1.43 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 87.51 ▼6.38 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.46 ▼1.03 |
Wany.Chat /wp-admin/options-general.php?page=rrbot-settings | 3.22 | 32.24 |
Server storage [IO: ▲1.56MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 101 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Wany.Chat
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 13.18 ▼1.47 | 2.04 ▼0.93 | 43.21 ▼3.63 |
Dashboard /wp-admin | 2,225 ▲22 | 5.86 ▲0.94 | 111.93 ▲6.50 | 45.10 ▲2.74 |
Posts /wp-admin/edit.php | 2,101 ▲4 | 2.06 ▲0.03 | 34.48 ▼3.25 | 32.29 ▼5.39 |
Add New Post /wp-admin/post-new.php | 1,529 ▼11 | 17.70 ▼5.45 | 675.82 ▲20.90 | 54.82 ▼4.76 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.18 ▼0.01 | 96.96 ▼5.03 | 42.07 ▼4.61 |
Wany.Chat /wp-admin/options-general.php?page=rrbot-settings | 767 | 2.02 | 25.39 | 26.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'ChatBot\\ChB_Payment' not found in wp-content/plugins/wany-chat/includes/ChB_PaymentMercadoPago.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function ChatBot\\is_ssl() in wp-content/plugins/wany-chat/includes/ChB_CheckRequirements.php:20
- > PHP Fatal error
Uncaught Error: Class 'ChatBot\\ChB_KeyValueStorage' not found in wp-content/plugins/wany-chat/includes/ChB_KeyValueStorageSQL.php:5
- > PHP Fatal error
Uncaught Error: Class 'ChatBot\\ChB_Payment' not found in wp-content/plugins/wany-chat/includes/ChB_PaymentRobokassa.php:7
- > PHP Fatal error
Uncaught Error: Class 'ChatBot\\ChB_KeyValueStorage' not found in wp-content/plugins/wany-chat/includes/ChB_KeyValueStorageRedis.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% 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
Please fix the following attributes:
- Tags: There are too many tags (17 tag instead of maximum 10)
wany-chat/wany-chat.php Passed 13 tests
The principal PHP file in "Wany.Chat" v. 1.3.16.6 is loaded by WordPress automatically on each request
63 characters long description:
Turn your WooCommerce store into Selling Chatbot. Automatically
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin21,123 lines of code in 69 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 68 | 4,408 | 777 | 20,996 |
JavaScript | 1 | 23 | 7 | 127 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 59.41 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 402.00 |
Average method complexity | 5.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 66 | |
▷ Abstract classes | 3 | 4.55% |
▷ Concrete classes | 63 | 95.45% |
▷ Final classes | 0 | 0.00% |
Methods | 946 | |
▷ Static methods | 660 | 69.77% |
▷ Public methods | 891 | 94.19% |
▷ Protected methods | 9 | 0.95% |
▷ Private methods | 46 | 4.86% |
Functions | 38 | |
▷ Named functions | 10 | 26.32% |
▷ Anonymous functions | 28 | 73.68% |
Constants | 545 | |
▷ Global constants | 1 | 0.18% |
▷ Class constants | 544 | 99.82% |
▷ Public constants | 513 | 94.30% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
27 PNG files occupy 0.32MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/next-page-pt.png | 20.62KB | 10.64KB | ▼ 48.38% |
assets/img/next-page-horizontal-en.png | 9.89KB | 6.04KB | ▼ 38.91% |
assets/img/color2.png | 1.84KB | 0.15KB | ▼ 91.84% |
assets/img/color4.png | 1.84KB | 0.15KB | ▼ 91.85% |
assets/img/wanychat-logo.png | 7.83KB | 7.79KB | ▼ 0.52% |