84% retro-winamp-block

Code Review | Retro Winamp Block

WordPress plugin Retro Winamp Block scored84%from 54 tests.

About plugin

  • Plugin page: retro-winamp-block
  • Plugin version: 1.3.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.3
  • WordPress version: 6.3.1
  • First release: Nov 18, 2021
  • Latest release: Oct 19, 2023
  • Number of updates: 10
  • Update frequency: every 70.1 days
  • Top authors: 10up (80%)10upbot (30%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,549 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.22ms] Passed 4 tests

Analyzing server-side resources used by Retro Winamp Block
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.32 ▼1.17
Dashboard /wp-admin3.32 ▲0.0244.12 ▼4.49
Posts /wp-admin/edit.php3.37 ▲0.0242.46 ▼2.59
Add New Post /wp-admin/post-new.php5.90 ▲0.0280.64 ▼20.61
Media Library /wp-admin/upload.php3.24 ▲0.0237.34 ▲1.22

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Retro Winamp Block
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲8915.98 ▲1.45125.68 ▲124.1248.31 ▲8.40
Dashboard /wp-admin2,195 ▲145.49 ▼0.2481.78 ▼21.5137.07 ▼3.81
Posts /wp-admin/edit.php2,097 ▼01.99 ▲0.0333.96 ▼4.7334.48 ▲2.22
Add New Post /wp-admin/post-new.php6,217 ▲4,68321.60 ▼1.521,068.01 ▲452.0555.47 ▼10.30
Media Library /wp-admin/upload.php1,400 ▼04.22 ▲0.04109.51 ▲1.7148.02 ▲1.62

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function RetroWinampBlock\\add_action() in wp-content/plugins/retro-winamp-block/retro-webamp-block.php:74

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
9 plugin tags: playlist, block, equalizer, music, player...

retro-winamp-block/retro-webamp-block.php 85% from 13 tests

The principal PHP file in "Retro Winamp Block" v. 1.3.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("retro-winamp-block.php" instead of "retro-webamp-block.php")

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
Good job! No executable or dangerous file extensions detected149 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP3134489
JSON10055
JavaScript3003
CSS2002

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
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
Namespaces1
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%
Functions8
▷ Named functions225.00%
▷ Anonymous functions675.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin