94% cb-en-number-to-bn-number-translator

Code Review | CB En Number to BN Number Translator

WordPress plugin CB En Number to BN Number Translator scored 94% from 54 tests.

About plugin

  • Plugin page: cb-en-number-to-b...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.0
  • WordPress version: 5.8.1
  • First release: May 27, 2014
  • Latest release: Dec 12, 2018
  • Number of updates: 14
  • Update frequency: every 118.6 days
  • Top authors: hmbashar (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

80+ active / 1,622 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼145.37ms] Passed 4 tests

Server-side resources used by CB En Number to BN Number Translator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1336.99 ▲13.94
Dashboard /wp-admin3.01 ▼0.0436.23 ▼8.01
Posts /wp-admin/edit.php3.13 ▲0.0244.45 ▲0.35
Add New Post /wp-admin/post-new.php5.43 ▼0.0085.71 ▼575.61
Media Library /wp-admin/upload.php3.02 ▲0.0233.74 ▲1.80

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for CB En Number to BN Number Translator
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,659 ▲6315.79 ▲0.2310.82 ▲0.2158.03 ▲6.35
Dashboard /wp-admin2,971 ▲345.95 ▲0.03149.22 ▼0.59124.28 ▲3.06
Posts /wp-admin/edit.php2,727 ▼122.68 ▼0.0262.08 ▼5.6490.22 ▼7.67
Add New Post /wp-admin/post-new.php1,667 ▼1618.91 ▲0.16384.27 ▼33.49111.52 ▼10.34
Media Library /wp-admin/upload.php1,797 ▼135.02 ▼0.03166.44 ▲14.01129.74 ▲3.33

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cb-en-number-to-bn-number-translator/functions.php:103

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: all english number translate to bangla number, bangla date translate, english to bangla, bangla date and time, bangla time...

cb-en-number-to-bn-number-translator/functions.php 92% from 13 tests

"CB En Number to BN Number Translator" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("cb-en-number-to-bn-number-translator.php" instead of "functions.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin48 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1253448

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.03
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
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
There were not PNG files found in your plugin