Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.43ms] Passed 4 tests
This is a short check of server-side resources used by Simple Chat Button
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 39.96 ▼4.22 |
Dashboard /wp-admin | 3.39 ▲0.04 | 47.63 ▼7.63 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 46.93 ▼2.98 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 90.02 ▼2.89 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 34.17 ▲0.07 |
Simple Chat Button /wp-admin/options-general.php?page=simple-chat-button | 3.33 | 31.19 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 15 new options
New WordPress options |
---|
scb_button_status |
widget_recent-comments |
scb_desktop_bottom_margin |
widget_recent-posts |
scb_button_position |
scb_button_target |
scb_button_text |
can_compress_scripts |
scb_mobile_bottom_margin |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Chat Button
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 13.68 ▼0.97 | 4.97 ▲2.95 | 45.48 ▲2.41 |
Dashboard /wp-admin | 2,213 ▲25 | 4.84 ▼1.02 | 104.05 ▲4.56 | 37.56 ▼2.60 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.04 | 35.52 ▼6.75 | 33.12 ▼2.52 |
Add New Post /wp-admin/post-new.php | 6,244 ▲4,725 | 21.61 ▼1.75 | 888.82 ▲238.86 | 53.81 ▼1.02 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.25 ▼0.01 | 94.88 ▼2.31 | 41.92 ▼0.67 |
Simple Chat Button /wp-admin/options-general.php?page=simple-chat-button | 819 | 2.03 | 24.51 | 30.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: whatsapp, whatsapp business, chat, simple whatsapp chat button, chat button...
simple-chat-button/simple-chat-button.php Passed 13 tests
The principal PHP file in "Simple Chat Button" v. 1.7.0 is loaded by WordPress automatically on each request
66 characters long description:
Adds a beautiful WhatsApp Sticky Button on the WordPress frontend.
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
There were no executable files found in this plugin546 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 34 | 58 | 439 |
PO File | 1 | 41 | 48 | 100 |
XML | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin