77% thanh-lien-he-moblie-minhducbiz

Code Review | Thanh liên hệ mobile

WordPress plugin Thanh liên hệ mobile scored77%from 54 tests.

About plugin

  • Plugin page: thanh-lien-he-mob...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.5.3
  • WordPress version: 6.3.1
  • First release: Nov 23, 2020
  • Latest release: Nov 23, 2020
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: sulkul96 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,260 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.93 ▼4.93
Dashboard /wp-admin3.33 ▲0.0350.75 ▼9.37
Posts /wp-admin/edit.php3.38 ▲0.0354.09 ▼5.56
Add New Post /wp-admin/post-new.php5.91 ▲0.0397.46 ▼9.85
Media Library /wp-admin/upload.php3.25 ▲0.0341.08 ▼0.22
Liên hệ mobile /wp-admin/options-general.php?page=linhmobile3.2031.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲9114.22 ▼0.131.60 ▼0.0441.77 ▼0.77
Dashboard /wp-admin2,199 ▲255.68 ▲0.0392.83 ▼9.1244.18 ▲1.49
Posts /wp-admin/edit.php2,107 ▲72.02 ▼0.0639.72 ▲3.4037.54 ▼3.03
Add New Post /wp-admin/post-new.php1,539 ▲1117.82 ▼5.16618.56 ▼53.2575.91 ▲10.53
Media Library /wp-admin/upload.php1,401 ▲74.28 ▲0.12103.74 ▼2.4945.34 ▲0.82
Liên hệ mobile /wp-admin/options-general.php?page=linhmobile8062.0223.9547.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

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
The official readme.txt might help

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:
LanguageFilesBlank linesComment linesLines of code
PHP2112122
CSS11019

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 code0.09
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
img/icon-phone2.png2.20KB1.66KB▼ 24.62%
img/icon-zalo2.png3.80KB2.95KB▼ 22.34%
img/icon-sms2.png2.36KB1.85KB▼ 21.54%
img/icon-mesenger2.png2.20KB1.64KB▼ 25.48%