90% use-bangla-fonts

Code Review | Use Bangla Fonts

WordPress plugin Use Bangla Fonts scored90%from 54 tests.

About plugin

  • Plugin page: use-bangla-fonts
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.4.1
  • WordPress version: 6.3.1
  • First release: Jun 6, 2020
  • Latest release: Jun 6, 2020
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: osmansorkar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,114 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

A check of server-side resources used by Use Bangla Fonts
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.31 ▼7.76
Dashboard /wp-admin3.31 ▲0.0151.49 ▼3.20
Posts /wp-admin/edit.php3.36 ▲0.0043.11 ▼8.58
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.07 ▼4.73
Media Library /wp-admin/upload.php3.23 ▲0.0039.09 ▼3.42

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 68 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Use Bangla Fonts
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲514.27 ▼0.081.82 ▼0.4841.27 ▼4.98
Dashboard /wp-admin2,195 ▲185.51 ▼0.1688.83 ▼8.7541.59 ▲0.38
Posts /wp-admin/edit.php2,100 ▼31.98 ▼0.0235.09 ▼3.1533.46 ▼3.14
Add New Post /wp-admin/post-new.php1,550 ▲2418.49 ▼4.97659.08 ▼31.7262.72 ▼7.86
Media Library /wp-admin/upload.php1,403 ▼04.09 ▼0.12102.60 ▼1.1642.97 ▲1.24

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
4 plugin tags: gutenberg, bangla font gutenberg, gutenberg tools, bangla font

use-bangla-fonts/use-bangla fonts.php 92% from 13 tests

Analyzing the main PHP file in "Use Bangla Fonts" version 1.0.0
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("use-bangla-fonts.php" instead of "use-bangla fonts.php")

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
No dangerous file extensions were detected35,800 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
SVG1217035,295
CSS1512949457
PHP295746
JavaScript21102

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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
No PNG images were found in this plugin