Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/bp-new-ui/bp-new-ui.php+33
Undefined variable: val
Server metrics [RAM: ▼1.93MB] [CPU: ▼52.77ms] Passed 4 tests
A check of server-side resources used by BuddyPress - New UI
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 5.00 ▼41.59 |
Dashboard /wp-admin | 2.09 ▼1.26 | 7.01 ▼50.98 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 7.12 ▼38.80 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.80 | 6.28 ▼79.69 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 7.00 ▼26.51 |
Server storage [IO: ▲1.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for BuddyPress - New UI
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲31 | 14.48 ▲0.10 | 1.66 ▼0.46 | 41.28 ▼1.38 |
Dashboard /wp-admin | 2,206 ▲15 | 5.85 ▲0.94 | 96.28 ▼4.73 | 38.29 ▼0.48 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.01 ▼0.00 | 37.35 ▲0.45 | 31.46 ▼2.52 |
Add New Post /wp-admin/post-new.php | 1,538 ▲5 | 23.02 ▼0.01 | 684.28 ▼6.21 | 61.17 ▲5.56 |
Media Library /wp-admin/upload.php | 1,385 ▼0 | 4.16 ▼0.05 | 104.96 ▲5.44 | 45.89 ▲0.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/bp-new-ui/bp-new-ui.php+33
Undefined variable: val
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bp-new-ui/inc/online-status/online.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bp-new-ui/inc/online-status/online.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
bp-new-ui/bp-new-ui.php 92% from 13 tests
"BuddyPress - New UI" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected560 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 0 | 0 | 381 |
PHP | 3 | 15 | 27 | 179 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 1.12MB with 0.59MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshots/screenshot-6.png | 183.05KB | 86.37KB | ▼ 52.81% |
screenshots/screenshot-3.png | 197.76KB | 84.87KB | ▼ 57.09% |
screenshots/screenshot-2.png | 304.03KB | 176.82KB | ▼ 41.84% |
screenshots/screenshot-1.png | 224.60KB | 100.86KB | ▼ 55.09% |
screenshots/screenshot-4.png | 161.97KB | 68.92KB | ▼ 57.45% |