10% aam-online-bangla-radio

Code Review | AAM Online Bangla Radio

WordPress plugin AAM Online Bangla Radio scored10%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: 6.3.1
  • 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,771 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to 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: ▼1.93MB] [CPU: ▼53.60ms] Passed 4 tests

Server-side resources used by AAM Online Bangla Radio
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.405.15 ▼34.66
Dashboard /wp-admin2.08 ▼1.2210.02 ▼43.27
Posts /wp-admin/edit.php2.08 ▼1.286.73 ▼47.62
Add New Post /wp-admin/post-new.php2.08 ▼3.816.28 ▼88.85
Media Library /wp-admin/upload.php2.08 ▼1.155.19 ▼28.81

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_aamonlineradiowidget
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

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 /2,825 ▲7913.69 ▼0.891.99 ▲0.3146.58 ▲3.76
Dashboard /wp-admin2,203 ▲155.82 ▲0.9595.47 ▼8.5338.91 ▼0.49
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.0139.77 ▼0.8036.60 ▼4.88
Add New Post /wp-admin/post-new.php1,514 ▼1417.70 ▼0.72662.20 ▲60.2856.47 ▼1.81
Media Library /wp-admin/upload.php1,388 ▲64.26 ▲0.0196.08 ▲0.2240.51 ▼2.56

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
These items require your attention
  • This plugin cannot be uninstalled
    • > 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
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_aamonlineradiowidget
    • widget_theysaidso_widget

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 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
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/aam-online-bangla-radio/aam-online-radio-main.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: wordpress bangla radio plugin, widget, online bangla radio plugin, online bangla radio, sidebar...

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

The main PHP file in "AAM Online Bangla Radio" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main 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
Success! There were no dangerous files found in this plugin1 line of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
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
There were not PNG files found in your plugin