Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.99ms] Passed 4 tests
A check of server-side resources used by Bubuku Media Library
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 43.02 ▲0.45 |
Dashboard /wp-admin | 3.34 ▲0.04 | 55.03 ▲0.83 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 53.14 ▲1.77 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 86.67 ▼26.99 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 44.30 ▲6.46 |
BBK Media Library /wp-admin/options-general.php?page=bubuku-media-library-options | 3.23 | 35.58 |
Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Bubuku Media Library
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.24 ▼0.11 | 1.77 ▼0.07 | 44.67 ▼2.98 |
Dashboard /wp-admin | 2,199 ▲22 | 5.63 ▼0.02 | 96.41 ▼0.36 | 47.96 ▲5.35 |
Posts /wp-admin/edit.php | 2,111 ▲8 | 1.95 ▼0.08 | 41.87 ▲0.44 | 33.51 ▼9.19 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.08 ▼0.09 | 613.19 ▼68.91 | 59.58 ▼1.73 |
Media Library /wp-admin/upload.php | 1,560 ▲163 | 10.94 ▲6.81 | 250.41 ▲121.24 | 40.11 ▼11.20 |
BBK Media Library /wp-admin/options-general.php?page=bubuku-media-library-options | 1,081 | 2.43 | 35.94 | 30.16 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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
Please fix the following
- 14× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/bubuku-media-library/src/BML_assets.php
- > /wp-content/plugins/bubuku-media-library/src/index.php
- > /wp-content/plugins/bubuku-media-library/src/BML_filter.php
- > /wp-content/plugins/bubuku-media-library/bubuku-media-library.php
- > /wp-content/plugins/bubuku-media-library/src/BML_restapi.php
- > /wp-content/plugins/bubuku-media-library/src/BML_bulk_action.php
- > /wp-content/plugins/bubuku-media-library/uninstall.php
- > /wp-content/plugins/bubuku-media-library/index.php
- > /wp-content/plugins/bubuku-media-library/src/BML_admin_setup_report.php
- > /wp-content/plugins/bubuku-media-library/src/BML_common.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=bubuku-media-library-options
- > Network (severe)
wp-json/bbk_medialibrary/v1/get-notification-settings - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=bubuku-media-library-options
- > Javascript (severe) in unknown
/wp-admin/options-general.php?page=bubuku-media-library-options 0:0 Uncaught SyntaxError: Unexpected token '
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: alt text, media library, performance, images, seo
bubuku-media-library/bubuku-media-library.php Passed 13 tests
Analyzing the main PHP file in "Bubuku Media Library" version 1.0.6
70 characters long description:
Plugin created by Bubuku for media library management and optimization
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,762 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 377 | 559 | 1,399 |
SVG | 1 | 0 | 0 | 132 |
CSS | 2 | 22 | 3 | 95 |
PO File | 2 | 34 | 38 | 88 |
JavaScript | 2 | 15 | 65 | 43 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 11.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 92 | |
▷ Static methods | 18 | 19.57% |
▷ Public methods | 79 | 85.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 14.13% |
Functions | 8 | |
▷ Named functions | 1 | 12.50% |
▷ Anonymous functions | 7 | 87.50% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.40MB with 0.19MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/report_hero.png | 414.45KB | 219.23KB | ▼ 47.10% |