73% music-request-manager

Code Review | Music Request Manager

WordPress plugin Music Request Manager scored73%from 54 tests.

About plugin

  • Plugin page: music-request-man...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 4, 2013
  • Latest release: May 11, 2020
  • Number of updates: 7
  • Update frequency: every 353.4 days
  • Top authors: Scriptonite (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

80+ active /4,158 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼9.24ms] Passed 4 tests

A check of server-side resources used by Music Request Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0449.36 ▲11.72
Dashboard /wp-admin3.35 ▲0.0044.03 ▼23.91
Posts /wp-admin/edit.php3.40 ▲0.0449.83 ▼2.82
Add New Post /wp-admin/post-new.php5.93 ▲0.0486.51 ▼11.41
Media Library /wp-admin/upload.php3.27 ▲0.0440.16 ▲1.19
Music Request /wp-admin/options-general.php?page=set-music-options3.2431.89

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
These are issues you should consider
  • You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/music-request-manager/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 2 new files
Database: 1 new table, 8 new options
New tables
wp_current_requests
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
music_request_countdown
music_request_credit
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Music Request Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6113.32 ▼1.065.25 ▲3.4837.51 ▼2.04
Dashboard /wp-admin2,225 ▲184.85 ▼0.20113.00 ▲3.1844.26 ▲5.14
Posts /wp-admin/edit.php2,107 ▲72.01 ▼0.0140.77 ▲7.2337.11 ▼0.02
Add New Post /wp-admin/post-new.php1,548 ▲723.23 ▲0.16597.23 ▼108.5456.16 ▲0.81
Media Library /wp-admin/upload.php1,407 ▲104.20 ▼0.0197.02 ▼4.0443.62 ▼2.56
Music Request /wp-admin/options-general.php?page=set-music-options8402.0627.5629.48

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
  • Zombie tables detected upon uninstall: 1 table
    • wp_current_requests
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-posts
    • music_request_countdown
    • theysaidso_admin_options
    • can_compress_scripts
    • music_request_credit
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

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
Even though everything seems fine, this is not 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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/music-request-manager/requests.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

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
No plugin tags provided

music-request-manager/requests.php 85% from 13 tests

This is the main PHP file of "Music Request Manager" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 226 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("music-request-manager.php" instead of "requests.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected264 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP124112264

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin