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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼9.60ms] Passed 4 tests
Server-side resources used by Bubble Chat
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 40.89 ▼4.87 |
Dashboard /wp-admin | 3.36 ▲0.01 | 44.40 ▼15.20 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 48.51 ▼2.70 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 82.62 ▼15.64 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 32.40 ▼0.95 |
Server storage [IO: ▲0.85MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Bubble Chat: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,915 ▲143 | 13.55 ▼1.17 | 10.10 ▲7.85 | 81.30 ▲37.14 |
Dashboard /wp-admin | 2,207 ▲30 | 5.58 ▼0.02 | 92.63 ▼1.15 | 41.00 ▼2.33 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 1.97 ▲0.01 | 40.17 ▼3.26 | 36.72 ▼0.43 |
Add New Post /wp-admin/post-new.php | 1,536 ▲7 | 23.04 ▼0.09 | 651.31 ▲44.22 | 61.82 ▲14.60 |
Media Library /wp-admin/upload.php | 1,415 ▲18 | 4.23 ▲0.02 | 95.90 ▼1.55 | 42.12 ▼0.14 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- 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
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WA_Bubble_Settings' not found in wp-content/plugins/bubble-chat/views/whatsapp-bubble.php:3
- > PHP Fatal error
Uncaught Error: Class 'WA_Bubble_Settings' not found in wp-content/plugins/bubble-chat/views/templates/bubble.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/bubble-chat/views/settings-page.php:5
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
bubble-chat/wa-bubble.php 85% from 13 tests
The principal PHP file in "Bubble Chat" v. 3.1 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("bubble-chat.php" instead of "wa-bubble.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin2,397 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 148 | 126 | 1,061 |
Sass | 2 | 16 | 11 | 530 |
CSS | 4 | 28 | 7 | 515 |
JavaScript | 2 | 41 | 42 | 187 |
PO File | 1 | 43 | 49 | 102 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 22.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 3 | 6.12% |
▷ Public methods | 47 | 95.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.08% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.63MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/screenshot-1.png | 250.62KB | 87.47KB | ▼ 65.10% |
assets/img/close.png | 0.63KB | 0.44KB | ▼ 30.00% |
assets/img/whatsapp.png | 140.33KB | 116.31KB | ▼ 17.12% |
assets/img/marcode.png | 38.33KB | 18.34KB | ▼ 52.16% |
assets/img/screenshot-3.png | 74.80KB | 25.43KB | ▼ 66.00% |