84% tinh-vay-ngan-hang-tra-gop

Code Review | Tinh Lai Vay Ngan Hang Tra Gop

WordPress plugin Tinh Lai Vay Ngan Hang Tra Gop scored84%from 54 tests.

About plugin

  • Plugin page: tinh-vay-ngan-han...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.0-6.0.1
  • WordPress version: 6.3.1
  • First release: May 15, 2020
  • Latest release: Jul 31, 2022
  • Number of updates: 12
  • Update frequency: every 67.3 days
  • Top authors: trongtri35 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /1,408 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.69ms] Passed 4 tests

An overview of server-side resources used by Tinh Lai Vay Ngan Hang Tra Gop
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.56 ▼3.49
Dashboard /wp-admin3.31 ▲0.0055.81 ▲0.16
Posts /wp-admin/edit.php3.36 ▲0.0051.65 ▲1.57
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.31 ▼17.01
Media Library /wp-admin/upload.php3.23 ▲0.0038.34 ▲2.97

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Tinh Lai Vay Ngan Hang Tra Gop
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲13713.78 ▼0.657.30 ▲5.2740.12 ▼1.52
Dashboard /wp-admin2,209 ▲215.86 ▼0.04112.13 ▲8.0542.59 ▼1.47
Posts /wp-admin/edit.php2,089 ▼32.01 ▲0.0236.18 ▼4.4534.49 ▼1.64
Add New Post /wp-admin/post-new.php1,538 ▲1023.15 ▲4.95676.98 ▲52.7758.05 ▲4.80
Media Library /wp-admin/upload.php1,391 ▲34.19 ▼0.0594.74 ▼3.8741.39 ▼0.53

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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 errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tinh-vay-ngan-hang-tra-gop/plugin.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
No plugin tags provided

tinh-vay-ngan-hang-tra-gop/plugin.php 92% from 13 tests

The main file in "Tinh Lai Vay Ngan Hang Tra Gop" v. 1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("tinh-vay-ngan-hang-tra-gop.php" instead of "plugin.php")

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
Everything looks great! No dangerous files found in this plugin105 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1611103
CSS1001
JavaScript1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.10MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png3.97KB3.68KB▼ 7.19%
assets/screenshot-1.png39.10KB18.70KB▼ 52.17%
assets/screenshot-2.png54.56KB24.56KB▼ 54.98%
assets/icon-256x256.png1.17KB1.01KB▼ 14.31%