10% semerkand-radyo-dinle

Code Review | Semerkand Radyo Dinle

WordPress plugin Semerkand Radyo Dinle scored 10% from 54 tests.

About plugin

  • Plugin page: semerkand-radyo-d...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-3.5
  • WordPress version: 5.8.1
  • First release: Jul 19, 2013
  • Latest release: Jul 19, 2013
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: hikomen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 689 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/semerkand-radyo-dinle/semerkandradyo.php+20
    Methods with the same name as their class will not be constructors in a future version of PHP; semerkand_radyo_widget has a deprecated constructor

Server metrics [RAM: ▼1.84MB] [CPU: ▼199.87ms] Passed 4 tests

A check of server-side resources used by Semerkand Radyo Dinle
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /1.79 ▼1.044.95 ▼29.69
Dashboard /wp-admin1.81 ▼1.256.67 ▼41.75
Posts /wp-admin/edit.php1.81 ▼1.305.89 ▼42.86
Add New Post /wp-admin/post-new.php1.81 ▼3.627.33 ▼685.11
Media Library /wp-admin/upload.php1.81 ▼1.195.90 ▼29.77

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options
widget_semerkand_radyo_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Semerkand Radyo Dinle
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10815.78 ▲0.348.31 ▼0.4152.83 ▲3.37
Dashboard /wp-admin2,970 ▲335.95 ▼0.00144.08 ▼18.99127.69 ▲5.10
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0170.26 ▲8.2391.16 ▼18.47
Add New Post /wp-admin/post-new.php1,604 ▼7918.80 ▲0.03371.67 ▼44.32108.84 ▼11.37
Media Library /wp-admin/upload.php1,810 ▲35.03 ▲0.02153.31 ▲1.33130.84 ▲4.12

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/semerkand-radyo-dinle/semerkandradyo.php+20
    Methods with the same name as their class will not be constructors in a future version of PHP; semerkand_radyo_widget has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • widget_semerkand_radyo_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/semerkand-radyo-dinle/semerkandradyo.php:12

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (Semerkand Radyo Ayarları Penceresi), #2 (Site üzerindeki Görünümü)
You can take inspiration from this readme.txt

semerkand-radyo-dinle/semerkandradyo.php 92% from 13 tests

The primary PHP file in "Semerkand Radyo Dinle" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("semerkand-radyo-dinle.php" instead of "semerkandradyo.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected80 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1191380

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
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 Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png15.85KB8.07KB▼ 49.08%
screenshot-2.png17.46KB6.94KB▼ 60.25%
semerkandlogo.png6.88KB4.34KB▼ 36.89%