88% wp-music

Code Review | WordPress Music

WordPress plugin WordPress Music scored 88% from 54 tests.

About plugin

  • Plugin page: wp-music
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.2
  • WordPress version: 5.9.2
  • First release: Oct 4, 2013
  • Latest release: May 25, 2015
  • Number of updates: 14
  • Update frequency: every 42.7 days
  • Top authors: righTune (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

600+ active / 52,778 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

A check of server-side resources used by WordPress Music
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.3550.30 ▲25.10
Dashboard /wp-admin3.43 ▲0.0233.10 ▼1.21
Posts /wp-admin/edit.php3.66 ▲0.0237.34 ▼0.45
Add New Post /wp-admin/post-new.php6.90 ▼0.0893.12 ▼1,187.71
Media Library /wp-admin/upload.php3.31 ▲0.0223.82 ▼7.47
WordPress Music /wp-admin/options-general.php?page=rightune3.2622.44

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

WordPress Music: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,768 ▲1415.87 ▼0.186.04 ▲0.162.61 ▼0.02
Dashboard /wp-admin2,897 ▲436.09 ▼0.02119.50 ▼18.21162.81 ▲3.27
Posts /wp-admin/edit.php2,696 ▲23.24 ▼0.0063.09 ▼1.40139.97 ▼0.47
Add New Post /wp-admin/post-new.php1,664 ▲316.24 ▲0.62395.61 ▼69.04156.73 ▼4.33
Media Library /wp-admin/upload.php1,700 ▲25.50 ▼0.05142.97 ▲0.80188.07 ▼0.33
WordPress Music /wp-admin/options-general.php?page=rightune1,0502.3855.36111.94

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=rightune
    • > Notice in wp-content/plugins/wp-music/rightune.php+60
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just 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/wp-music/rightune.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: music player, rightune, background music, ecommerce, content...

wp-music/rightune.php 85% from 13 tests

The principal PHP file in "WordPress Music" v. 1.0.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 183 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-music.php" instead of "rightune.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin51 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2141651

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.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 files were detected