Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.61ms] Passed 4 tests
Analyzing server-side resources used by Activity Plus Reloaded for BuddyPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.46 ▼0.69 |
Dashboard /wp-admin | 3.34 ▼0.01 | 44.39 ▼18.19 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 48.98 ▲0.76 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 90.65 ▼12.33 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 40.98 ▲2.06 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 46 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
bpfb_plugin |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Activity Plus Reloaded for BuddyPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.23 ▼0.32 | 1.71 ▼0.03 | 40.97 ▲1.22 |
Dashboard /wp-admin | 2,195 ▲17 | 5.63 ▼0.08 | 83.54 ▼25.97 | 38.57 ▼4.98 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▼0.03 | 35.99 ▲0.02 | 34.22 ▼1.37 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.65 ▲0.43 | 687.16 ▼6.20 | 55.31 ▼5.29 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.19 ▲0.02 | 101.96 ▼14.59 | 45.59 ▼6.47 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- bpfb_plugin
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/bp-activity-plus-reloaded/lib/forms/images_tag_template.php
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_ssl() in wp-content/plugins/bp-activity-plus-reloaded/bp-activity-plus-reloaded.php:39
- > PHP Notice
Undefined variable: images in wp-content/plugins/bp-activity-plus-reloaded/lib/forms/images_tag_template.php on line 3
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/bp-activity-plus-reloaded/lib/forms/images_tag_template.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-activity-plus-reloaded/lib/class-bpapr-group-documents.php:24
- > PHP Fatal error
Uncaught Error: Class 'BPAPR_Data' not found in wp-content/plugins/bp-activity-plus-reloaded/lib/forms/link_tag_template.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
bp-activity-plus-reloaded/bp-activity-plus-reloaded.php Passed 13 tests
The primary PHP file in "Activity Plus Reloaded for BuddyPress" version 1.1.0 is used by WordPress to initiate all plugin functionality
64 characters long description:
A Facebook-style media sharing improvement for the activity box.
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
Everything looks great! No dangerous files found in this plugin5,074 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 733 | 1,014 | 3,145 |
JavaScript | 3 | 246 | 253 | 1,413 |
CSS | 4 | 34 | 7 | 329 |
PO File | 1 | 52 | 57 | 135 |
SVG | 1 | 0 | 0 | 52 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 39.31 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 249.00 |
Average method complexity | 4.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 181 | |
▷ Static methods | 16 | 8.84% |
▷ Public methods | 142 | 78.45% |
▷ Protected methods | 15 | 8.29% |
▷ Private methods | 24 | 13.26% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 33 | |
▷ Global constants | 33 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/system/link.png | 4.96KB | 1.59KB | ▼ 67.88% |
assets/img/system/theme-new.png | 4.32KB | 1.36KB | ▼ 68.56% |
assets/img/system/theme-legacy.png | 7.76KB | 2.79KB | ▼ 64.00% |
assets/img/system/film.png | 4.94KB | 1.70KB | ▼ 65.60% |
assets/img/system/cancel.png | 1.78KB | 1.50KB | ▼ 16.06% |