Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/kn-public-chat/functions.php+80
Function create_function() is deprecated
Server metrics [RAM: ▼1.94MB] [CPU: ▼54.62ms] Passed 4 tests
An overview of server-side resources used by KN Public Chat
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.04 ▼1.42 | 4.54 ▼37.57 |
Dashboard /wp-admin | 2.06 ▼1.24 | 6.22 ▼49.60 |
Posts /wp-admin/edit.php | 2.06 ▼1.29 | 5.63 ▼41.99 |
Add New Post /wp-admin/post-new.php | 2.06 ▼3.82 | 5.94 ▼89.33 |
Media Library /wp-admin/upload.php | 2.06 ▼1.17 | 5.22 ▼31.59 |
Server storage [IO: ▲0.54MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 14 new options
New WordPress options |
---|
kn_malay_chat_privatekey |
kn_malay_chat_cboxid |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
kn_malay_chat_cboxheight |
kn_malay_chat_version |
kn_malay_chat_cboxwidth |
widget_recent-posts |
db_upgraded |
... |
Browser metrics Passed 4 tests
A check of browser resources used by KN Public Chat
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲43 | 14.20 ▼0.17 | 1.68 ▼0.07 | 40.99 ▼7.03 |
Dashboard /wp-admin | 2,213 ▲33 | 5.56 ▼0.10 | 83.44 ▼12.32 | 67.71 ▲19.59 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 1.99 ▼0.04 | 34.85 ▼4.37 | 34.73 ▼0.41 |
Add New Post /wp-admin/post-new.php | 1,556 ▲30 | 23.18 ▼0.53 | 690.67 ▼20.43 | 59.29 ▲6.19 |
Media Library /wp-admin/upload.php | 1,412 ▲9 | 4.21 ▲0.05 | 99.61 ▼7.55 | 70.89 ▲24.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/kn-public-chat/functions.php+80
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- widget_kn_malay_chat_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 32× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: cboxheight in wp-content/plugins/kn-public-chat/manage.php on line 8
- > PHP Notice
Undefined variable: versi in wp-content/plugins/kn-public-chat/setting.php on line 5
- > PHP Notice
Undefined variable: premium in wp-content/plugins/kn-public-chat/manage.php on line 85
- > PHP Notice
Undefined variable: cboxheight in wp-content/plugins/kn-public-chat/manage.php on line 49
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/kn-public-chat/var.php:4
- > PHP Notice
Undefined variable: kn_plugin in wp-content/plugins/kn-public-chat/setting.php on line 5
- > PHP Notice
Undefined variable: kn_plugin in wp-content/plugins/kn-public-chat/manage.php on line 45
- > PHP Notice
Undefined variable: premium in wp-content/plugins/kn-public-chat/manage.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/kn-public-chat/functions.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/kn-public-chat/chat.php:2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (Admin Page), #2 (Widget In Action)
kn-public-chat/index.php 85% from 13 tests
Analyzing the main PHP file in "KN Public Chat" version 1.0.2
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 245 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("kn-public-chat.php" instead of "index.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
There were no executable files found in this plugin1,489 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 0 | 12 | 1,129 |
PHP | 6 | 11 | 15 | 360 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
6 PNG files occupy 0.20MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 50.41KB | 16.09KB | ▼ 68.07% |
images/icons/tools.png | 0.41KB | 0.44KB | 0.00% |
images/icons/info.png | 0.29KB | 0.28KB | ▼ 3.38% |
images/icon.png | 0.72KB | 0.66KB | ▼ 8.89% |
screenshot-2.png | 148.78KB | 42.67KB | ▼ 71.32% |