89% tcbd-bangla-font-fixer

Code Review | Bangla Font Fixer

WordPress plugin Bangla Font Fixer scored89%from 54 tests.

About plugin

  • Plugin page: tcbd-bangla-font-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2.2
  • WordPress version: 6.3.1
  • First release: Jul 13, 2015
  • Latest release: Jul 15, 2015
  • Number of updates: 12
  • Update frequency: every 0.2 days
  • Top authors: tcoder (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /1,866 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by Bangla Font Fixer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.78 ▼0.62
Dashboard /wp-admin3.31 ▲0.0150.58 ▲4.85
Posts /wp-admin/edit.php3.36 ▲0.0044.97 ▼5.43
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.73 ▼10.57
Media Library /wp-admin/upload.php3.23 ▲0.0040.80 ▲5.29

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 9 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

This is an overview of browser requirements for Bangla Font Fixer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲10114.43 ▲0.062.02 ▲0.2845.98 ▲4.97
Dashboard /wp-admin2,209 ▲174.85 ▼0.05101.84 ▼4.8531.66 ▼11.73
Posts /wp-admin/edit.php2,092 ▼02.04 ▲0.0239.33 ▼3.1030.32 ▼7.22
Add New Post /wp-admin/post-new.php1,537 ▼523.38 ▲4.87681.59 ▲89.7966.03 ▲14.02
Media Library /wp-admin/upload.php1,391 ▲64.21 ▲0.0598.48 ▼0.4148.51 ▲3.33

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

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 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please add an image for screenshot #1 (ড্যাশবোর্ড)
Please take inspiration from this readme.txt

tcbd-bangla-font-fixer/plugins.php 92% from 13 tests

"Bangla Font Fixer" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("tcbd-bangla-font-fixer.php" instead of "plugins.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected277 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
SVG100227
PHP1131639
CSS10011

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png104.65KB39.65KB▼ 62.11%