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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 42.09 ▼3.07 |
Dashboard /wp-admin | 3.37 ▲0.02 | 53.70 ▼38.39 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 52.56 ▼2.29 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 90.49 ▼6.99 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 38.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,904 ▲158 | 15.57 ▲1.43 | 193.84 ▲191.97 | 46.80 ▲2.01 |
Dashboard /wp-admin | 2,265 ▲91 | 5.69 ▲0.04 | 86.17 ▼3.00 | 41.08 ▼1.79 |
Posts /wp-admin/edit.php | 2,171 ▲71 | 2.07 ▲0.04 | 35.80 ▼8.56 | 35.01 ▼4.13 |
Add New Post /wp-admin/post-new.php | 6,235 ▲4,709 | 21.06 ▼1.99 | 1,100.27 ▲419.63 | 39.69 ▼13.44 |
Media Library /wp-admin/upload.php | 1,464 ▲67 | 4.21 ▼0.00 | 99.80 ▼11.76 | 44.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 111 | 52 | 1,275 |
JSON | 2 | 0 | 0 | 28 |
JavaScript | 10 | 0 | 12 | 12 |
CSS | 5 | 0 | 0 | 5 |
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 code | 0.52 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 3 | 14.29% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 31 | |
▷ Named functions | 28 | 90.32% |
▷ Anonymous functions | 3 | 9.68% |
Constants | 12 | |
▷ Global constants | 12 | 100.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 were not PNG files found in your plugin