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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 42.56 ▼3.19 |
Dashboard /wp-admin | 3.38 ▲0.08 | 52.82 ▼2.64 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 54.95 ▲0.13 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 103.31 ▲0.71 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 39.77 ▲3.62 |
Background Music Menu /wp-admin/options-general.php?page=background-music-menu | 3.25 | 34.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲50 | 14.35 ▲0.07 | 1.79 ▲0.17 | 46.97 ▲9.59 |
Dashboard /wp-admin | 2,196 ▲22 | 5.65 ▼0.02 | 95.30 ▲4.21 | 41.99 ▼5.13 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.02 | 33.47 ▼3.34 | 33.55 ▲0.22 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.13 ▲0.21 | 686.14 ▲72.61 | 52.60 ▲5.63 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.20 ▼0.03 | 98.30 ▼10.64 | 42.03 ▼1.41 |
Background Music Menu /wp-admin/options-general.php?page=background-music-menu | 869 | 1.99 | 23.99 | 27.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 112 | 97 | 304 |
CSS | 1 | 0 | 1 | 116 |
JavaScript | 2 | 6 | 0 | 71 |
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 code | 0.33 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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