Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Error in wp-content/plugins/buddydrives3/includes/buddydrive-functions.php+234
Uncaught Error: Call to undefined function bp_core_get_directory_page_ids() in wp-content/plugins/buddydrives3/includes/buddydrive-functions.php:234
Stack trace:
#0 wp-includes/class-wp-hook.php(310): buddydrive_activation()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/includes/plugin.php(693): do_action()
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.69ms] Passed 4 tests
This is a short check of server-side resources used by BuddyDrive
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.67 ▼6.35 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.07 ▼4.25 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.33 ▼0.35 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.34 ▼10.52 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.51 ▼1.64 |
Server storage [IO: ▲0.85MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for BuddyDrive
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.06 ▼0.30 | 1.71 ▲0.04 | 39.90 ▼4.05 |
Dashboard /wp-admin | 2,198 ▲24 | 5.63 ▲0.10 | 91.01 ▼0.39 | 37.34 ▼4.87 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.94 ▼0.06 | 39.62 ▲2.49 | 35.46 ▼4.91 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.02 ▼0.01 | 652.43 ▼26.85 | 55.20 ▲0.23 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.21 ▲0.00 | 110.47 ▲6.03 | 46.90 ▼2.72 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
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 no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/buddydrives3/templates/buddydrive-loop.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function buddydrive_item_id() in wp-content/plugins/buddydrives3/templates/buddydrive-entry.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function buddydrive_is_bp_default() in wp-content/plugins/buddydrives3/templates/buddydrive.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function buddydrive_is_bp_default() in wp-content/plugins/buddydrives3/templates/buddydrive-explorer.php:9
- > PHP Fatal error
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 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (User's BuddyDrive.), #2 (BuddyDrive Uploader), #3 (BuddyDrive embed file.), #4 (BuddyDrive Supervising area.), #5 (BuddyDrive settings page)
- Donate link: Invalid URI ("")
buddydrives3/buddydrive.php 85% from 13 tests
The entry point to "BuddyDrive" version 1.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("buddydrives3.php" instead of "buddydrive.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin7,193 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 1,863 | 3,017 | 5,270 |
JavaScript | 3 | 298 | 17 | 915 |
PO File | 1 | 245 | 303 | 680 |
CSS | 2 | 42 | 0 | 328 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 45.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 265.00 |
Average method complexity | 4.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 1 | 9.09% |
Methods | 143 | |
▷ Static methods | 50 | 34.97% |
▷ Public methods | 125 | 87.41% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 12.59% |
Functions | 190 | |
▷ Named functions | 190 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 100.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
12 PNG files occupy 0.41MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 66.99KB | 19.72KB | ▼ 70.57% |
includes/admin/images/menu.png | 6.91KB | 1.58KB | ▼ 77.19% |
includes/images/folder-demo.png | 56.72KB | 15.53KB | ▼ 72.62% |
includes/images/privacy-demo.png | 21.64KB | 6.29KB | ▼ 70.94% |
screenshot-3.png | 55.53KB | 14.23KB | ▼ 74.38% |