74% background-music-menu

Code Review | Background Music Menu

WordPress plugin Background Music Menu scored74%from 54 tests.

About plugin

  • Plugin page: background-music-...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0.3
  • WordPress version: 6.3.1
  • First release: May 26, 2017
  • Latest release: Feb 12, 2019
  • Number of updates: 5
  • Update frequency: every 125.6 days
  • Top authors: glanit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

800+ active /16,980 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼1.25ms] Passed 4 tests

Server-side resources used by Background Music Menu
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0742.56 ▼3.19
Dashboard /wp-admin3.38 ▲0.0852.82 ▼2.64
Posts /wp-admin/edit.php3.50 ▲0.1454.95 ▲0.13
Add New Post /wp-admin/post-new.php5.96 ▲0.08103.31 ▲0.71
Media Library /wp-admin/upload.php3.31 ▲0.0839.77 ▲3.62
Background Music Menu /wp-admin/options-general.php?page=background-music-menu3.2534.26

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Background Music Menu
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲5014.35 ▲0.071.79 ▲0.1746.97 ▲9.59
Dashboard /wp-admin2,196 ▲225.65 ▼0.0295.30 ▲4.2141.99 ▼5.13
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0233.47 ▼3.3433.55 ▲0.22
Add New Post /wp-admin/post-new.php1,529 ▲123.13 ▲0.21686.14 ▲72.6152.60 ▲5.63
Media Library /wp-admin/upload.php1,404 ▲44.20 ▼0.0398.30 ▼10.6442.03 ▼1.41
Background Music Menu /wp-admin/options-general.php?page=background-music-menu8691.9923.9927.80

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/background-music-menu/uninstall.php+6
    Undefined variable: menus
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=background-music-menu
    • > Warning in wp-admin/includes/template.php+1824
    call_user_func() expects parameter 1 to be a valid callback, function '' not found or invalid function name

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: background music, music website, sound, navigation, audio...

background-music-menu/background-music-menu.php Passed 13 tests

The main file in "Background Music Menu" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
94 characters long description:
Background Music or sound for websites plugin wordpress. Created to give a mood to your users.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected491 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP211297304
CSS101116
JavaScript26071

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity32.00
▷ Minimum class complexity32.00
▷ Maximum class complexity32.00
Average method complexity2.41
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There are no PNG files in this plugin