Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.60ms] Passed 4 tests
A check of server-side resources used by TINET Chat Buttons
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.38 ▼6.52 |
Dashboard /wp-admin | 3.35 ▲0.04 | 44.47 ▼3.60 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 46.55 ▼2.20 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 90.31 ▼2.09 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 42.32 ▲8.81 |
TINET.VN Chat Buttons /wp-admin/options-general.php?page=tinet_chat_buttons | 3.30 | 31.65 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TINET Chat Buttons
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲141 | 13.24 ▼1.14 | 1.80 ▼0.27 | 54.62 ▲9.47 |
Dashboard /wp-admin | 2,210 ▲22 | 4.86 ▼0.24 | 95.74 ▼19.99 | 41.01 ▼2.99 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.02 | 40.43 ▲4.83 | 35.17 ▲0.20 |
Add New Post /wp-admin/post-new.php | 1,545 ▲31 | 18.37 ▲0.71 | 594.36 ▼101.06 | 54.76 ▼8.67 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.18 ▼0.02 | 94.83 ▼7.55 | 42.65 ▼1.42 |
TINET.VN Chat Buttons /wp-admin/options-general.php?page=tinet_chat_buttons | 1,458 | 1.85 | 29.24 | 37.40 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/tinet-vn-chat-buttons/tinet-chat-buttons.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/tinet-vn-chat-buttons/tinet-chat-buttons/tinet-chat-buttons.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/tinet-vn-chat-buttons/tinet-chat-buttons/options-page.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is stored in the /assets directory.), #2 (This is the second screen shot)
tinet-vn-chat-buttons/tinet-chat-buttons.php 85% from 13 tests
The main file in "TINET Chat Buttons" v. 1.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("tinet-vn-chat-buttons.php" instead of "tinet-chat-buttons.php")
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
Good job! No executable or dangerous file extensions detected837 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 48 | 44 | 548 |
CSS | 1 | 48 | 1 | 284 |
JavaScript | 2 | 0 | 1 | 5 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
6 PNG files occupy 0.14MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
tinet-chat-buttons/img/messenger.png | 6.47KB | 3.31KB | ▼ 48.75% |
tinet-chat-buttons/img/instagram.png | 6.81KB | 3.31KB | ▼ 51.49% |
screenshot-1.png | 91.51KB | 35.90KB | ▼ 60.77% |
tinet-chat-buttons/img/call.png | 2.62KB | 1.69KB | ▼ 35.58% |
tinet-chat-buttons/img/zalo.png | 36.74KB | 16.11KB | ▼ 56.15% |