73% rock-pop-radio

Code Review | Rock & Pop Radio

WordPress plugin Rock & Pop Radio scored 73% from 54 tests.

About plugin

  • Plugin page: rock-pop-radio
  • Plugin version: 1.00
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-3.8
  • WordPress version: 6.3.1
  • First release: Feb 28, 2013
  • Latest release: Dec 15, 2013
  • Number of updates: 8
  • Update frequency: every 36.3 days
  • Top authors: rockpopradio (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 2,772 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by Rock & Pop Radio
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.395.70 ▼34.35
Dashboard /wp-admin2.09 ▼1.227.70 ▼43.66
Posts /wp-admin/edit.php2.09 ▼1.276.41 ▼41.91
Add New Post /wp-admin/post-new.php2.09 ▼3.806.85 ▼88.08
Media Library /wp-admin/upload.php2.09 ▼1.145.65 ▼30.80

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Rock & Pop Radio
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.17 ▼1.391.96 ▲0.1844.01 ▼0.22
Dashboard /wp-admin2,206 ▲155.05 ▲0.16107.47 ▼8.7042.79 ▲1.49
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0139.66 ▲1.5434.73 ▼1.30
Add New Post /wp-admin/post-new.php1,533 ▲1423.10 ▼0.06669.49 ▼8.2257.20 ▲5.10
Media Library /wp-admin/upload.php1,388 ▲34.19 ▲0.0199.44 ▼0.4541.14 ▼1.60

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5453
    Function register_sidebar_widget is deprecated since version 2.8.0! Use wp_register_sidebar_widget() instead.
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • 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
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rock-pop-radio/rockpopradio.php:113

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Add an image for screenshot #1 (Rock & Pop Radio)
You can look at the official readme.txt

rock-pop-radio/rockpopradio.php 92% from 13 tests

The primary PHP file in "Rock & Pop Radio" version 1.00 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("rock-pop-radio.php" instead of "rockpopradio.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
Good job! No executable or dangerous file extensions detected46 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1294046

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png6.56KB2.30KB▼ 64.96%