Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/chatwee/chatwee.php+223
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.20MB] [CPU: ▼0.33ms] Passed 4 tests
Analyzing server-side resources used by Chat by Chatwee
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 46.50 ▼3.37 |
Dashboard /wp-admin | 3.55 ▲0.24 | 65.86 ▲9.55 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 53.52 ▲3.84 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 102.86 ▼2.22 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 38.49 ▲0.44 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 30 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_chatwee_moderators |
wp_chatwee_pages_to_display |
wp_chatwee_log |
New WordPress options |
---|
chatwee_settings |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Chat by Chatwee
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲103 | 14.34 ▼0.03 | 2.22 ▼0.56 | 43.12 ▼1.73 |
Dashboard /wp-admin | 2,215 ▲41 | 5.52 ▼0.06 | 97.26 ▼0.21 | 86.84 ▲44.26 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 1.98 ▲0.01 | 44.47 ▲8.47 | 37.07 ▲1.66 |
Add New Post /wp-admin/post-new.php | 1,568 ▲42 | 18.26 ▼4.82 | 695.98 ▲5.80 | 69.85 ▲9.77 |
Media Library /wp-admin/upload.php | 1,432 ▲29 | 4.16 ▲0.00 | 99.39 ▼3.29 | 73.98 ▲27.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure failed, leaving 3 tables in the database
- wp_chatwee_log
- wp_chatwee_pages_to_display
- wp_chatwee_moderators
- This plugin did not uninstall successfully, leaving 7 options in the database
- chatwee_settings
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in chatwee/assets to your readme.txt
- Tags: You are using too many tags: 24 tag instead of maximum 10
chatwee/chatwee.php 92% from 13 tests
The main file in "Chat by Chatwee" v. 2.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 189 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
Everything looks great! No dangerous files found in this plugin1,943 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 289 | 11 | 1,056 |
JavaScript | 9 | 135 | 0 | 646 |
CSS | 2 | 50 | 0 | 231 |
SVG | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 5.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 1 | 11.11% |
▷ Concrete classes | 8 | 88.89% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 36 | 80.00% |
▷ Public methods | 41 | 91.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 8.89% |
Functions | 36 | |
▷ Named functions | 36 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 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
6 PNG files occupy 0.19MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/infoIcon.png | 0.33KB | 0.34KB | 0.00% |
images/ico_fb_small_16x16.png | 0.67KB | 0.63KB | ▼ 5.97% |
images/chatwee-wp-upgrade-banner.png | 56.05KB | 20.33KB | ▼ 63.74% |
images/wp-plugin-logo128x40.png | 3.63KB | 2.50KB | ▼ 31.20% |
images/blog.png | 41.78KB | 19.56KB | ▼ 53.19% |