89% indonesian-banks-for-woocommerce-free-version

Code Review | Indonesian Banks for WooCommerce (Free Version)

WordPress plugin Indonesian Banks for WooCommerce (Free Version) scored89%from 54 tests.

About plugin

  • Plugin page: indonesian-banks-...
  • Plugin version: 0.1.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.0.2
  • WordPress version: 6.3.1
  • First release: May 12, 2018
  • Latest release: Jan 1, 2019
  • Number of updates: 18
  • Update frequency: every 13.1 days
  • Top authors: walterpinem (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /5,395 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.91ms] Passed 4 tests

A check of server-side resources used by Indonesian Banks for WooCommerce (Free Version)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.41 ▼9.46
Dashboard /wp-admin3.32 ▲0.0152.31 ▼10.75
Posts /wp-admin/edit.php3.37 ▲0.0148.90 ▼5.08
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.06 ▼6.34
Media Library /wp-admin/upload.php3.24 ▲0.0140.81 ▲5.04

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Indonesian Banks for WooCommerce (Free Version)
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.34 ▼0.021.67 ▼0.4341.91 ▼4.70
Dashboard /wp-admin2,195 ▲155.54 ▼0.1086.67 ▼7.3240.77 ▼3.02
Posts /wp-admin/edit.php2,100 ▲31.99 ▲0.0136.37 ▼1.0233.52 ▼1.95
Add New Post /wp-admin/post-new.php1,526 ▼023.06 ▲0.08678.30 ▼1.1255.42 ▲4.22
Media Library /wp-admin/upload.php1,400 ▼04.24 ▲0.0699.60 ▼0.2142.86 ▼1.44

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 did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

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
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: payment, woocommerce

indonesian-banks-for-woocommerce-free-version/bank-transfer.php 69% from 13 tests

"Indonesian Banks for WooCommerce (Free Version)" version 0.1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Main file name: Name the main plugin file the same as the plugin slug ("indonesian-banks-for-woocommerce-free-version.php" instead of "bank-transfer.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: Please keep the plugin description shorter than 140 characters (currently 221 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin581 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP6140125581

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity3.57
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods1885.71%
▷ Protected methods00.00%
▷ Private methods314.29%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
banks/assets/logo-bri.png1.86KB1.67KB▼ 10.43%
banks/assets/logo-bni.png2.02KB1.75KB▼ 13.31%
banks/assets/logo-mandiri.png2.07KB1.83KB▼ 11.69%