84% bangla-converter

Code Review | Bangla Converter (Bijoy To Unicode, Unicode To Bijoy)

WordPress plugin Bangla Converter (Bijoy To Unicode, Unicode To Bijoy) scored84%from 54 tests.

About plugin

  • Plugin page: bangla-converter
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.0.2
  • WordPress version: 6.3.1
  • First release: Oct 15, 2022
  • Latest release: Oct 16, 2022
  • Number of updates: 7
  • Update frequency: every 0.4 days
  • Top authors: rashedulhaquerumi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /735 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.15MB] [CPU: ▼5.16ms] Passed 4 tests

A check of server-side resources used by Bangla Converter (Bijoy To Unicode, Unicode To Bijoy)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1535.44 ▼9.87
Dashboard /wp-admin3.46 ▲0.1550.39 ▼2.03
Posts /wp-admin/edit.php3.58 ▲0.2246.03 ▼4.63
Add New Post /wp-admin/post-new.php6.04 ▲0.1588.73 ▼4.10
Media Library /wp-admin/upload.php3.39 ▲0.1535.16 ▲1.21

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Bangla Converter (Bijoy To Unicode, Unicode To Bijoy)
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲4214.73 ▲0.461.60 ▼0.1542.23 ▼2.87
Dashboard /wp-admin2,210 ▲335.63 ▲0.1282.94 ▼15.7540.89 ▼3.94
Posts /wp-admin/edit.php2,115 ▲181.97 ▲0.0135.47 ▼1.0731.88 ▼4.15
Add New Post /wp-admin/post-new.php1,538 ▲1222.96 ▼0.45664.41 ▲23.1852.10 ▼7.19
Media Library /wp-admin/upload.php1,412 ▲94.15 ▼0.0997.01 ▼6.0141.66 ▼5.79

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/bangla-converter/templates/converter.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bangla-converter/bangla-converter.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed: The official readme.txt is a good inspiration

bangla-converter/bangla-converter.php Passed 13 tests

Analyzing the main PHP file in "Bangla Converter (Bijoy To Unicode, Unicode To Bijoy)" version 1.1.0
137 characters long description:
This converter will help you to convert your bangla bijoy Ascii text to convert Unicode text or Unicode text to convert bijoy Ascii text.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin808 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP514345759
CSS18049

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.76
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions1986.36%
▷ Anonymous functions313.64%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected