79% player-barra-webradio

Code Review | Player Barra WebRadio

WordPress plugin Player Barra WebRadio scored 79% from 54 tests.

About plugin

  • Plugin page: player-barra-webr...
  • Plugin version: 0.9.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.8
  • WordPress version: 6.3.1
  • First release: Nov 7, 2018
  • Latest release: Nov 7, 2018
  • Number of updates: 6
  • Update frequency: every 1.2 days
  • Top authors: matheuscarvalhobr (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active / 3,159 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.18ms] Passed 4 tests

Server-side resources used by Player Barra WebRadio
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0028.74 ▼11.97
Dashboard /wp-admin3.32 ▲0.0244.87 ▼2.60
Posts /wp-admin/edit.php3.37 ▲0.0146.60 ▼0.98
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.17 ▼5.16
Media Library /wp-admin/upload.php3.24 ▲0.0137.32 ▲0.75

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Player Barra WebRadio
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲10113.47 ▼0.901.95 ▲0.1339.20 ▼9.62
Dashboard /wp-admin2,210 ▲275.86 ▲0.89103.16 ▼11.6542.38 ▲3.20
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0138.06 ▲0.8631.24 ▼3.93
Add New Post /wp-admin/post-new.php1,545 ▲1118.03 ▼5.00621.33 ▼0.4554.95 ▼27.24
Media Library /wp-admin/upload.php1,392 ▲14.09 ▼0.1696.20 ▼7.7842.79 ▼1.63
Player Barra Opções /wp-admin/options-general.php?page=Player Barra8512.0325.7028.60

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% 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 0% 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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/player-barra-webradio/player-barra-webradio.php
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/player-barra-webradio/includes/templates/pagina-opcoes.php:2
    • > PHP Notice
      Undefined variable: title_tag in wp-content/plugins/player-barra-webradio/includes/templates/pagina_iframe_conteudo.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/player-barra-webradio/includes/menu_opcoes.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/player-barra-webradio/includes/templates/pagina_iframe_conteudo.php:21
    • > PHP Notice
      Undefined variable: meta_tags in wp-content/plugins/player-barra-webradio/includes/templates/pagina_iframe_conteudo.php on line 17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: webradio, player webradio, radio, barra player, player html...

player-barra-webradio/player-barra-webradio.php Passed 13 tests

Analyzing the main PHP file in "Player Barra WebRadio" version 0.9.0
44 characters long description:
Player barra para webradio utilizando Iframe

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin131 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP52932131

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin