93% wc-iban-checker

Code Review | Add iban field to woocommerce

WordPress plugin Add iban field to woocommerce scored 93% from 54 tests.

About plugin

  • Plugin page: wc-iban-checker
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 5.8.1
  • First release: Oct 28, 2021
  • Latest release: Oct 28, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: arash9579 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 22 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Add iban field to woocommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1326.46 ▲4.40
Dashboard /wp-admin3.07 ▲0.0249.73 ▲5.24
Posts /wp-admin/edit.php3.12 ▲0.0246.60 ▲4.56
Add New Post /wp-admin/post-new.php5.43 ▲0.0091.97 ▼558.86
Media Library /wp-admin/upload.php3.01 ▲0.0132.91 ▼5.65

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Add iban field to woocommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10815.80 ▼0.058.65 ▲0.0650.97 ▲3.94
Dashboard /wp-admin2,970 ▲365.90 ▼0.07134.71 ▼1.24119.14 ▲6.40
Posts /wp-admin/edit.php2,739 ▲32.82 ▲0.0165.09 ▼0.2384.55 ▼2.03
Add New Post /wp-admin/post-new.php1,672 ▲6818.88 ▲0.20370.59 ▲2.01109.59 ▼3.45
Media Library /wp-admin/upload.php1,807 ▲35.00 ▲0.01142.62 ▼3.50120.12 ▼2.88

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wc-iban-checker/add-iban-field-wc.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: sheba, iban

wc-iban-checker/add-iban-field-wc.php 77% from 13 tests

The main file in "Add iban field to woocommerce" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 205 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("wc-iban-checker.php" instead of "add-iban-field-wc.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected92 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2121648
PO File16644

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions4
▷ Named functions4100.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
There are no PNG files in this plugin