83% bangladeshi-taka-in-woocommerce

Code Review | Bangladeshi Taka in WooCommerce

WordPress plugin Bangladeshi Taka in WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: bangladeshi-taka-...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 30, 2013
  • Latest release: May 30, 2013
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: asadiqbal (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,628 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Bangladeshi Taka in WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.17 ▼1.12
Dashboard /wp-admin3.31 ▼0.0444.85 ▼20.72
Posts /wp-admin/edit.php3.36 ▲0.0046.03 ▼6.08
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.97 ▼10.58
Media Library /wp-admin/upload.php3.23 ▲0.0035.55 ▼0.64

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Bangladeshi Taka in WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.551.74 ▲0.1343.02 ▲3.12
Dashboard /wp-admin2,198 ▲215.62 ▼0.0393.74 ▲5.1442.14 ▼0.74
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0139.44 ▲2.0238.15 ▲2.14
Add New Post /wp-admin/post-new.php1,526 ▼023.18 ▲0.30601.66 ▲5.0749.75 ▲0.99
Media Library /wp-admin/upload.php1,403 ▲34.18 ▼0.0599.39 ▼1.0645.14 ▲1.07

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

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× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bangladeshi-taka-in-woocommerce/bdt_in_woocommerce.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found


Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === bangladeshi-taka-in-woocommerce === )
  • Screenshots: Please a description for screenshot #2 in bangladeshi-taka-in-woocommerce/assets to your readme.txt
  • Requires at least: Invalid plugin version format
The official readme.txt is a good inspiration

bangladeshi-taka-in-woocommerce/bdt_in_woocommerce.php 92% from 13 tests

The main PHP file in "Bangladeshi Taka in WooCommerce" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("bangladeshi-taka-in-woocommerce.php" instead of "bdt_in_woocommerce.php")

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
Everything looks great! No dangerous files found in this plugin15 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ 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
PNG images were not found in this plugin