10% aam-online-bangla-radio

Code Review | AAM Online Bangla Radio

WordPress plugin AAM Online Bangla Radio scored 10% from 54 tests.

About plugin

  • Plugin page: aam-online-bangla...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8.1
  • WordPress version: 5.9.2
  • First release: Mar 28, 2014
  • Latest release: Mar 28, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: aamahin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,549 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/aam-online-bangla-radio/aam-online-radio-main.php+23
    Methods with the same name as their class will not be constructors in a future version of PHP; aamonlineradiowidget has a deprecated constructor

Server metrics [RAM: ▼2.49MB] [CPU: ▼351.38ms] Passed 4 tests

This is a short check of server-side resources used by AAM Online Bangla Radio
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /1.88 ▼1.645.32 ▼45.81
Dashboard /wp-admin1.90 ▼1.514.31 ▼29.14
Posts /wp-admin/edit.php1.90 ▼1.759.14 ▼28.03
Add New Post /wp-admin/post-new.php1.90 ▼5.084.65 ▼1,302.52
Media Library /wp-admin/upload.php1.90 ▼1.404.21 ▼21.34

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options
widget_aamonlineradiowidget

Browser metrics Passed 4 tests

This is an overview of browser requirements for AAM Online Bangla Radio
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,785 ▲5915.67 ▲0.016.12 ▼0.242.46 ▲0.28
Dashboard /wp-admin2,888 ▲276.23 ▼0.06116.32 ▼18.29155.18 ▼11.92
Posts /wp-admin/edit.php2,691 ▼33.24 ▲0.0064.27 ▼0.62147.10 ▼0.00
Add New Post /wp-admin/post-new.php1,711 ▲4521.34 ▲0.35456.84 ▲31.22177.41 ▼4.79
Media Library /wp-admin/upload.php1,692 ▼95.53 ▲0.09146.39 ▲12.07186.29 ▼43.58

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
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/aam-online-bangla-radio/aam-online-radio-main.php+23
    Methods with the same name as their class will not be constructors in a future version of PHP; aamonlineradiowidget has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 1 option
    • widget_aamonlineradiowidget

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/aam-online-bangla-radio/aam-online-radio-main.php:18

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: wordpress bangla radio plugin, online bangla radio plugin, widget, bangla radio wordpress plugin, online bangla radio...

aam-online-bangla-radio/aam-online-radio-main.php 92% from 13 tests

The entry point to "AAM Online Bangla Radio" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("aam-online-bangla-radio.php" instead of "aam-online-radio-main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1 line of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
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
There were not PNG files found in your plugin