84% bukubank-woocommerce

Code Review | = Bukubank Woocommerce - Cek Mutasi Bank dan Pembayaran Secara Otomatis Rekening Indonesia

WordPress plugin = Bukubank Woocommerce - Cek Mutasi Bank dan Pembayaran Secara Otomatis Rekening Indonesia scored84%from 54 tests.

About plugin

  • Plugin page: bukubank-woocommerce
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-5.8
  • WordPress version: 6.3.1
  • First release: Feb 11, 2020
  • Latest release: Aug 8, 2021
  • Number of updates: 21
  • Update frequency: every 26.0 days
  • Top authors: tenkuken (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,064 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.62MB] [CPU: ▼17.36ms] Passed 4 tests

A check of server-side resources used by = Bukubank Woocommerce - Cek Mutasi Bank dan Pembayaran Secara Otomatis Rekening Indonesia
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0847.27 ▲11.69
Dashboard /wp-admin3.38 ▲0.0349.30 ▼9.43
Posts /wp-admin/edit.php3.43 ▲0.0744.03 ▼2.09
Add New Post /wp-admin/post-new.php3.23 ▼2.6635.38 ▼62.72
Media Library /wp-admin/upload.php3.30 ▲0.0737.19 ▲4.82

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for = Bukubank Woocommerce - Cek Mutasi Bank dan Pembayaran Secara Otomatis Rekening Indonesia
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.45 ▲0.101.94 ▲0.2543.91 ▲1.88
Dashboard /wp-admin2,198 ▲185.62 ▼0.0582.92 ▼2.5638.43 ▼5.23
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0135.67 ▼5.6730.77 ▼2.67
Add New Post /wp-admin/post-new.php1,526 ▼1023.17 ▲0.13662.89 ▲4.7357.43 ▲6.61
Media Library /wp-admin/upload.php1,403 ▲64.22 ▲0.0194.86 ▼7.5543.02 ▼2.95

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bukubank-woocommerce/inc/konfirmasi.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bukubank-woocommerce/inc/orderstatus.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bukubank-woocommerce/inc/orderstatus.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/bukubank-woocommerce/inc/gateway.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% 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
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 18 tag instead of maximum 10
You can take inspiration from this readme.txt

bukubank-woocommerce/bukubank-woocommerce.php 92% from 13 tests

"= Bukubank Woocommerce - Cek Mutasi Bank dan Pembayaran Secara Otomatis Rekening Indonesia" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.7" instead of "3.1.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected847 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP5215119847

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity37.00
▷ Minimum class complexity37.00
▷ Maximum class complexity37.00
Average method complexity4.27
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods981.82%
▷ Protected methods00.00%
▷ Private methods218.18%
Functions19
▷ Named functions19100.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
PNG images were not found in this plugin