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
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.43ms] Passed 4 tests
Server-side resources used by Thanh liên hệ mobile
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.93 ▼4.93 |
Dashboard /wp-admin | 3.33 ▲0.03 | 50.75 ▼9.37 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 54.09 ▼5.56 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 97.46 ▼9.85 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 41.08 ▼0.22 |
Liên hệ mobile /wp-admin/options-general.php?page=linhmobile | 3.20 | 31.47 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Thanh liên hệ mobile
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲91 | 14.22 ▼0.13 | 1.60 ▼0.04 | 41.77 ▼0.77 |
Dashboard /wp-admin | 2,199 ▲25 | 5.68 ▲0.03 | 92.83 ▼9.12 | 44.18 ▲1.49 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.02 ▼0.06 | 39.72 ▲3.40 | 37.54 ▼3.03 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 17.82 ▼5.16 | 618.56 ▼53.25 | 75.91 ▲10.53 |
Media Library /wp-admin/upload.php | 1,401 ▲7 | 4.28 ▲0.12 | 103.74 ▼2.49 | 45.34 ▲0.82 |
Liên hệ mobile /wp-admin/options-general.php?page=linhmobile | 806 | 2.02 | 23.95 | 47.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=linhmobile
- > Notice in wp-content/plugins/thanh-lien-he-moblie-minhducbiz/main-lien-he.php+93
Undefined index: placeholder
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=linhmobile
- > Notice in wp-content/plugins/thanh-lien-he-moblie-minhducbiz/main-lien-he.php+97
Undefined index: desc
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
Almost there! Just 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 get_option() in wp-content/plugins/thanh-lien-he-moblie-minhducbiz/lien-he.php:4
- > PHP Fatal error
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 86% 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
These attributes need your attention:
- Contributors: The plugin contributors field is missing
thanh-lien-he-moblie-minhducbiz/main-lien-he.php 77% from 13 tests
The main PHP script in "Thanh liên hệ mobile" version 1.0.0 is automatically included on every request by WordPress
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Domain Path: The domain path folder was not found ("/languages")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("thanh-lien-he-moblie-minhducbiz.php" instead of "main-lien-he.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin141 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 1 | 12 | 122 |
CSS | 1 | 1 | 0 | 19 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon-phone2.png | 2.20KB | 1.66KB | ▼ 24.62% |
img/icon-zalo2.png | 3.80KB | 2.95KB | ▼ 22.34% |
img/icon-sms2.png | 2.36KB | 1.85KB | ▼ 21.54% |
img/icon-mesenger2.png | 2.20KB | 1.64KB | ▼ 25.48% |