84% ty-gia-ngoai-te

Code Review | Tỷ Giá Ngoại Tệ

WordPress plugin Tỷ Giá Ngoại Tệ scored 84% from 54 tests.

About plugin

  • Plugin page: ty-gia-ngoai-te
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.1
  • WordPress version: 5.8.1
  • First release: Dec 31, 2014
  • Latest release: Dec 31, 2014
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: wpvn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 835 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼141.03ms] Passed 4 tests

This is a short check of server-side resources used by Tỷ Giá Ngoại Tệ
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1440.19 ▲18.58
Dashboard /wp-admin3.08 ▲0.0351.62 ▲4.74
Posts /wp-admin/edit.php3.14 ▲0.0354.49 ▲9.33
Add New Post /wp-admin/post-new.php5.44 ▲0.0188.74 ▼574.21
Media Library /wp-admin/upload.php3.03 ▲0.0328.24 ▼3.99

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options
widget_wpvn_ty_gia_ngoai_te_widget

Browser metrics Passed 4 tests

Tỷ Giá Ngoại Tệ: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,689 ▲9315.97 ▲0.289.69 ▼0.5250.78 ▲0.84
Dashboard /wp-admin2,986 ▲526.10 ▲0.14157.09 ▲12.83134.99 ▲24.16
Posts /wp-admin/edit.php2,739 ▲32.72 ▲0.0178.29 ▲11.3696.94 ▲3.81
Add New Post /wp-admin/post-new.php1,500 ▼018.57 ▼0.20355.41 ▼15.70105.57 ▼0.71
Media Library /wp-admin/upload.php1,807 ▼35.04 ▼0.02146.74 ▼0.48119.18 ▼12.16

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 1 option in the database
    • widget_wpvn_ty_gia_ngoai_te_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ty-gia-ngoai-te/ty-gia-ngoai-te.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === ty-gia-ngoai-te === )
The official readme.txt might help

ty-gia-ngoai-te/ty-gia-ngoai-te.php Passed 13 tests

The main file in "Tỷ Giá Ngoại Tệ" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
42 characters long description:
Widget tỷ giá ngoại tệ by wpvn.info

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
Success! There were no dangerous files found in this plugin91 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP19991

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity4.25
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
There were not PNG files found in your plugin