Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.91ms] Passed 4 tests
This is a short check of server-side resources used by Contact Zalo Report SW
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.96 ▼1.28 |
Dashboard /wp-admin | 3.32 ▲0.01 | 44.06 ▼4.92 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 43.30 ▼2.57 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 84.04 ▼10.88 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.68 ▲0.72 |
Chat Zalo Report SW /wp-admin/options-general.php?page=phone-call-zalo | 3.24 | 32.04 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_chatzalosw |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Contact Zalo Report SW: 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,975 ▲218 | 13.80 ▼0.56 | 6.38 ▲4.56 | 45.09 ▲4.23 |
Dashboard /wp-admin | 2,234 ▲46 | 5.08 ▼0.82 | 99.12 ▼4.10 | 38.79 ▼5.91 |
Posts /wp-admin/edit.php | 2,116 ▲24 | 2.33 ▲0.30 | 36.86 ▲2.44 | 34.66 ▲3.82 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 17.61 ▲0.10 | 670.18 ▼14.57 | 37.37 ▼22.98 |
Media Library /wp-admin/upload.php | 1,413 ▲22 | 4.41 ▲0.17 | 96.36 ▼5.08 | 40.61 ▼4.55 |
Chat Zalo Report SW /wp-admin/options-general.php?page=phone-call-zalo | 979 | 2.58 | 39.29 | 42.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The SRP test was a success
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 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: call zalo, button zalo, chat zalo, report
button-chat-zalo-report-sw/zalo-chat-sw.php 92% from 13 tests
The main PHP file in "Contact Zalo Report SW" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("button-chat-zalo-report-sw.php" instead of "zalo-chat-sw.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected531 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 49 | 32 | 295 |
CSS | 2 | 1 | 0 | 218 |
JavaScript | 2 | 4 | 2 | 18 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/zalo-icon.png | 1.80KB | 1.83KB | 0.00% |
assets/phone-ring.png | 0.36KB | 0.37KB | 0.00% |