10% fnffm-bangla-radio

Code Review | FnF.FM Bangla Radio

WordPress plugin FnF.FM Bangla Radio scored10%from 54 tests.

About plugin

  • Plugin page: fnffm-bangla-radio
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.6
  • WordPress version: 6.3.1
  • First release: Aug 25, 2016
  • Latest release: Aug 25, 2016
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: cartoonistarif (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,565 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/fnffm-bangla-radio/fnf.fmbangla.php+23
    Methods with the same name as their class will not be constructors in a future version of PHP; banglafnfradiowidget has a deprecated constructor

Server metrics [RAM: ▼1.92MB] [CPU: ▼53.34ms] Passed 4 tests

A check of server-side resources used by FnF.FM Bangla Radio
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.404.18 ▼37.01
Dashboard /wp-admin2.09 ▼1.228.00 ▼42.99
Posts /wp-admin/edit.php2.09 ▼1.277.24 ▼45.81
Add New Post /wp-admin/post-new.php2.09 ▼3.806.35 ▼85.90
Media Library /wp-admin/upload.php2.09 ▼1.156.71 ▼38.66

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_banglafnfradiowidget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for FnF.FM Bangla Radio
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.22 ▼1.214.88 ▲3.1042.58 ▼4.20
Dashboard /wp-admin2,206 ▲245.88 ▲1.04118.64 ▲14.5346.60 ▲2.52
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0440.92 ▼0.9636.26 ▲0.57
Add New Post /wp-admin/post-new.php1,528 ▲11723.56 ▲5.68664.74 ▼20.2163.31 ▲14.05
Media Library /wp-admin/upload.php1,385 ▼34.18 ▲0.03110.96 ▼11.2948.17 ▼6.92

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/fnffm-bangla-radio/fnf.fmbangla.php+23
    Methods with the same name as their class will not be constructors in a future version of PHP; banglafnfradiowidget has a deprecated constructor
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_banglafnfradiowidget
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/fnffm-bangla-radio/fnf.fmbangla.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (Adding Shortcode in Post/Page), #2 (Have a look at the player in Post/Page), #3 (In Widget), #4 (Have a look at the player in Sidebar)
  • Tags: Please reduce the number of tags, currently 23 tag instead of maximum 10
You can take inspiration from this readme.txt

fnffm-bangla-radio/fnf.fmbangla.php 92% from 13 tests

The primary PHP file in "FnF.FM Bangla Radio" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("fnffm-bangla-radio.php" instead of "fnf.fmbangla.php")

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
Everything looks great! No dangerous files found in this plugin43 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1111243

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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
4 PNG files occupy 0.27MB with 0.13MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png20.87KB9.45KB▼ 54.69%
screenshot-4.png8.39KB5.21KB▼ 37.94%
screenshot-2.png188.91KB91.31KB▼ 51.66%
screenshot-3.png57.42KB27.42KB▼ 52.25%