Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼141.68ms] Passed 4 tests
This is a short check of server-side resources used by Simple Chat
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.08 | 29.60 ▲7.16 |
Dashboard /wp-admin | 3.13 ▲0.07 | 33.57 ▼3.41 |
Posts /wp-admin/edit.php | 3.22 ▲0.11 | 34.81 ▲4.83 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.05 | 72.41 ▼568.06 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 23.64 ▼0.08 |
Simple Chat /wp-admin/options-general.php?page=simple-chat | 3.05 | 23.55 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 22 new files
Database: 4 new tables, 1 new option
New tables |
---|
wp_schat_channels |
wp_schat_channel_users |
wp_usermessages |
wp_schat_users |
New WordPress options |
---|
simple_chat_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple Chat
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,068 ▲467 | 16.58 ▲0.65 | 25.49 ▲18.97 | 91.14 ▲20.35 |
Dashboard /wp-admin | 2,938 ▲45 | 6.54 ▲0.35 | 129.29 ▼3.79 | 165.36 ▼6.86 |
Posts /wp-admin/edit.php | 2,751 ▲45 | 3.32 ▲0.08 | 79.15 ▲15.85 | 142.93 ▲13.91 |
Add New Post /wp-admin/post-new.php | 2,325 ▼1,418 | 15.55 ▼3.14 | 414.44 ▼24.44 | 157.12 ▼45.71 |
Media Library /wp-admin/upload.php | 1,757 ▲8 | 5.93 ▲0.42 | 160.45 ▲21.08 | 184.67 ▲5.22 |
Simple Chat /wp-admin/options-general.php?page=simple-chat | 1,197 | 3.11 | 76.19 | 121.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure failed, leaving 4 tables in the database
- wp_usermessages
- wp_schat_channel_users
- wp_schat_channels
- wp_schat_users
- Zombie WordPress options were found after uninstall: 1 option
- simple_chat_version
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant SIMPLE_CHAT_LIKE_URL - assumed 'SIMPLE_CHAT_LIKE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-chat/admin-template.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/simple-chat/admin-template.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-chat/ajax.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-chat/simple-chat.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-chat/admin.php:3
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=simple-chat
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic&ver=5.8.1 1:31592 "jQuery.Deferred exception: jq(...).live is not a function" "TypeError: jq(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/simple-chat/js/global.js?ver=5.8.1:325:30)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic&ver=5.8.1:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic&ver=5.8.1:2:30340)" undefined
- > GET request to /wp-admin/options-general.php?page=simple-chat
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic&ver=5.8.1 1:31592 "jQuery.Deferred exception: j(...).live is not a function" "TypeError: j(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/simple-chat/js/schat.js?nocache=1646978866&ver=5.8.1:548:46)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic&ver=5.8.1:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic&ver=5.8.1:2:30340)" undefined
- > GET request to /wp-admin/options-general.php?page=simple-chat
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic&ver=5.8.1 1:31702 Uncaught TypeError: jq(...).live is not a function
- > GET request to /wp-admin/options-general.php?page=simple-chat
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic&ver=5.8.1 1:31702 Uncaught TypeError: j(...).live is not a function
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: facebook, chat, facebook chat, talk, ajax...
simple-chat/simple-chat.php Passed 13 tests
This is the main PHP file of "Simple Chat" version 1.0.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
73 characters long description:
a chat based on facebook chat, works only for registred and logged users.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected3,109 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 481 | 296 | 1,832 |
CSS | 3 | 63 | 46 | 650 |
PHP | 8 | 197 | 98 | 627 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
themes/images/afk.png | 0.31KB | 0.27KB | ▼ 12.42% |
themes/images/off.png | 0.29KB | 0.27KB | ▼ 8.64% |
themes/images/on.png | 0.32KB | 0.27KB | ▼ 15.64% |
themes/images/busy.png | 0.30KB | 0.27KB | ▼ 11.00% |