Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.07MB] [CPU: ▼23.36ms] Passed 4 tests
This is a short check of server-side resources used by ConverseJS
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 25.63 ▼14.69 |
Dashboard /wp-admin | 3.24 ▼0.11 | 29.92 ▼32.65 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 33.48 ▼12.19 |
Add New Post /wp-admin/post-new.php | 5.61 ▼0.27 | 65.02 ▼33.92 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 29.67 ▼2.16 |
ConverseJS /wp-admin/options-general.php?page=converseJS | 3.22 | 26.43 |
Server storage [IO: ▲17.99MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 83 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ConverseJS
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,299 ▲528 | 21.16 ▲6.90 | 82.48 ▲80.21 | 86.19 ▲42.99 |
Dashboard /wp-admin | 2,212 ▲30 | 5.77 ▼0.09 | 94.46 ▼26.91 | 43.33 ▼7.41 |
Posts /wp-admin/edit.php | 2,098 ▲6 | 2.04 ▲0.01 | 41.06 ▲4.63 | 35.62 ▲3.15 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.17 ▲5.45 | 583.39 ▼75.58 | 50.24 ▼4.70 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.19 ▼0.09 | 101.97 ▲3.14 | 45.00 ▲2.92 |
ConverseJS /wp-admin/options-general.php?page=converseJS | 1,682 | 3.31 | 67.29 | 37.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=converseJS
- > Notice in wp-content/plugins/conversejs/conversejs.php+139
Trying to access array offset on value of type null
SRP 50% 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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/conversejs/conversejs.php:60
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: chatme, xmpp, irc, motostorie, chat...
conversejs/conversejs.php Passed 13 tests
"ConverseJS" version 4.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
90 characters long description:
This plugin add the javascript code for Converse.js a Jabber/XMPP chat for your WordPress.
Code Analysis Passed 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 plugin127,901 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 15,522 | 39,399 | 112,851 |
CSS | 4 | 2,012 | 37 | 10,282 |
SVG | 8 | 0 | 10 | 4,126 |
PHP | 2 | 60 | 16 | 514 |
JSON | 31 | 0 | 0 | 128 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.04 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 1 | 7.69% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/css/images/overlay.png | 47.50KB | 34.84KB | ▼ 26.65% |
core/css/images/user.png | 1.66KB | 1.08KB | ▼ 34.90% |
core/css/images/bitcoin_qr_code.png | 4.12KB | 0.63KB | ▼ 84.63% |