84% baokimvn-payment-gateway-for-woocommerce

Code Review | BaoKim.vn cho Woocommerce

WordPress plugin BaoKim.vn cho Woocommerce scored84%from 54 tests.

About plugin

  • Plugin page: baokimvn-payment-...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.6.1
  • WordPress version: 6.3.1
  • First release: Oct 22, 2013
  • Latest release: Feb 21, 2014
  • Number of updates: 5
  • Update frequency: every 24.4 days
  • Top authors: justdoit123 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /4,863 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.53ms] Passed 4 tests

A check of server-side resources used by BaoKim.vn cho Woocommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.49 ▼3.21
Dashboard /wp-admin3.33 ▲0.0349.23 ▼3.59
Posts /wp-admin/edit.php3.38 ▲0.0348.16 ▼1.47
Add New Post /wp-admin/post-new.php5.91 ▲0.0384.69 ▼1.54
Media Library /wp-admin/upload.php3.26 ▲0.0335.10 ▼5.76

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for BaoKim.vn cho Woocommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.17 ▼0.181.91 ▲0.1245.70 ▲6.82
Dashboard /wp-admin2,189 ▲95.54 ▲0.0186.71 ▼9.1538.62 ▼7.46
Posts /wp-admin/edit.php2,097 ▼32.01 ▼0.0835.15 ▼3.7434.94 ▼5.47
Add New Post /wp-admin/post-new.php1,537 ▲1118.39 ▼4.52655.24 ▲29.9271.45 ▲23.28
Media Library /wp-admin/upload.php1,397 ▼04.22 ▲0.08101.13 ▼22.6344.37 ▼9.82

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, 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 short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/baokimvn-payment-gateway-for-woocommerce/baokimvn.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: woocommerce, baokim, vietnamese

baokimvn-payment-gateway-for-woocommerce/baokimvn.php 92% from 13 tests

The main PHP file in "BaoKim.vn cho Woocommerce" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("baokimvn-payment-gateway-for-woocommerce.php" instead of "baokimvn.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin125 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12027125

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin