10% radio-islam

Code Review | Radio Islam

WordPress plugin Radio Islam scored10%from 54 tests.

About plugin

  • Plugin page: radio-islam
  • Plugin version: 2.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.5
  • WordPress version: 6.3.1
  • First release: Jun 5, 2015
  • Latest release: Mar 4, 2018
  • Number of updates: 27
  • Update frequency: every 37.2 days
  • Top authors: tompradana (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,955 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/radio-islam/includes/widget.php+210
    Function create_function() is deprecated

Server metrics [RAM: ▼1.89MB] [CPU: ▼57.49ms] Passed 4 tests

Server-side resources used by Radio Islam
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.375.02 ▼42.04
Dashboard /wp-admin2.11 ▼1.197.21 ▼42.53
Posts /wp-admin/edit.php2.11 ▼1.246.62 ▼43.43
Add New Post /wp-admin/post-new.php2.11 ▼3.776.06 ▼101.97
Media Library /wp-admin/upload.php2.11 ▼1.125.54 ▼30.96

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_rii
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Radio Islam: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.32 ▼0.994.17 ▲1.8142.88 ▲1.34
Dashboard /wp-admin2,209 ▲215.86 ▲0.96104.09 ▼4.7139.88 ▼5.16
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0741.26 ▼0.4636.22 ▼1.37
Add New Post /wp-admin/post-new.php1,534 ▼223.08 ▼0.25678.86 ▲62.9560.12 ▲10.80
Media Library /wp-admin/upload.php1,382 ▼64.27 ▲0.0195.58 ▼2.1542.37 ▼2.51

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/radio-islam/includes/widget.php+210
    Function create_function() is deprecated
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_rii
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/radio-islam/includes/widget.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/radio-islam/views/player.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: Please add an image for screenshot #3 (Pengaturan widget)
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === radio-islam === )
The official readme.txt might help

radio-islam/radio-islam.php 85% from 13 tests

This is the main PHP file of "Radio Islam" version 2.1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: Keep the plugin description shorter than 140 characters (currently 212 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,221 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
CSS305775
PHP44770222
SVG100200
JavaScript50924

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity6.50
▷ Minimum class complexity5.00
▷ Maximum class complexity8.00
Average method complexity1.92
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods975.00%
▷ Protected methods00.00%
▷ Private methods325.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
3 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/radio-quran.png25.33KB9.03KB▼ 64.36%
assets/images/rii.png54.24KB20.24KB▼ 62.69%
assets/images/radio-at.png6.00KB2.36KB▼ 60.61%