Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.53ms] Passed 4 tests
Analyzing server-side resources used by zbPlayer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 39.97 ▲1.03 |
Dashboard /wp-admin | 3.38 ▲0.08 | 44.76 ▼2.05 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 42.12 ▼5.32 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 81.69 ▼11.20 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 34.58 ▲0.46 |
zbPlayer /wp-admin/options-general.php?page=zbplayer | 3.33 | 31.64 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 28 new options
New WordPress options |
---|
can_compress_scripts |
zbp_native_desktop |
zbp_version |
zbp_bg_left_color |
zbp_icon_right_hover_color |
zbp_volslider_color |
zbp_loader_color |
widget_recent-posts |
zbp_text_color |
zbp_border_color |
... |
Browser metrics Passed 4 tests
Checking browser requirements for zbPlayer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.63 ▲0.23 | 2.38 ▲0.73 | 38.56 ▼5.65 |
Dashboard /wp-admin | 2,202 ▲24 | 5.58 ▼0.11 | 82.34 ▼18.12 | 37.10 ▼5.95 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.95 ▼0.02 | 34.52 ▼3.06 | 33.72 ▼2.42 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 22.96 ▼0.16 | 648.95 ▲0.97 | 65.71 ▲12.71 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.28 ▲0.09 | 93.39 ▼1.58 | 41.81 ▼0.58 |
zbPlayer /wp-admin/options-general.php?page=zbplayer | 1,531 | 2.03 | 33.77 | 35.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/zbplayer/zbPlayer.admin.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zbplayer/zbPlayer.php:40
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: cyrillic mp3 player, mp3 player, wav player, flash player, small mp3 player...
zbplayer/zbPlayer.php 77% from 13 tests
The entry point to "zbPlayer" version 2.4.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("zbplayer.php" instead of "zbPlayer.php")
- Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected596 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 57 | 97 | 475 |
PO File | 5 | 5 | 15 | 80 |
JavaScript | 2 | 1 | 3 | 37 |
CSS | 2 | 0 | 0 | 4 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 23 | |
▷ Global constants | 23 | 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
No PNG files were detected