10% damarfm-player

Code Review | DamarFm Radyo HTML5 Player

WordPress plugin DamarFm Radyo HTML5 Player scored 10% from 54 tests.

About plugin

  • Plugin page: damarfm-player
  • Plugin version: 4.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.4
  • WordPress version: 6.3.1
  • First release: May 23, 2011
  • Latest release: May 21, 2020
  • Number of updates: 115
  • Update frequency: every 28.6 days
  • Top authors: DamarFm (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 6,871 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/damarfm-player/damarfm.php+21
    Methods with the same name as their class will not be constructors in a future version of PHP; damarfm_radyo_widget has a deprecated constructor

Server metrics [RAM: ▼1.92MB] [CPU: ▼53.85ms] Passed 4 tests

This is a short check of server-side resources used by DamarFm Radyo HTML5 Player
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.394.16 ▼38.80
Dashboard /wp-admin2.08 ▼1.226.96 ▼45.89
Posts /wp-admin/edit.php2.09 ▼1.277.53 ▼39.07
Add New Post /wp-admin/post-new.php2.08 ▼3.806.16 ▼91.62
Media Library /wp-admin/upload.php2.09 ▼1.147.13 ▼25.90

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_damarfm_radyo_widget
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for DamarFm Radyo HTML5 Player
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.27 ▼1.101.67 ▼0.3137.91 ▼4.26
Dashboard /wp-admin2,206 ▲185.84 ▲0.91105.72 ▼9.0438.17 ▼8.24
Posts /wp-admin/edit.php2,086 ▼32.02 ▲0.0439.35 ▲3.6834.00 ▼0.42
Add New Post /wp-admin/post-new.php1,514 ▼2117.77 ▼5.45629.37 ▼55.5251.16 ▼10.30
Media Library /wp-admin/upload.php1,391 ▲64.18 ▼0.0695.06 ▼8.0241.32 ▼3.31

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/damarfm-player/damarfm.php+21
    Methods with the same name as their class will not be constructors in a future version of PHP; damarfm_radyo_widget has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_damarfm_radyo_widget
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/damarfm-player/damarfm.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (23 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Add images for these screenshots: #1 (Player Görünümü), #2 (Player Görünümü), #3 (Player Görünümü), #4 (Player Görünümü)
You can take inspiration from this readme.txt

damarfm-player/damarfm.php 92% from 13 tests

The main PHP file in "DamarFm Radyo HTML5 Player" ver. 4.5 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("damarfm-player.php" instead of "damarfm.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin79 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1231379

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.03
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ 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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.53MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png105.84KB43.41KB▼ 58.99%
screenshot-2.png161.98KB61.36KB▼ 62.12%
screenshot-1.png153.57KB61.80KB▼ 59.76%
damarfmlogo.png25.06KB7.69KB▼ 69.30%
screenshot-3.png92.85KB32.99KB▼ 64.47%