Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/musicbox/webdesignby-musicbox-widget.php+133
Function create_function() is deprecated
Server metrics [RAM: ▼1.74MB] [CPU: ▼45.54ms] Passed 4 tests
An overview of server-side resources used by Musicbox
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.25 ▼1.22 | 8.10 ▼30.59 |
Dashboard /wp-admin | 2.27 ▼1.04 | 9.29 ▼36.81 |
Posts /wp-admin/edit.php | 2.27 ▼1.09 | 11.09 ▼38.88 |
Add New Post /wp-admin/post-new.php | 2.27 ▼3.62 | 19.11 ▼75.89 |
Media Library /wp-admin/upload.php | 2.27 ▼0.96 | 11.96 ▼24.63 |
Add Musicbox /wp-admin/admin.php?page=webdesignby-musicbox-edit | 2.27 | 13.74 |
Musicbox /wp-admin/admin.php?page=webdesignby-musicbox | 2.27 | 12.89 |
Server storage [IO: ▲6.64MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 384 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_webdesignby_musicbox_musicbox_tracks_assoc |
wp_webdesignby_musicbox_tracks |
wp_webdesignby_musicbox |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_webdesignby_musicbox_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Musicbox
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲88 | 13.30 ▼1.06 | 4.39 ▲2.72 | 41.79 ▼0.20 |
Dashboard /wp-admin | 2,237 ▲46 | 5.81 ▲0.91 | 98.78 ▼2.53 | 39.26 ▼3.84 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.06 ▲0.03 | 35.06 ▼5.78 | 33.47 ▼0.72 |
Add New Post /wp-admin/post-new.php | 1,543 ▲14 | 17.57 ▼0.68 | 650.51 ▲59.08 | 61.56 ▲8.75 |
Media Library /wp-admin/upload.php | 1,422 ▲40 | 4.18 ▼0.06 | 94.62 ▼6.04 | 40.74 ▼4.07 |
Add Musicbox /wp-admin/admin.php?page=webdesignby-musicbox-edit | 828 | 2.06 | 23.23 | 29.57 |
Musicbox /wp-admin/admin.php?page=webdesignby-musicbox | 834 | 1.94 | 23.88 | 24.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/musicbox/webdesignby-musicbox-widget.php+133
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_webdesignby_musicbox_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=webdesignby-musicbox
- > Deprecated in wp-content/plugins/musicbox/webdesignby-musicbox-widget.php+133
Function create_function() is deprecated
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 28× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/musicbox/lib/BaseModel.php
- > /wp-content/plugins/musicbox/trunk/lib/MusicboxModel.php
- > /wp-content/plugins/musicbox/trunk/config.php
- > /wp-content/plugins/musicbox/trunk/webdesignby-musicbox-widget.php
- > /wp-content/plugins/musicbox/config.php
- > /wp-content/plugins/musicbox/lib/MusicboxPlugin.php
- > /wp-content/plugins/musicbox/trunk/lib/iTunesInfo.php
- > /wp-content/plugins/musicbox/lib/Registry.php
- > /wp-content/plugins/musicbox/webdesignby-musicbox-widget.php
- > /wp-content/plugins/musicbox/trunk/lib/Base.php
- 30× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Trying to get property 'name' of non-object in wp-content/plugins/musicbox/view/musicbox2.php on line 7
- > PHP Notice
Undefined variable: musicbox in wp-content/plugins/musicbox/trunk/view/admin/musicbox-content.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/musicbox/trunk/view/admin/musicbox-edit.php:19
- > PHP Notice
Undefined variable: description in wp-content/plugins/musicbox/view/musicbox2.php on line 8
- > PHP Notice
Trying to get property 'name' of non-object in wp-content/plugins/musicbox/trunk/view/musicbox2.php on line 7
- > PHP Notice
Trying to get property 'id' of non-object in wp-content/plugins/musicbox/view/musicbox2.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/musicbox/view/musicbox2.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/musicbox/trunk/view/musicbox2.php on line 7
- > PHP Notice
Undefined variable: description in wp-content/plugins/musicbox/trunk/view/musicbox2.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/musicbox/view/admin/musicbox.php:2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: tracks, playlist, player, itunes, musicbox...
musicbox/webdesignby-musicbox.php 85% from 13 tests
Analyzing the main PHP file in "Musicbox" version 2.0.3
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("musicbox.php" instead of "webdesignby-musicbox.php")
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
Success! There were no dangerous files found in this plugin38,902 lines of code in 101 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 33 | 8,339 | 368 | 19,276 |
JavaScript | 18 | 2,758 | 1,848 | 10,622 |
CSS | 28 | 1,100 | 651 | 7,276 |
PHP | 20 | 375 | 180 | 1,610 |
XHTML | 1 | 39 | 5 | 99 |
XML | 1 | 4 | 10 | 19 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 11.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 4 | 16.67% |
▷ Concrete classes | 20 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 178 | |
▷ Static methods | 6 | 3.37% |
▷ Public methods | 140 | 78.65% |
▷ Protected methods | 8 | 4.49% |
▷ Private methods | 30 | 16.85% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
72 compressed PNG files occupy 0.17MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/jquery-ui-1.11.4.custom/images/ui-icons_2e83ff_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
trunk/vendor/soundmanager/demo/play-mp3-links/image/icon_pause.png | 0.18KB | 0.24KB | 0.00% |
trunk/vendor/soundmanager/demo/page-player/image/top-highlight.png | 0.15KB | 0.26KB | 0.00% |
vendor/soundmanager/demo/play-mp3-links/image/icon_play.png | 0.21KB | 0.31KB | 0.00% |
trunk/js/jquery-ui-1.11.4.custom/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.27KB | 0.18KB | ▼ 35.00% |