Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼9.64ms] Passed 4 tests
This is a short check of server-side resources used by Personal Chat room
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 33.46 ▼9.35 |
Dashboard /wp-admin | 3.32 ▼0.03 | 45.72 ▼17.41 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.70 ▼0.28 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 91.95 ▼5.93 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.65 ▼5.88 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 17 new files
Database: 3 new tables, 6 new options
New tables |
---|
cs_profiles |
cs_messages |
cs_val_tab |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Personal Chat room
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.22 ▼1.19 | 1.58 ▼0.19 | 37.82 ▼5.94 |
Dashboard /wp-admin | 2,222 ▲34 | 4.84 ▼1.06 | 112.63 ▼8.61 | 42.33 ▼1.55 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 2.01 ▲0.02 | 39.20 ▲1.23 | 36.26 ▲1.86 |
Add New Post /wp-admin/post-new.php | 1,548 ▲31 | 23.13 ▲5.25 | 585.29 ▼85.14 | 63.56 ▲0.65 |
Media Library /wp-admin/upload.php | 1,407 ▲22 | 4.16 ▼0.07 | 94.84 ▼1.47 | 41.83 ▼1.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie tables detected upon uninstall: 3 tables
- cs_val_tab
- cs_profiles
- cs_messages
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/personal-chat-room/personal-chat-room.php:14
- > PHP Notice
Undefined index: MySQL in wp-content/plugins/personal-chat-room/chat/classes/CMySQL.php on line 17
- > PHP Notice
Trying to get property 'sDbName' of non-object in wp-content/plugins/personal-chat-room/chat/classes/CMySQL.php on line 16
- > PHP Fatal error
Uncaught Error: Call to a member function query() on null in wp-content/plugins/personal-chat-room/install-script.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function mysql_connect() in wp-content/plugins/personal-chat-room/chat/classes/CMySQL.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function mysql_connect() in wp-content/plugins/personal-chat-room/chat/classes/CMySQL.php:20
- > PHP Notice
Undefined index: MySQL in wp-content/plugins/personal-chat-room/chat/classes/CMySQL.php on line 15
- > PHP Notice
Trying to get property 'sDbUser' of non-object in wp-content/plugins/personal-chat-room/chat/classes/CMySQL.php on line 17
- > PHP Notice
Trying to get property 'sDbHost' of non-object in wp-content/plugins/personal-chat-room/chat/classes/CMySQL.php on line 15
- > PHP Notice
Undefined index: MySQL in wp-content/plugins/personal-chat-room/chat/classes/CMySQL.php on line 18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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:
- Plugin Name: You should set the name of your plugin on the first line (
=== personal-chat-room ===
) - Screenshots: Add images for these screenshots: #1 (Wordpress Admin Setting), #2 (Wordpress Front Page Display), #3 (After clicking on the Live chat button, you will be redirected to this page)
personal-chat-room/personal-chat-room.php 92% from 13 tests
This is the main PHP file of "Personal Chat room" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 151 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,073 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 186 | 338 | 771 |
CSS | 1 | 5 | 4 | 181 |
HTML | 4 | 15 | 0 | 88 |
JavaScript | 1 | 2 | 1 | 33 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 27.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 115.00 |
Average method complexity | 6.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 28 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 18.41KB | 6.21KB | ▼ 66.26% |
screenshot-2.png | 21.81KB | 9.59KB | ▼ 56.03% |
screenshot-1.png | 27.58KB | 12.31KB | ▼ 55.35% |