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/buddypress-mute/buddypress-mute.php+48
Trying to get property 'table_prefix' of non-object
Server metrics [RAM: ▼0.00MB] [CPU: ▼9.91ms] Passed 4 tests
An overview of server-side resources used by BuddyPress Mute
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.35 ▲4.30 |
Dashboard /wp-admin | 3.32 ▼0.03 | 44.23 ▼16.13 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.25 ▼7.53 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 84.95 ▼15.74 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.01 ▼0.25 |
Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 9 new files
Database: 1 new table, 6 new options
New tables |
---|
bp_mute |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by BuddyPress Mute
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.25 ▼0.19 | 2.24 ▲0.63 | 42.90 ▲1.31 |
Dashboard /wp-admin | 2,198 ▲31 | 5.58 ▼0.08 | 92.58 ▼4.63 | 37.96 ▼5.17 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.94 ▼0.06 | 40.91 ▼1.09 | 35.41 ▼1.48 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.03 ▲0.05 | 634.21 ▼35.28 | 57.55 ▼1.98 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.21 ▲0.07 | 105.78 ▲4.46 | 43.33 ▼0.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- bp_mute
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please fix the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-mute/inc/actions.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-mute/buddypress-mute.php:37
- > PHP Fatal error
Uncaught Error: Class 'BP_Component' not found in wp-content/plugins/buddypress-mute/inc/classes/bp-component-mute.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/buddypress-mute/inc/filters.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: friends, users, mute, activity, buddypress
buddypress-mute/buddypress-mute.php Passed 13 tests
The main file in "BuddyPress Mute" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
93 characters long description:
Let members mute their friends and shed unwanted items from their BuddyPress activity stream.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin540 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 182 | 363 | 496 |
JavaScript | 2 | 0 | 0 | 44 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 3 | 27.27% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 25 | |
▷ Named functions | 25 | 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 Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin