Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.36MB] [CPU: ▲2.30ms] Passed 4 tests
Analyzing server-side resources used by Sheet Music Libary
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.37 | 41.34 ▼2.79 |
Dashboard /wp-admin | 3.64 ▲0.33 | 50.96 ▲3.85 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 49.61 ▲3.34 |
Add New Post /wp-admin/post-new.php | 6.49 ▲0.61 | 103.65 ▲8.75 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 40.46 ▲4.81 |
Add New Piece /wp-admin/post-new.php?post_type=sheet_music | 6.52 | 91.67 |
Genres /wp-admin/edit-tags.php?taxonomy=genre&post_type=sheet_music | 3.55 | 37.59 |
Composer /wp-admin/edit-tags.php?taxonomy=composer&post_type=sheet_music | 3.55 | 34.96 |
Difficulties /wp-admin/edit-tags.php?taxonomy=difficulty&post_type=sheet_music | 3.55 | 35.67 |
Orchestration /wp-admin/edit-tags.php?taxonomy=orchestration&post_type=sheet_music | 3.55 | 34.28 |
Sheet Music /wp-admin/edit.php?post_type=sheet_music | 3.60 | 44.76 |
Collections /wp-admin/edit-tags.php?taxonomy=sml_collection&post_type=sheet_music | 3.55 | 35.60 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 35 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_sheet_music_library_recent_playlist_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_sheet_music_library_playlist_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Sheet Music Libary
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,867 ▲132 | 13.22 ▼1.44 | 1.58 ▼0.05 | 44.78 ▼1.86 |
Dashboard /wp-admin | 2,253 ▲62 | 4.84 ▼0.05 | 106.75 ▲2.98 | 39.77 ▼4.47 |
Posts /wp-admin/edit.php | 2,136 ▲68 | 2.01 ▼0.02 | 35.93 ▲1.13 | 30.34 ▼2.06 |
Add New Post /wp-admin/post-new.php | 6,580 ▲5,052 | 24.78 ▲6.65 | 890.59 ▲258.35 | 56.90 ▼19.38 |
Media Library /wp-admin/upload.php | 1,435 ▲50 | 4.20 ▲0.00 | 95.80 ▼4.38 | 43.26 ▼0.70 |
Add New Piece /wp-admin/post-new.php?post_type=sheet_music | 1,716 | 17.33 | 855.57 | 49.03 |
Genres /wp-admin/edit-tags.php?taxonomy=genre&post_type=sheet_music | 1,306 | 2.26 | 27.38 | 30.41 |
Composer /wp-admin/edit-tags.php?taxonomy=composer&post_type=sheet_music | 1,278 | 2.14 | 27.64 | 29.22 |
Difficulties /wp-admin/edit-tags.php?taxonomy=difficulty&post_type=sheet_music | 1,306 | 2.13 | 26.47 | 25.68 |
Orchestration /wp-admin/edit-tags.php?taxonomy=orchestration&post_type=sheet_music | 1,278 | 2.14 | 27.95 | 25.59 |
Sheet Music /wp-admin/edit.php?post_type=sheet_music | 1,183 | 1.94 | 38.36 | 34.33 |
Collections /wp-admin/edit-tags.php?taxonomy=sml_collection&post_type=sheet_music | 1,281 | 2.16 | 30.65 | 26.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_sheet_music_library_recent_playlist_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_sheet_music_library_playlist_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 fix the following items
- 9× 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/sheet-music-library/admin/customize-options.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sheet-music-library/post-type.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sheet-music-library/taxonomies.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sheet-music-library/sheet-music-library.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/sheet-music-library/block-functions.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sheet-music-library/admin/post-meta.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sheet-music-library/template/sheet-music-library-recent-playlist-widget.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sheet-music-library/admin/ajax-actions.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sheet-music-library/template/sheet-music-library-playlist-widget.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: library, sheet music, music library, music
sheet-music-library/sheet-music-library.php Passed 13 tests
"Sheet Music Libary" version 2.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
85 characters long description:
Add a sheet music library, including PDFs, audio, descriptions and more to your site.
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 detected1,734 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 173 | 200 | 989 |
CSS | 7 | 73 | 18 | 333 |
JavaScript | 6 | 38 | 47 | 317 |
JSON | 5 | 0 | 0 | 95 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 36 | |
▷ Named functions | 36 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin