Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- The plugin cannot be installed
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'set_defaults' not found or invalid function name
Server metrics [RAM: ▲0.06MB] [CPU: ▼7.99ms] Passed 4 tests
An overview of server-side resources used by ConverseJS for WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.45 ▼0.01 | 26.59 ▼19.47 |
Dashboard /wp-admin | 3.39 ▲0.09 | 45.60 ▼2.42 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 42.17 ▲1.16 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 79.88 ▼11.21 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.87 ▲3.10 |
Converse.js /wp-admin/options-general.php?page=conversejs-wp/conversejs-wp.php | 3.26 | 37.68 |
Server storage [IO: ▲1.32MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for ConverseJS for WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,965 ▲204 | 15.60 ▲1.32 | 36.87 ▲35.28 | 41.80 ▼2.58 |
Dashboard /wp-admin | 2,199 ▲19 | 5.51 ▼0.14 | 90.50 ▲3.89 | 45.08 ▲5.04 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.02 ▲0.00 | 35.37 ▼0.84 | 36.54 ▲0.57 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 22.16 ▼1.57 | 653.45 ▲36.71 | 77.38 ▲21.84 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.22 ▲0.06 | 114.22 ▲9.75 | 54.08 ▲10.90 |
Converse.js /wp-admin/options-general.php?page=conversejs-wp/conversejs-wp.php | 982 | 2.00 | 26.65 | 29.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 26 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=conversejs-wp/conversejs-wp.php
- > Notice in wp-content/plugins/conversejs-wp/conversejs-wp.php+339
Trying to access array offset on value of type bool
- 11 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=conversejs-wp/conversejs-wp.php
- > Notice in wp-content/plugins/conversejs-wp/conversejs-wp.php+315
Undefined variable: checked
- > GET request to /wp-admin/options-general.php?page=conversejs-wp/conversejs-wp.php
- > Deprecated in wp-content/plugins/conversejs-wp/conversejs-wp.php+231
The each() function is deprecated. This message will be suppressed on further calls
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
- 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-wp/conversejs-wp.php:20
- > 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)
No browser issues were found
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
5 plugin tags: jabber, chat, xmpp, javascript, converse
conversejs-wp/conversejs-wp.php Passed 13 tests
The main PHP file in "ConverseJS for WordPress" ver. 0.7 adds more information about the plugin and also serves as the entry point for this plugin
45 characters long description:
Jabber/XMPP client Converse.js for WordPress.
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
Success! There were no dangerous files found in this plugin1,530 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 156 | 29 | 1,089 |
PHP | 2 | 51 | 37 | 293 |
PO File | 1 | 51 | 53 | 145 |
JavaScript | 3 | 72 | 364 | 3 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 35.00 |
▷ Minimum class complexity | 35.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin