84% popular-bangla-font

Code Review | Popular Bangla Font

WordPress plugin Popular Bangla Font scored84%from 54 tests.

About plugin

  • Plugin page: popular-bangla-font
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.0.2
  • WordPress version: 6.3.1
  • First release: Oct 7, 2022
  • Latest release: Oct 7, 2022
  • Number of updates: 11
  • Update frequency: N/A
  • Top authors: synthiasoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /408 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Analyzing server-side resources used by Popular Bangla Font
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.41 ▼0.0523.51 ▼16.70
Dashboard /wp-admin3.34 ▼0.0047.13 ▼15.14
Posts /wp-admin/edit.php3.40 ▲0.0351.25 ▼2.25
Add New Post /wp-admin/post-new.php5.92 ▲0.03137.00 ▲39.85
Media Library /wp-admin/upload.php3.27 ▲0.0338.52 ▲3.52

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 168 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Popular Bangla Font
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲7113.25 ▼1.131.72 ▼0.1739.92 ▼5.30
Dashboard /wp-admin2,218 ▲305.85 ▲0.94100.74 ▼3.8538.46 ▼4.01
Posts /wp-admin/edit.php2,101 ▲92.04 ▲0.0341.43 ▲1.6934.30 ▼2.51
Add New Post /wp-admin/post-new.php1,543 ▲1423.06 ▲0.01674.75 ▼29.6855.03 ▲1.65
Media Library /wp-admin/upload.php1,400 ▲124.21 ▼0.11109.93 ▲10.8749.05 ▲2.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/popular-bangla-font/popular-bangla-font.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention: The official readme.txt is a good inspiration

popular-bangla-font/popular-bangla-font.php Passed 13 tests

This is the main PHP file of "Popular Bangla Font" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
55 characters long description:
Set Your Popular Bangla Font to your WordPress Website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin52,405 lines of code in 77 files:
LanguageFilesBlank linesComment linesLines of code
SVG23171245,741
HTML136,81603,225
CSS27245783,187
XML12360132
PHP14311116
JavaScript1044

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
font/images/favicon.png1.22KB0.38KB▼ 69.03%