Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼0.90ms] Passed 4 tests
This is a short check of server-side resources used by WP Live Chat + Chatbots Plugin for WordPress – Chaport
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.93 ▼2.96 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.80 ▲0.15 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.95 ▲1.00 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 91.32 ▲6.48 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.94 ▼1.77 |
Chaport /wp-admin/options-general.php?page=chaport | 3.24 | 30.86 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Live Chat + Chatbots Plugin for WordPress – Chaport
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.21 ▼0.16 | 1.79 ▲0.21 | 39.39 ▼3.86 |
Dashboard /wp-admin | 2,199 ▲25 | 5.57 ▲0.03 | 93.84 ▲9.13 | 41.35 ▲2.38 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.04 | 39.77 ▲0.91 | 37.36 ▼1.31 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 23.26 ▼0.31 | 634.95 ▼25.27 | 51.19 ▲1.70 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.21 ▲0.03 | 93.84 ▼19.89 | 41.06 ▼9.37 |
Chaport /wp-admin/options-general.php?page=chaport | 862 | 2.03 | 24.36 | 26.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/chaport/includes/snippets/chaport_user_data_snippet.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/chaport/includes/snippets/chaport_status_snippet.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/chaport/includes/snippets/chaport_app_id_code_snippet.php:5
- > PHP Notice
Undefined variable: status_class in wp-content/plugins/chaport/includes/snippets/chaport_status_snippet.php on line 1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/chaport/includes/snippets/chaport_settings_snippet.php:1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/chaport/includes/snippets/chaport_installation_code_snippet.php:1
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: web chat, chat widget, chat plugin, free live chat, chatbot...
chaport/chaport.php 92% from 13 tests
The main file in "WP Live Chat + Chatbots Plugin for WordPress – Chaport" v. 1.1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 141 characters long)
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
Success! There were no dangerous files found in this plugin542 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 61 | 32 | 362 |
CSS | 1 | 19 | 0 | 91 |
PO File | 1 | 14 | 0 | 40 |
Markdown | 1 | 7 | 0 | 30 |
JavaScript | 1 | 3 | 0 | 19 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 8.17 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 1 | 16.67% |
▷ Concrete classes | 5 | 83.33% |
▷ Final classes | 5 | 100.00% |
Methods | 33 | |
▷ Static methods | 5 | 15.15% |
▷ Public methods | 29 | 87.88% |
▷ Protected methods | 1 | 3.03% |
▷ Private methods | 3 | 9.09% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin