Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.94ms] Passed 4 tests
An overview of server-side resources used by BuddyPress Activity Privacy
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.44 ▼7.48 |
Dashboard /wp-admin | 3.31 ▲0.00 | 62.63 ▲10.35 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.27 ▲0.61 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.20 ▼12.03 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.68 ▲3.15 |
Server storage [IO: ▲1.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for BuddyPress Activity Privacy
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.34 ▼0.01 | 2.37 ▲0.55 | 42.39 ▼2.90 |
Dashboard /wp-admin | 2,192 ▲15 | 5.49 ▼0.09 | 89.42 ▼14.73 | 40.70 ▼4.57 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▼0.03 | 34.37 ▼6.18 | 31.50 ▼4.98 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.33 ▲0.03 | 684.32 ▲53.91 | 59.03 ▼3.83 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.17 ▼0.03 | 94.14 ▼10.22 | 42.88 ▼4.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
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 76% from 29 tests
readme.txt 75% 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
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #3 (**Integration with BuddyPress Follow plugin ** - Allow your users select a visibility level (My Followers) for the activity posted in the profile.), #4 (**Integration with BuddyPress Follow plugin for groups ** - Allow your users select a visibility level (My Followers In Group ) for the activity posted in the group.), #5 (**Integration with BuddyPress Activity Plus plugin** - Allow your users select a visibility level for the activity posted with Buddypress Activity plus.), #6 (**Member can update the privacy of the old activity stream (new selectbox in activity meta).)
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Requires at least: Version format is invalid
- Tested up to: Version format is invalid
buddypress-activity-privacy/loader.php 77% from 13 tests
The main PHP file in "BuddyPress Activity Privacy" ver. 1.3.8 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Requires at least: Please use periods and digits for the required version (ex. "7.0" instead of "WP 3.4, BuddyPress 1.5")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("buddypress-activity-privacy.php" instead of "loader.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected4,235 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 7 | 597 | 887 | 1,811 |
PHP | 10 | 450 | 460 | 1,574 |
SVG | 1 | 0 | 0 | 414 |
JavaScript | 3 | 70 | 46 | 319 |
CSS | 3 | 36 | 9 | 117 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 45.50 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 7.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 58.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 52 | |
▷ Named functions | 52 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.32MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/badge.png | 21.44KB | 6.67KB | ▼ 68.87% |
screenshot-3.png | 25.86KB | 11.14KB | ▼ 56.92% |
screenshot-5.png | 30.79KB | 11.50KB | ▼ 62.64% |
screenshot-6.png | 50.98KB | 22.30KB | ▼ 56.27% |
screenshot-4.png | 24.06KB | 10.37KB | ▼ 56.89% |