84% radio-islam-indonesia

Code Review | Radio Islam Indonesia

WordPress plugin Radio Islam Indonesia scored84%from 54 tests.

About plugin

  • Plugin page: radio-islam-indon...
  • Plugin version: 3.15.2015
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.1
  • WordPress version: 6.3.1
  • First release: Dec 24, 2014
  • Latest release: Mar 15, 2015
  • Number of updates: 8
  • Update frequency: every 10.3 days
  • Top authors: darto (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,722 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.87ms] Passed 4 tests

An overview of server-side resources used by Radio Islam Indonesia
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.41 ▼0.0528.62 ▼18.29
Dashboard /wp-admin3.33 ▲0.0349.33 ▼6.61
Posts /wp-admin/edit.php3.39 ▲0.0349.06 ▼2.37
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.98 ▼4.22
Media Library /wp-admin/upload.php3.26 ▲0.0336.83 ▼0.37

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_radio_islam_indonesia_widget
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Radio Islam Indonesia
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲15113.91 ▼0.4412.52 ▲10.5843.10 ▲0.07
Dashboard /wp-admin2,195 ▲185.61 ▲0.0393.95 ▼12.0045.60 ▲1.48
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0536.13 ▼0.8835.39 ▲1.90
Add New Post /wp-admin/post-new.php1,526 ▼023.58 ▲0.48659.83 ▼25.1659.36 ▲13.40
Media Library /wp-admin/upload.php1,394 ▼64.23 ▼0.02102.88 ▲0.2441.76 ▼3.66

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_radio_islam_indonesia_widget

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 | 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 have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/radio-islam-indonesia/radio-islam-indonesia.php:26

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
10 plugin tags: quran, radio, shahabat, sunnah, agama...

radio-islam-indonesia/radio-islam-indonesia.php 92% from 13 tests

"Radio Islam Indonesia" version 3.15.2015's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 269 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
There were no executable files found in this plugin776 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS112340525
PHP11934248
JavaScript2023

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity2.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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
css/jplayer.pink.flag.video.play.png17.28KB4.28KB▼ 75.21%