84% number-to-bangla

Code Review | Number to Bangla

WordPress plugin Number to Bangla scored84%from 54 tests.

About plugin

  • Plugin page: number-to-bangla
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.6.2
  • WordPress version: 6.3.1
  • First release: Feb 25, 2021
  • Latest release: Apr 2, 2023
  • Number of updates: 12
  • Update frequency: every 64.2 days
  • Top authors: rkb007 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /796 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.67ms] Passed 4 tests

Server-side resources used by Number to Bangla
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0435.43 ▼6.15
Dashboard /wp-admin3.34 ▲0.0443.68 ▼4.92
Posts /wp-admin/edit.php3.39 ▲0.0449.04 ▲3.04
Add New Post /wp-admin/post-new.php5.92 ▲0.0485.58 ▼6.36
Media Library /wp-admin/upload.php3.27 ▲0.0433.90 ▼1.24

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Number to Bangla
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.13 ▼1.431.85 ▲0.0740.16 ▼8.77
Dashboard /wp-admin2,203 ▲185.01 ▲0.07102.28 ▼12.9937.60 ▼3.37
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0139.32 ▲3.3934.63 ▲0.28
Add New Post /wp-admin/post-new.php1,514 ▼2417.89 ▼5.38706.30 ▲73.6262.59 ▲5.61
Media Library /wp-admin/upload.php1,388 ▼04.26 ▼0.0595.01 ▼8.2141.39 ▼3.02

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/number-to-bangla/number-to-bangla.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed: You can look at the official readme.txt

number-to-bangla/number-to-bangla.php 92% from 13 tests

The entry point to "Number to Bangla" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 168 characters long)

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 plugin188 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP26410188

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity4.12
▷ Minimum method complexity2.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods562.50%
▷ Public methods562.50%
▷ Protected methods337.50%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin