83% convert-to-bangla-date

Code Review | Convert to Bangla Date

WordPress plugin Convert to Bangla Date scored83%from 54 tests.

About plugin

  • Plugin page: convert-to-bangla...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Nov 18, 2013
  • Latest release: Nov 18, 2013
  • Number of updates: 11
  • Update frequency: every 0.1 days
  • Top authors: masumbd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,936 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.01MB] [CPU: ▼11.06ms] Passed 4 tests

This is a short check of server-side resources used by Convert to Bangla Date
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0441.70 ▼0.90
Dashboard /wp-admin3.26 ▼0.0840.48 ▼23.79
Posts /wp-admin/edit.php3.39 ▲0.0453.80 ▲10.64
Add New Post /wp-admin/post-new.php5.92 ▲0.0484.58 ▼23.23
Media Library /wp-admin/upload.php3.26 ▲0.0341.52 ▲3.70

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Convert to Bangla Date
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲4513.31 ▼1.061.72 ▼0.4949.46 ▲8.65
Dashboard /wp-admin2,198 ▲75.88 ▼0.17105.95 ▼1.5542.78 ▲0.23
Posts /wp-admin/edit.php2,081 ▼52.04 ▲0.0838.37 ▲0.7743.24 ▲10.00
Add New Post /wp-admin/post-new.php1,529 ▼623.23 ▼0.03670.80 ▼0.8270.71 ▲13.90
Media Library /wp-admin/upload.php1,378 ▼134.20 ▲0.00101.38 ▲3.4048.29 ▲3.50

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 add_filter() in wp-content/plugins/convert-to-bangla-date/convert-to-bangla-date.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Donate link: Invalid URI ("")
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot-1.jpg), #2 (screenshot-2.jpg)
The official readme.txt might help

convert-to-bangla-date/convert-to-bangla-date.php 92% from 13 tests

Analyzing the main PHP file in "Convert to Bangla Date" version 1.0
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 173 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected62 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1254862

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.02
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.14
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG files were detected