Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.16ms] Passed 4 tests
This is a short check of server-side resources used by Wbcom Designs - BuddyPress Activity Filter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.26 ▼1.55 |
Dashboard /wp-admin | 3.31 ▲0.00 | 56.03 ▲6.49 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 53.15 ▼4.35 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 94.93 ▼7.74 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.71 ▼2.99 |
Server storage [IO: ▲1.31MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 72 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Wbcom Designs - BuddyPress Activity Filter
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.23 ▼0.12 | 1.70 ▼0.14 | 39.95 ▼7.84 |
Dashboard /wp-admin | 2,195 ▲21 | 5.63 ▼0.03 | 87.80 ▲2.34 | 40.73 ▼2.59 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.02 ▼0.02 | 40.25 ▼1.34 | 34.51 ▼4.46 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 18.30 ▼4.71 | 612.31 ▼47.91 | 79.42 ▲9.06 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.22 ▼0.03 | 96.41 ▼5.79 | 44.57 ▼1.12 |
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 did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Please take a closer look at the following
- 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/bp-activity-filter/admin/wbcom/templates/wbcom-support-page.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/bp-activity-filter/admin/wbcom/templates/wbcom-license-page.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-activity-filter/admin/class-bp-activity-filter-admin-setting.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bp-activity-filter/templates/class-bp-activity-filter-dropdown.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/bp-activity-filter/admin/class-bp-activity-filter-feedback.php:311
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-activity-filter/admin/class-bp-activity-filter-add-post-support.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-activity-filter/admin/class-bp-activity-filter-admin-setting-save.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bp-activity-filter/templates/class-bp-activity-filter-query.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/bp-activity-filter/buddypress-activity-filter.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-activity-filter/admin/class-bp-activity-filter-admin-script-includer.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (The screenshot shows settings to select the activity type to display on the activity page by default, corresponding to screenshot-1.(png|jpg|jpeg|gif).), #2 (The screenshot shows settings to select activity/activities you want to hide from the dropdown list on activity options, which corresponds to), #3 (The screenshot shows settings to add custom post-type activities, corresponding to screenshot-3.(png|jpg|jpeg|gif).), #4 (The screenshot shows FAQ(s) , corresponds to screenshot-4.(png|jpg|jpeg|gif).)
bp-activity-filter/buddypress-activity-filter.php 92% from 13 tests
The main PHP script in "Wbcom Designs - BuddyPress Activity Filter" version 2.8.6 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bp-activity-filter.php" instead of "buddypress-activity-filter.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected6,524 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 567 | 109 | 2,796 |
PHP | 14 | 321 | 571 | 2,097 |
PO File | 3 | 472 | 692 | 1,343 |
JavaScript | 4 | 13 | 13 | 266 |
JSON | 1 | 0 | 0 | 22 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 25.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 5.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.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 | 53 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 53 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.58MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/wbcom/assets/imgs/logowbcom.png | 10.12KB | 3.87KB | ▼ 61.72% |
admin/images/ui-icons_555555_256x240.png | 3.20KB | 3.50KB | 0.00% |
admin/images/wbcom.png | 11.75KB | 4.75KB | ▼ 59.58% |
admin/images/ui-icons_ffffff_256x240.png | 3.19KB | 3.49KB | 0.00% |
admin/wbcom/assets/imgs/wbcom-offer-notice.png | 67.64KB | 32.40KB | ▼ 52.11% |