89% toko-ibest-bank-indonesia-for-woocommerce

Code Review | RAPay - Bank dan e-Money Indonesia

WordPress plugin RAPay - Bank dan e-Money Indonesia scored89%from 54 tests.

About plugin

  • Plugin page: toko-ibest-bank-i...
  • Plugin version: 3.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.0.2
  • WordPress version: 6.3.1
  • First release: Jul 9, 2021
  • Latest release: Oct 17, 2022
  • Number of updates: 15
  • Update frequency: every 31.1 days
  • Top authors: reynaldiarya (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

500+ active /5,164 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Analyzing server-side resources used by RAPay - Bank dan e-Money Indonesia
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0334.91 ▼6.73
Dashboard /wp-admin3.34 ▲0.0345.97 ▼6.13
Posts /wp-admin/edit.php3.39 ▲0.0349.78 ▲6.59
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.60 ▼15.81
Media Library /wp-admin/upload.php3.26 ▲0.0336.59 ▲6.30

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 58 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for RAPay - Bank dan e-Money Indonesia
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▼0.081.79 ▲0.0241.71 ▼2.76
Dashboard /wp-admin2,203 ▲155.77 ▼0.04107.18 ▼12.9440.14 ▼2.57
Posts /wp-admin/edit.php2,092 ▲31.99 ▲0.0041.75 ▼0.8436.88 ▲0.16
Add New Post /wp-admin/post-new.php1,533 ▲323.10 ▲4.93682.00 ▲49.7159.38 ▲4.16
Media Library /wp-admin/upload.php1,391 ▲64.20 ▲0.0093.67 ▼11.5941.06 ▼1.68

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
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention: The official readme.txt is a good inspiration

toko-ibest-bank-indonesia-for-woocommerce/beipgw.php 85% from 13 tests

The primary PHP file in "RAPay - Bank dan e-Money Indonesia" version 3.0.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 157 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("toko-ibest-bank-indonesia-for-woocommerce.php" instead of "beipgw.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected4,780 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP291,2757124,780

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity20.70
▷ Minimum class complexity13.00
▷ Maximum class complexity21.00
Average method complexity3.83
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes27
▷ Abstract classes00.00%
▷ Concrete classes27100.00%
▷ Final classes00.00%
Methods188
▷ Static methods00.00%
▷ Public methods16185.64%
▷ Protected methods00.00%
▷ Private methods2714.36%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
27 PNG files occupy 0.09MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
bank/assets/logo-bca.png2.86KB2.07KB▼ 27.53%
bank/assets/logo-allo-bank.png4.05KB2.75KB▼ 32.06%
e-money/assets/logo-shopeepay.png1.79KB1.84KB0.00%
e-money/assets/logo-dana.png2.08KB1.50KB▼ 28.03%
bank/assets/logo-jenius.png3.85KB2.76KB▼ 28.38%