84% bangla-web-fonts

Code Review | Bangla Web Fonts

WordPress plugin Bangla Web Fonts scored84%from 54 tests.

About plugin

  • Plugin page: bangla-web-fonts
  • Plugin version: 1.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.2
  • WordPress version: 6.3.1
  • First release: Jan 22, 2018
  • Latest release: Apr 6, 2023
  • Number of updates: 20
  • Update frequency: every 101.5 days
  • Top authors: imran2w (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

3,000+ active /30,726 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
Installer ran successfully

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

This is a short check of server-side resources used by Bangla Web Fonts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0135.61 ▼7.56
Dashboard /wp-admin3.31 ▲0.0144.82 ▼5.75
Posts /wp-admin/edit.php3.36 ▲0.0048.31 ▼0.03
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.78 ▼20.53
Media Library /wp-admin/upload.php3.23 ▲0.0031.51 ▼3.27

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bangla Web Fonts
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲7013.16 ▼1.271.60 ▼0.2619.91 ▼27.04
Dashboard /wp-admin2,206 ▲184.87 ▼0.06103.50 ▼7.0440.04 ▼5.85
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0241.60 ▲3.9633.62 ▼0.87
Add New Post /wp-admin/post-new.php1,534 ▼823.36 ▲4.84643.70 ▼6.7557.79 ▲4.73
Media Library /wp-admin/upload.php1,385 ▼04.24 ▲0.1598.07 ▼1.9044.93 ▼0.23

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
Even though no errors were found, 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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/bangla-web-fonts/bangla-web-fonts.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: solaimanlipi, bengali, bangla font, bangla, bangla web font

bangla-web-fonts/bangla-web-fonts.php Passed 13 tests

"Bangla Web Fonts" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
25 characters long description:
Enables bangla web fonts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected2,794 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,768
PHP171216
CSS10010

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued 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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin