Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼13.87ms] Passed 4 tests
Analyzing server-side resources used by Music Sheet Viewer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 37.15 ▼4.37 |
Dashboard /wp-admin | 3.46 ▲0.11 | 44.98 ▼21.45 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 47.29 ▲0.78 |
Add New Post /wp-admin/post-new.php | 6.32 ▲0.43 | 74.03 ▼29.60 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 34.10 ▼0.05 |
Music Sheet Viewer /wp-admin/options-general.php?page=msvoptions-group | 3.35 | 33.35 |
Server storage [IO: ▲60.35MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Just a few items left to fix
- Total filesystem usage must be limited to 25MB (currently using 60.35MB)
Filesystem: 152 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
msv_instrument |
can_compress_scripts |
widget_theysaidso_widget |
msv_mxl_unzip_method |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Music Sheet Viewer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,943 ▲172 | 20.72 ▲6.10 | 148.63 ▲146.75 | 36.31 ▼7.04 |
Dashboard /wp-admin | 2,207 ▲22 | 5.79 ▲0.68 | 97.70 ▼10.84 | 40.29 ▲1.16 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.04 | 39.37 ▼1.29 | 34.48 ▼6.71 |
Add New Post /wp-admin/post-new.php | 6,185 ▲4,643 | 19.34 ▲1.11 | 837.16 ▲233.87 | 36.41 ▼11.26 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.31 ▲0.08 | 97.47 ▼10.80 | 42.07 ▼4.14 |
Music Sheet Viewer /wp-admin/options-general.php?page=msvoptions-group | 1,166 | 1.72 | 26.11 | 28.12 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/music-sheet-viewer/music-sheet-viewer.php:120
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: abc, sheet, mei, javascript, pae...
music-sheet-viewer/music-sheet-viewer.php Passed 13 tests
The main PHP file in "Music Sheet Viewer" ver. 4.1 adds more information about the plugin and also serves as the entry point for this plugin
73 characters long description:
Allows you to display sheet music from its MusicXML, MEI, ABC, PAE.. code
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected2,985 lines of code in 79 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 77 | 943 | 410 | 2,183 |
PHP | 1 | 149 | 172 | 774 |
CSS | 1 | 0 | 0 | 28 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 58.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 95.00 |
Average method complexity | 4.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.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 | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 51.61% |
▷ Protected methods | 15 | 48.39% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 37 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 37 | 100.00% |
▷ Public constants | 37 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin