84% bangla-fonts-collection

Code Review | Bangla Fonts Collection

WordPress plugin Bangla Fonts Collection scored 84% from 54 tests.

About plugin

  • Plugin page: bangla-fonts-coll...
  • Plugin version: 2.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.8
  • WordPress version: 6.3.1
  • First release: Nov 15, 2018
  • Latest release: Nov 9, 2019
  • Number of updates: 10
  • Update frequency: every 35.9 days
  • Top authors: robert-biswas (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

700+ active / 9,200 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Bangla Fonts Collection
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.61 ▼2.09
Dashboard /wp-admin3.35 ▲0.0553.78 ▲7.67
Posts /wp-admin/edit.php3.40 ▲0.0451.80 ▲7.72
Add New Post /wp-admin/post-new.php5.95 ▲0.0690.59 ▲3.37
Media Library /wp-admin/upload.php3.27 ▲0.0435.57 ▲1.89

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 64 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Bangla Fonts Collection
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲9113.22 ▼1.344.69 ▲2.3843.82 ▼8.30
Dashboard /wp-admin2,233 ▲424.92 ▲0.07108.66 ▲7.7841.71 ▼5.13
Posts /wp-admin/edit.php2,116 ▲242.05 ▲0.0441.76 ▲3.4936.01 ▲4.50
Add New Post /wp-admin/post-new.php1,533 ▲1617.52 ▲0.00717.16 ▲55.3454.35 ▲3.31
Media Library /wp-admin/upload.php1,415 ▲244.24 ▲0.1093.76 ▼8.1144.48 ▼3.70

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bangla-fonts-collection/includes/settings.php:6

User-side errors Passed 1 test

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


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Donate link: Please fix this invalid URI: ""
You can look at the official readme.txt

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

Analyzing the main PHP file in "Bangla Fonts Collection" version 2.2
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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 plugin37,730 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PO File1181854

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ 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