Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼5.03ms] Passed 4 tests
Server-side resources used by WP Chatbull
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 39.25 ▼1.72 |
Dashboard /wp-admin | 3.41 ▲0.11 | 51.20 ▼2.95 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 51.89 ▼0.20 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 88.33 ▼15.23 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 43.50 ▲3.64 |
Server storage [IO: ▲10.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 642 new files
Database: no new tables, 14 new options
New WordPress options |
---|
gaxon_wpcbcp_pick_wpuser |
gaxon_wpcbcp_enabled_chatbox |
theysaidso_admin_options |
can_compress_scripts |
gaxon_wpcbcp_chatbull_dir |
widget_recent-posts |
gaxon_wpcbcp_widget_code |
gaxon_wpcbcp_visiblity_tpe |
widget_theysaidso_widget |
gaxon_wpcbcp_cbwindow_pages |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Chatbull
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲63 | 13.29 ▼1.00 | 4.84 ▲2.93 | 43.92 ▼2.29 |
Dashboard /wp-admin | 2,233 ▲56 | 5.86 ▲0.17 | 91.80 ▼8.93 | 73.28 ▲28.27 |
Posts /wp-admin/edit.php | 2,141 ▲38 | 2.37 ▲0.37 | 36.93 ▼4.00 | 34.78 ▼1.97 |
Add New Post /wp-admin/post-new.php | 1,713 ▲187 | 22.78 ▼0.29 | 771.93 ▲72.15 | 37.92 ▼11.47 |
Media Library /wp-admin/upload.php | 1,438 ▲44 | 4.49 ▲0.26 | 113.98 ▲11.99 | 73.30 ▲29.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
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
Almost there! Just fix the following items
- 248× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/wp-chatbull/files/application/views/cmodule/partials/pagination.php
- > /wp-content/plugins/wp-chatbull/files/application/language/english/canned-messages_lang.php
- > /wp-content/plugins/wp-chatbull/files/system/core/Output.php
- > /wp-content/plugins/wp-chatbull/files/system/database/drivers/pdo/subdrivers/pdo_oci_driver.php
- > /wp-content/plugins/wp-chatbull/files/system/libraries/Ftp.php
- > /wp-content/plugins/wp-chatbull/files/application/config/smileys.php
- > /wp-content/plugins/wp-chatbull/files/application/migrations/20170523145761_add_user_address.php
- > /wp-content/plugins/wp-chatbull/files/system/core/Hooks.php
- > /wp-content/plugins/wp-chatbull/files/system/database/drivers/oci8/oci8_driver.php
- > /wp-content/plugins/wp-chatbull/files/system/helpers/security_helper.php
- 112× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Trying to get property 'name' of non-object in wp-content/plugins/wp-chatbull/files/application/views/cmodule/emails/chat_transcript.php on line 18
- > PHP Notice
Undefined variable: settings in wp-content/plugins/wp-chatbull/files/application/views/cmodule/emails/request_reply.php on line 13
- > PHP Notice
Trying to get property 'site_name' of non-object in wp-content/plugins/wp-chatbull/files/application/views/cmodule/emails/chat_transcript.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function theme_path() in wp-content/plugins/wp-chatbull/files/application/views/cmodule/agent_layout.php:3
- > PHP Fatal error
Uncaught Error: Class 'CP_AgentController' not found in wp-content/plugins/wp-chatbull/files/application/controllers/agents/Chat.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function base_url() in wp-content/plugins/wp-chatbull/files/application/views/chatbox/chatpanel.php:5
- > PHP Fatal error
Uncaught Error: Class 'CP_VisitorController' not found in wp-content/plugins/wp-chatbull/files/application/controllers/visitors/Chat.php:8
- > PHP Fatal error
Uncaught Error: Class 'CP_Model' not found in wp-content/plugins/wp-chatbull/files/application/models/Chat_request.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-chatbull/files/application/views/cmodule/users/profile.php:3
- > PHP Notice
Undefined variable: message in wp-content/plugins/wp-chatbull/files/application/views/cmodule/emails/forget_password.php on line 23
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
These attributes need your attention:
- Donate link: Please fix this invalid URI: ""
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
wp-chatbull/wp-chatbull.php 92% from 13 tests
This is the main PHP file of "WP Chatbull" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 498 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected97,986 lines of code in 471 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 93 | 9,190 | 9,314 | 42,052 |
PHP | 326 | 10,419 | 31,971 | 39,888 |
CSS | 23 | 701 | 251 | 11,253 |
Markdown | 8 | 841 | 0 | 2,258 |
SVG | 5 | 0 | 0 | 2,149 |
JSON | 9 | 0 | 0 | 262 |
reStructuredText | 1 | 17 | 0 | 53 |
HTML | 3 | 12 | 2 | 50 |
XML | 1 | 0 | 0 | 12 |
make | 1 | 4 | 2 | 6 |
YAML | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 25.39 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 256.00 |
Average method complexity | 3.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 202 | |
▷ Abstract classes | 5 | 2.48% |
▷ Concrete classes | 197 | 97.52% |
▷ Final classes | 0 | 0.00% |
Methods | 1,907 | |
▷ Static methods | 14 | 0.73% |
▷ Public methods | 1,324 | 69.43% |
▷ Protected methods | 576 | 30.20% |
▷ Private methods | 7 | 0.37% |
Functions | 184 | |
▷ Named functions | 184 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 77 | |
▷ Global constants | 76 | 98.70% |
▷ Class constants | 1 | 1.30% |
▷ Public constants | 1 | 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
58 PNG files occupy 0.13MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
files/assets/cmodule/icon/android-chrome-48x48.png | 1.31KB | 0.99KB | ▼ 24.52% |
files/assets/cmodule/icon/apple-touch-icon-76x76.png | 1.76KB | 1.41KB | ▼ 20.12% |
files/assets/cmodule/images/people55.png | 2.86KB | 2.09KB | ▼ 26.78% |
files/assets/cmodule/icon/mstile-310x310.png | 2.87KB | 2.43KB | ▼ 15.47% |
files/assets/cmodule/icon/favicon-16x16.png | 0.75KB | 0.45KB | ▼ 39.63% |