10% royal-seal-ent-radio-wrse

Code Review | WRSE Radio

WordPress plugin WRSE Radio scored 10% from 54 tests.

About plugin

  • Plugin page: royal-seal-ent-ra...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.8
  • WordPress version: 5.8.1
  • First release: Jul 4, 2017
  • Latest release: Jul 5, 2017
  • Number of updates: 2
  • Update frequency: every 18.5 days
  • Top authors: hightechteam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,100 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/royal-seal-ent-radio-wrse/wrse.php+24
    Methods with the same name as their class will not be constructors in a future version of PHP; wrseradiowidget has a deprecated constructor

Server metrics [RAM: ▼1.86MB] [CPU: ▼193.28ms] Passed 4 tests

This is a short check of server-side resources used by WRSE Radio
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /1.77 ▼0.946.03 ▼15.96
Dashboard /wp-admin1.79 ▼1.265.20 ▼43.09
Posts /wp-admin/edit.php1.79 ▼1.316.07 ▼40.79
Add New Post /wp-admin/post-new.php1.79 ▼3.644.99 ▼661.51
Media Library /wp-admin/upload.php1.79 ▼1.216.58 ▼27.74

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options
widget_wrseradiowidget

Browser metrics Passed 4 tests

This is an overview of browser requirements for WRSE Radio
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.83 ▲0.2213.05 ▲1.4544.85 ▼3.38
Dashboard /wp-admin2,970 ▲395.94 ▼0.05147.89 ▼2.50101.50 ▼11.64
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0075.65 ▲3.8683.67 ▲2.01
Add New Post /wp-admin/post-new.php1,672 ▲5718.83 ▼2.62414.02 ▲122.41101.88 ▼4.95
Media Library /wp-admin/upload.php1,810 ▼05.03 ▲0.03159.37 ▼12.10110.71 ▲8.14

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
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/royal-seal-ent-radio-wrse/wrse.php+24
    Methods with the same name as their class will not be constructors in a future version of PHP; wrseradiowidget has a deprecated constructor
  • The uninstall procedure has failed, leaving 1 option in the database
    • widget_wrseradiowidget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/royal-seal-ent-radio-wrse/wrse.php:19

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 is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (20 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Please add images for these screenshots: #1 (Adding Shortcode in Post/Page), #2 (Have a look at the player in Post/Page), #3 (In Widget), #4 (Have a look at the player in Sidebar)
Please take inspiration from this readme.txt

royal-seal-ent-radio-wrse/wrse.php 92% from 13 tests

The main file in "WRSE Radio" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("royal-seal-ent-radio-wrse.php" instead of "wrse.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
Everything looks great! No dangerous files found in this plugin45 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1111245

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.11
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin