Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▼8.70ms] Passed 4 tests
Analyzing server-side resources used by BuddyDrive
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 38.42 ▼0.53 |
Dashboard /wp-admin | 3.64 ▲0.30 | 47.43 ▼11.62 |
Posts /wp-admin/edit.php | 3.69 ▲0.34 | 43.07 ▼0.59 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 81.20 ▼22.06 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 38.27 ▲3.91 |
Server storage [IO: ▲0.99MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 54 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by BuddyDrive
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 14.41 ▼0.13 | 1.87 ▲0.42 | 45.17 ▲3.43 |
Dashboard /wp-admin | 2,198 ▲23 | 5.60 ▼0.05 | 93.42 ▼11.45 | 42.28 ▲2.45 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.02 ▲0.00 | 34.59 ▲0.34 | 32.67 ▼4.29 |
Add New Post /wp-admin/post-new.php | 1,528 ▼0 | 23.26 ▲0.38 | 637.58 ▼19.94 | 54.34 ▼8.61 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.29 ▲0.10 | 103.76 ▲5.13 | 44.59 ▲0.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function buddydrive_item_id() in wp-content/plugins/buddydrive/templates/buddydrive-entry.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/buddydrive/templates/buddydrive.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/buddydrive/templates/buddydrive-loop.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/buddydrive/templates/buddydrive-default.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
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
3 plugin tags: folders, buddypress, files
buddydrive/buddydrive.php Passed 13 tests
"BuddyDrive" version 2.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
44 characters long description:
A plugin to share files, the BuddyPress way!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin11,068 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 2,035 | 3,573 | 6,498 |
JavaScript | 13 | 786 | 141 | 2,543 |
CSS | 8 | 224 | 2 | 1,179 |
PO File | 1 | 319 | 402 | 848 |
PHP code Passed 2 tests
This is a very shot review 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.45 |
Average class complexity | 39.22 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 146.00 |
Average method complexity | 3.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 116 | |
▷ Static methods | 17 | 14.66% |
▷ Public methods | 105 | 90.52% |
▷ Protected methods | 1 | 0.86% |
▷ Private methods | 10 | 8.62% |
Functions | 250 | |
▷ Named functions | 250 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.24MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 57.35KB | 18.84KB | ▼ 67.14% |
screenshot-5.png | 66.71KB | 21.67KB | ▼ 67.52% |
screenshot-1.png | 49.81KB | 16.47KB | ▼ 66.92% |
includes/images/camera.png | 1.48KB | 0.82KB | ▼ 44.74% |
includes/images/folder.png | 0.51KB | 0.56KB | 0.00% |