83% bq-musical-notes

Code Review | BQ Musical Notes

WordPress plugin BQ Musical Notes scored83%from 54 tests.

About plugin

  • Plugin page: bq-musical-notes
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 17, 2012
  • Latest release: Jul 18, 2012
  • Number of updates: 19
  • Update frequency: every 10.8 days
  • Top authors: bquade (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,360 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.32MB] [CPU: ▼26.34ms] Passed 4 tests

Analyzing server-side resources used by BQ Musical Notes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0044.40 ▲4.04
Dashboard /wp-admin3.29 ▼0.0239.91 ▼9.60
Posts /wp-admin/edit.php3.33 ▼0.0347.06 ▼6.33
Add New Post /wp-admin/post-new.php4.65 ▼1.2446.09 ▼86.02
Media Library /wp-admin/upload.php3.28 ▲0.0535.35 ▼3.40

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

BQ Musical Notes: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.30 ▼0.341.79 ▲0.1238.79 ▼4.34
Dashboard /wp-admin2,201 ▲245.64 ▲0.0989.74 ▼3.7639.93 ▼4.13
Posts /wp-admin/edit.php2,106 ▲32.01 ▼0.1639.68 ▼11.4837.44 ▼10.54
Add New Post /wp-admin/post-new.php1,529 ▲317.58 ▲0.09641.66 ▼20.1766.88 ▲15.04
Media Library /wp-admin/upload.php1,403 ▼04.22 ▲0.00100.34 ▼0.4642.16 ▼1.83

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bq-musical-notes/bqnotes.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (Sample page.), #2 (Text used to create the sample page.)
  • Requires at least: Version not formatted correctly
Please take inspiration from this readme.txt

bq-musical-notes/bqnotes.php 92% from 13 tests

The main PHP script in "BQ Musical Notes" version 2.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bq-musical-notes.php" instead of "bqnotes.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected14,588 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
SVG20014,146
PHP55755442

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity29.00
▷ Minimum class complexity27.00
▷ Maximum class complexity31.00
Average method complexity8.00
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods787.50%
▷ Public methods450.00%
▷ Protected methods450.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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected