90% opensheetmusicdisplay

Code Review | OpenSheetMusicDisplay

WordPress plugin OpenSheetMusicDisplay scored90%from 54 tests.

About plugin

  • Plugin page: opensheetmusicdis...
  • Plugin version: 1.3.8
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6.0-6.3
  • WordPress version: 6.3.1
  • First release: Feb 19, 2021
  • Latest release: Oct 3, 2023
  • Number of updates: 31
  • Update frequency: every 30.8 days
  • Top authors: opensheetmusicdisplay (64.52%)fredmeister77 (38.71%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /4,570 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼12.69ms] Passed 4 tests

An overview of server-side resources used by OpenSheetMusicDisplay
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.09 ▼3.07
Dashboard /wp-admin3.37 ▲0.0253.70 ▼38.39
Posts /wp-admin/edit.php3.42 ▲0.0652.56 ▼2.29
Add New Post /wp-admin/post-new.php5.98 ▲0.0990.49 ▼6.99
Media Library /wp-admin/upload.php3.29 ▲0.0638.15 ▼0.43

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
phonicscore_opensheetmusicdisplay_default_settings_option_name
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for OpenSheetMusicDisplay
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,904 ▲15815.57 ▲1.43193.84 ▲191.9746.80 ▲2.01
Dashboard /wp-admin2,265 ▲915.69 ▲0.0486.17 ▼3.0041.08 ▼1.79
Posts /wp-admin/edit.php2,171 ▲712.07 ▲0.0435.80 ▼8.5635.01 ▼4.13
Add New Post /wp-admin/post-new.php6,235 ▲4,70921.06 ▼1.991,100.27 ▲419.6339.69 ▼13.44
Media Library /wp-admin/upload.php1,464 ▲674.21 ▼0.0099.80 ▼11.7644.47 ▼1.97

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • phonicscore_opensheetmusicdisplay_default_settings_option_name
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 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 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 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% 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
7 plugin tags: opensheetmusicdisplay, block, shortcode, osmd, musicxml...

opensheetmusicdisplay/opensheetmusicdisplay.php 92% from 13 tests

The main PHP file in "OpenSheetMusicDisplay" ver. 1.3.8 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 160 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,320 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP8111521,275
JSON20028
JavaScript1001212
CSS5005

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity23.00
▷ Minimum class complexity6.00
▷ Maximum class complexity40.00
Average method complexity2.95
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods314.29%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions31
▷ Named functions2890.32%
▷ Anonymous functions39.68%
Constants12
▷ Global constants12100.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 were not PNG files found in your plugin