Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼7.18ms] Passed 4 tests
An overview of server-side resources used by uWebChat
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 41.49 ▼3.42 |
Dashboard /wp-admin | 3.39 ▲0.04 | 48.50 ▼12.00 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 47.58 ▼0.26 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 80.01 ▼13.02 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.92 ▲4.44 |
uWebChat /wp-admin/options-general.php?page=uWebChat | 3.28 | 29.58 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for uWebChat
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲181 | 13.53 ▼0.85 | 5.51 ▲2.90 | 46.08 ▼2.78 |
Dashboard /wp-admin | 2,214 ▲26 | 5.84 ▲0.76 | 95.85 ▼15.67 | 38.30 ▼2.06 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.02 ▼0.01 | 35.03 ▼4.15 | 32.40 ▼2.43 |
Add New Post /wp-admin/post-new.php | 1,526 ▼17 | 23.30 ▲5.02 | 693.71 ▲80.29 | 47.63 ▼1.78 |
Media Library /wp-admin/upload.php | 1,396 ▲5 | 4.22 ▼0.08 | 101.59 ▲3.18 | 44.19 ▼0.03 |
uWebChat /wp-admin/options-general.php?page=uWebChat | 846 | 2.06 | 26.11 | 25.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
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
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=uWebChat
- > Notice in wp-content/plugins/uwebchat/admin/partials/uWebChat-admin-display.php+26
Trying to access array offset on value of type bool
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
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/uwebchat/public/partials/uWebChat-public-display.php:16
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/uwebchat/public/partials/uWebChat-public-display.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/uwebchat/admin/partials/uWebChat-admin-display.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Enter both Customer ID and Group ID), #2 (Example of the button)
uwebchat/uWebChat.php 85% from 13 tests
The entry point to "uWebChat" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("uwebchat.php" instead of "uWebChat.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected426 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 161 | 482 | 286 |
PO File | 4 | 32 | 4 | 134 |
JavaScript | 2 | 4 | 0 | 6 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 24 | 82.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.24% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
No PNG images were found in this plugin