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.01MB] [CPU: ▼3.69ms] Passed 4 tests
An overview of server-side resources used by Fast Chat Button
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.86 ▲0.83 |
Dashboard /wp-admin | 3.32 ▲0.01 | 44.59 ▼6.38 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.74 ▼1.43 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 89.85 ▼7.78 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.14 ▲1.74 |
Fast Whatsapp Button /wp-admin/options-general.php?page=yydev-chat-btn | 3.31 | 36.37 |
Server storage [IO: ▲0.07MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 8 new options
New WordPress options |
---|
yydev_chat_btn |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
yydev_chat_btn_timestamp |
Browser metrics Passed 4 tests
An overview of browser requirements for Fast Chat Button
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲98 | 14.48 ▲0.15 | 2.21 ▲0.62 | 42.60 ▲4.08 |
Dashboard /wp-admin | 2,210 ▲19 | 4.84 ▼1.06 | 108.48 ▲2.64 | 38.99 ▼5.74 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▲0.04 | 41.72 ▲4.22 | 33.96 ▼2.77 |
Add New Post /wp-admin/post-new.php | 1,536 ▼0 | 23.12 ▼0.00 | 649.39 ▼2.34 | 58.03 ▼1.28 |
Media Library /wp-admin/upload.php | 1,395 ▲13 | 4.22 ▼0.06 | 99.98 ▲1.20 | 42.37 ▲0.09 |
Fast Whatsapp Button /wp-admin/options-general.php?page=yydev-chat-btn | 1,389 | 3.11 | 48.58 | 78.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 8 options in the database
- yydev_chat_btn
- widget_theysaidso_widget
- yydev_chat_btn_timestamp
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% 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
Attributes that need to be fixed:
- Requires at least: Version not formatted correctly
fast-chat-button/index.php 92% from 13 tests
The main PHP file in "Fast Chat Button" ver. 2.1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("fast-chat-button.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin784 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 337 | 191 | 784 |
PHP code Passed 2 tests
Analyzing 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.27 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 14 | 82.35% |
▷ Anonymous functions | 3 | 17.65% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/chat-button3.png | 2.31KB | 2.37KB | 0.00% |
images/chat-button1.png | 2.06KB | 2.10KB | 0.00% |
images/chat-button2.png | 1.94KB | 1.98KB | 0.00% |
images/icon.png | 2.62KB | 2.65KB | 0.00% |