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: ▲5.55MB] [CPU: ▼255.40ms] 75% from 4 tests
This is a short check of server-side resources used by Number Chat
The following require your attention
- Extra RAM: The extra memory usage must be under 5MB (currently 5.55MB on /wp-admin/options-general.php?page=redux-framework)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.14 ▲5.62 | 94.69 ▲45.68 |
Dashboard /wp-admin | 8.94 ▲5.53 | 71.74 ▲37.13 |
Posts /wp-admin/edit.php | 9.17 ▲5.53 | 74.02 ▲36.70 |
Add New Post /wp-admin/post-new.php | 12.49 ▲5.52 | 128.28 ▼1,136.63 |
Media Library /wp-admin/upload.php | 8.89 ▲5.60 | 64.85 ▲41.22 |
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius | 9.07 | 60.11 |
Redux /wp-admin/options-general.php?page=redux-framework | 8.85 | 59.91 |
Server storage [IO: ▲23.44MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 1,489 new files
Database: no new tables, 6 new options
New WordPress options |
---|
fs_gdpr |
fs_debug_mode |
numberchat |
fs_accounts |
fs_active_plugins |
numberchat-transients |
Browser metrics Passed 4 tests
A check of browser resources used by Number Chat
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,103 ▲349 | 16.21 ▲0.44 | 10.31 ▲4.20 | 6.09 ▲3.50 |
Dashboard /wp-admin | 2,974 ▲120 | 6.14 ▲0.02 | 114.90 ▼18.29 | 167.69 ▲7.40 |
Posts /wp-admin/edit.php | 2,779 ▲88 | 3.25 ▲0.02 | 64.94 ▲2.06 | 156.46 ▲14.32 |
Add New Post /wp-admin/post-new.php | 1,691 ▲30 | 17.76 ▲1.01 | 402.37 ▼12.23 | 151.63 ▼1.80 |
Media Library /wp-admin/upload.php | 1,790 ▲95 | 5.54 ▲0.05 | 146.06 ▼0.96 | 200.25 ▲16.83 |
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius | 1,490 | 2.75 | 53.77 | 112.56 |
Redux /wp-admin/options-general.php?page=redux-framework | 1,389 | 4.28 | 98.22 | 283.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/number-chat/freemius/includes/class-freemius.php+8552
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 6 options in the database
- numberchat
- fs_gdpr
- fs_accounts
- numberchat-transients
- fs_debug_mode
- fs_active_plugins
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please fix the following
- 14× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/number-chat/redux-framework-master/extendify-sdk/app/Controllers/TemplateController.php
- > /wp-content/plugins/number-chat/redux-framework-master/extendify-sdk/app/Controllers/UserController.php
- > /wp-content/plugins/number-chat/redux-framework-master/extendify-sdk/app/Controllers/PingController.php
- > /wp-content/plugins/number-chat/admin/partials/whatsapp-chat-admin-display.php
- > /wp-content/plugins/number-chat/redux-framework-master/extendify-sdk/routes/api.php
- > /wp-content/plugins/number-chat/freemius/templates/ajax-loader.php
- > /wp-content/plugins/number-chat/redux-framework-master/extendify-sdk/app/Controllers/SiteSettingsController.php
- > /wp-content/plugins/number-chat/public/partials/whatsapp-chat-public-display.php
- > /wp-content/plugins/number-chat/redux-framework-master/extendify-sdk/app/Controllers/PluginController.php
- > /wp-content/plugins/number-chat/redux-framework-master/extendify-sdk/app/Controllers/MetaController.php
- 20× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/number-chat/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/number-chat/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/number-chat/redux-framework-master/redux-core/templates/panel/header-stickybar.tpl.php:15
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/number-chat/includes/chat.php on line 32
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/number-chat/redux-framework-master/extendify-sdk/editorplus/EditorPlus.php:220
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/number-chat/freemius/templates/account/partials/addon.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/number-chat/redux-framework-master/extendify-sdk/editorplus/editorplus-template.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/number-chat/redux-framework-master/extendify-sdk/app/ApiRouter.php:14
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/number-chat/includes/chat.php on line 27
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/number-chat/redux-framework-master/redux-core/templates/panel/content.tpl.php:13
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots need descriptions #1, #2, #3 in number-chat/assets to your readme.txt
number-chat/number-chat.php Passed 13 tests
The main PHP script in "Number Chat" version 1.0 is automatically included on every request by WordPress
44 characters long description:
Add Whatsapp floating icon with Number Chat.
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin206,834 lines of code in 1,037 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 315 | 15,897 | 13,383 | 67,199 |
PHP | 377 | 14,825 | 30,273 | 63,159 |
JSON | 15 | 0 | 0 | 39,376 |
Sass | 122 | 3,612 | 146 | 19,745 |
CSS | 152 | 5,176 | 440 | 9,848 |
SVG | 49 | 82 | 24 | 6,857 |
Markdown | 4 | 152 | 0 | 561 |
HTML | 1 | 7 | 0 | 60 |
XML | 2 | 6 | 0 | 29 |
PHP code 0% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,908)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 110)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 41.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,908.00 |
Average method complexity | 5.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 110.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 230 | |
▷ Abstract classes | 6 | 2.61% |
▷ Concrete classes | 224 | 97.39% |
▷ Final classes | 2 | 0.89% |
Methods | 2,373 | |
▷ Static methods | 519 | 21.87% |
▷ Public methods | 1,757 | 74.04% |
▷ Protected methods | 158 | 6.66% |
▷ Private methods | 458 | 19.30% |
Functions | 137 | |
▷ Named functions | 117 | 85.40% |
▷ Anonymous functions | 20 | 14.60% |
Constants | 231 | |
▷ Global constants | 107 | 46.32% |
▷ Class constants | 124 | 53.68% |
▷ Public constants | 124 | 100.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
76 PNG files occupy 1.31MB with 0.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
redux-framework-master/redux-core/assets/img/jquery-ui-bootstrap/ui-icons_777777_256x240.png | 6.85KB | 4.18KB | ▼ 38.94% |
redux-framework-master/redux-core/assets/img/1c.png | 0.13KB | 0.13KB | 0.00% |
redux-framework-master/redux-core/assets/img/jquery-ui-bootstrap/ui-icons_888888_256x240.png | 4.10KB | 4.11KB | 0.00% |
redux-framework-master/redux-templates/assets/img/welcome-guide-1.png | 329.94KB | 86.05KB | ▼ 73.92% |
redux-framework-master/redux-templates/assets/img/popup-congrats.png | 59.27KB | 37.29KB | ▼ 37.08% |