10% bangla-radio-abirvab

Code Review | Bangla Radio Abirvab

WordPress plugin Bangla Radio Abirvab scored 10% from 54 tests.

About plugin

  • Plugin page: bangla-radio-abirvab
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3.1
  • WordPress version: 6.3.1
  • First release: Nov 7, 2015
  • Latest release: Nov 7, 2015
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: jabedbd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,049 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/bangla-radio-abirvab/radio-abirvab.php+65
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼52.45ms] Passed 4 tests

An overview of server-side resources used by Bangla Radio Abirvab
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.438.44 ▼28.40
Dashboard /wp-admin2.05 ▼1.255.76 ▼42.25
Posts /wp-admin/edit.php2.05 ▼1.316.39 ▼42.95
Add New Post /wp-admin/post-new.php2.05 ▼3.845.99 ▼95.79
Media Library /wp-admin/upload.php2.05 ▼1.185.89 ▼28.82

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
widget_radioabirvabwidget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Bangla Radio Abirvab
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.73 ▲0.474.77 ▲3.0742.96 ▲1.23
Dashboard /wp-admin2,206 ▲285.88 ▲0.86108.52 ▼2.9541.35 ▼5.19
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0134.39 ▼4.0934.10 ▲0.94
Add New Post /wp-admin/post-new.php1,533 ▼123.22 ▲0.06670.98 ▼4.2358.80 ▲4.08
Media Library /wp-admin/upload.php1,391 ▲64.21 ▲0.0199.48 ▼1.0342.12 ▼1.33

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/bangla-radio-abirvab/radio-abirvab.php+65
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_radioabirvabwidget
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/bangla-radio-abirvab/radio-abirvab.php:18

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

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
Please take inspiration from this readme.txt

bangla-radio-abirvab/radio-abirvab.php 92% from 13 tests

The principal PHP file in "Bangla Radio Abirvab" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bangla-radio-abirvab.php" instead of "radio-abirvab.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
No dangerous file extensions were detected43 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1111243

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin