Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.17ms] Passed 4 tests
This is a short check of server-side resources used by Liên Hệ Nhanh
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.83 ▲1.13 |
Dashboard /wp-admin | 3.33 ▲0.03 | 47.29 ▼1.88 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.44 ▲0.44 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 94.23 ▼4.35 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.45 ▲2.14 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Liên Hệ Nhanh: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲92 | 13.61 ▼0.83 | 2.37 ▲0.88 | 38.52 ▼5.79 |
Dashboard /wp-admin | 2,219 ▲27 | 5.91 ▲0.97 | 107.82 ▼2.16 | 41.03 ▼0.43 |
Posts /wp-admin/edit.php | 2,105 ▲13 | 1.97 ▼0.08 | 40.24 ▲4.78 | 36.53 ▲2.85 |
Add New Post /wp-admin/post-new.php | 1,550 ▲36 | 23.34 ▲5.86 | 676.95 ▼7.40 | 60.93 ▲3.74 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.24 ▲0.06 | 96.94 ▼8.25 | 43.11 ▼2.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/lien-he-nhanh/admin.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Visit Plugins > Search for Liên hệ nhanh), #2 (Fill in the information > save), #3 (Advanced settings - Size scale - hide on desktop or mobile), #4 (Congratulations!)
lien-he-nhanh/lien-he.php 92% from 13 tests
"Liên Hệ Nhanh" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("lien-he-nhanh.php" instead of "lien-he.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
Good job! No executable or dangerous file extensions detected261 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 28 | 12 | 135 |
CSS | 1 | 0 | 0 | 126 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.80 |
▷ 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 | 1 | 100.00% |
Methods | 5 | |
▷ Static methods | 1 | 20.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon-grid.png | 1.48KB | 0.17KB | ▼ 88.31% |
img/phone-call.png | 3.71KB | 1.97KB | ▼ 46.82% |
img/icon-zalo-chat-white.png | 9.05KB | 4.59KB | ▼ 49.23% |
img/facebook.png | 2.27KB | 0.85KB | ▼ 62.42% |
img/icon-messenger.png | 38.21KB | 18.81KB | ▼ 50.77% |