Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.17MB] [CPU: ▼0.29ms] Passed 4 tests
Server-side resources used by Add Chat App Button
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 36.28 ▼1.44 |
Dashboard /wp-admin | 3.50 ▲0.20 | 47.52 ▼0.17 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 50.11 ▲1.40 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 89.20 ▼0.94 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 35.47 ▲2.00 |
Add WhatsApp Button /wp-admin/options-general.php?page=awb-options | 3.38 | 30.69 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Add Chat App Button
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲159 | 13.58 ▼0.66 | 11.57 ▲9.82 | 37.84 ▼2.31 |
Dashboard /wp-admin | 2,212 ▲35 | 5.61 ▼0.05 | 90.86 ▼6.65 | 39.73 ▼5.20 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 2.04 ▲0.03 | 41.64 ▼0.77 | 36.27 ▼4.05 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 23.39 ▲0.41 | 600.07 ▲3.04 | 61.17 ▲3.99 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 4.26 ▲0.08 | 97.20 ▼4.45 | 39.25 ▼6.36 |
Add WhatsApp Button /wp-admin/options-general.php?page=awb-options | 1,828 | 2.34 | 56.33 | 34.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 71 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=awb-options
- > Notice in wp-content/plugins/add-whatsapp-button/admin/settings.php+406
Trying to access array offset on value of type bool
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
No output text or server-side errors detected on direct access of PHP files
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)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Screenshot #5 (An example of a fixed button anchored in the bottom of the page) image required
add-whatsapp-button/add-whatsapp-button.php Passed 13 tests
The main PHP script in "Add Chat App Button" version 2.1.2 is automatically included on every request by WordPress
73 characters long description:
Adds a Floating button to your website which opens a WhatsApp chat window
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,587 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 192 | 316 | 1,027 |
CSS | 3 | 74 | 66 | 321 |
PO File | 1 | 54 | 65 | 183 |
JavaScript | 5 | 8 | 17 | 28 |
SVG | 6 | 0 | 17 | 28 |
PHP code Passed 2 tests
An short overview of 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.39 |
Average class complexity | 17.43 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 4.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 9 | 28.12% |
▷ Public methods | 28 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 12.50% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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
3 PNG files occupy 0.24MB with 0.12MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/portrait_black.png | 109.84KB | 28.67KB | ▼ 73.90% |
img/wa-icon-original.png | 4.26KB | 4.43KB | 0.00% |
img/landscape_black.png | 128.09KB | 29.58KB | ▼ 76.91% |