Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/bp-instant-chat/bp-instant-chat.php+65
Undefined index: action
Server metrics [RAM: ▼1.90MB] [CPU: ▼56.41ms] Passed 4 tests
Server-side resources used by BuddyPress Instant Chat
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.36 ▼1.37 | 5.37 ▼42.64 |
Dashboard /wp-admin | 2.38 ▼1.18 | 12.29 ▼42.38 |
Posts /wp-admin/edit.php | 2.38 ▼1.30 | 7.41 ▼53.05 |
Add New Post /wp-admin/post-new.php | 2.38 ▼3.77 | 7.80 ▼87.57 |
Media Library /wp-admin/upload.php | 2.38 ▼1.11 | 6.38 ▼39.95 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
bpic_error_notices |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by BuddyPress Instant Chat
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲56 | 14.73 ▼0.01 | 1.77 ▼0.19 | 42.94 ▼2.57 |
Dashboard /wp-admin | 2,220 ▲46 | 5.66 ▲0.08 | 88.49 ▼16.39 | 43.04 ▼1.34 |
Posts /wp-admin/edit.php | 2,122 ▲19 | 2.04 ▲0.05 | 35.90 ▼1.59 | 36.96 ▲3.74 |
Add New Post /wp-admin/post-new.php | 1,551 ▲10 | 17.46 ▼5.70 | 674.11 ▲40.22 | 53.66 ▼2.44 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.28 ▲0.06 | 97.88 ▼3.10 | 47.55 ▼0.87 |
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
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/bp-instant-chat/bp-instant-chat.php+65
Undefined index: action
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- bpic_error_notices
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/bp-instant-chat/templates/chat.php:2
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/bp-instant-chat/bp-instant-chat.php on line 37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-instant-chat/bp-instant-chat.php:45
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/bp-instant-chat/bp-instant-chat.php on line 38
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (The plugin settings page.) image not found
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
bp-instant-chat/bp-instant-chat.php 92% from 13 tests
The primary PHP file in "BuddyPress Instant Chat" version 1.6 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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,028 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 141 | 238 | 890 |
CSS | 2 | 31 | 0 | 138 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 99.00 |
▷ Minimum class complexity | 99.00 |
▷ Maximum class complexity | 99.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 34 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 34 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected