10% radio-widget-popular

Code Review | Radio Widget Popular

WordPress plugin Radio Widget Popular scored10%from 54 tests.

About plugin

  • Plugin page: radio-widget-popular
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.6
  • WordPress version: 6.3.1
  • First release: Jun 11, 2016
  • Latest release: Sep 15, 2016
  • Number of updates: 13
  • Update frequency: every 8.3 days
  • Top authors: uglion (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,512 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/radio-widget-popular/Radio-Widget-Popular.php+18
    Methods with the same name as their class will not be constructors in a future version of PHP; Radio_Widget_Popular has a deprecated constructor

Server metrics [RAM: ▼1.81MB] [CPU: ▼56.21ms] Passed 4 tests

An overview of server-side resources used by Radio Widget Popular
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.17 ▼1.294.35 ▼53.42
Dashboard /wp-admin2.19 ▼1.116.38 ▼39.48
Posts /wp-admin/edit.php2.19 ▼1.166.30 ▼40.69
Add New Post /wp-admin/post-new.php2.19 ▼3.696.53 ▼91.25
Media Library /wp-admin/upload.php2.19 ▼1.035.11 ▼30.27

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_radio-widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Radio Widget Popular
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.19 ▼1.584.60 ▲2.5840.16 ▼8.01
Dashboard /wp-admin2,203 ▲155.79 ▲0.91107.26 ▼1.7240.03 ▲0.28
Posts /wp-admin/edit.php2,089 ▲32.06 ▲0.0340.76 ▲4.2638.02 ▲3.13
Add New Post /wp-admin/post-new.php1,534 ▲123.29 ▼0.05679.53 ▲12.3157.54 ▲2.44
Media Library /wp-admin/upload.php1,382 ▼34.14 ▼0.0598.65 ▼5.8542.83 ▼5.27

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/radio-widget-popular/Radio-Widget-Popular.php+18
    Methods with the same name as their class will not be constructors in a future version of PHP; Radio_Widget_Popular has a deprecated constructor
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_radio-widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
Please 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/radio-widget-popular/Radio-Widget-Popular.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 ([Вид полной версии плеера](https://radiola.audio/radio/widgets/screenshot1.jpg)), #2 ([Вид компактной версии плеера](https://radiola.audio/radio/widgets/screenshot2.jpg))
The official readme.txt is a good inspiration

radio-widget-popular/Radio-Widget-Popular.php 92% from 13 tests

"Radio Widget Popular" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("radio-widget-popular.php" instead of "Radio-Widget-Popular.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
Success! There were no dangerous files found in this plugin215 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14811215

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity6.25
▷ Minimum method complexity1.00
▷ Maximum method complexity22.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
PNG images were not found in this plugin