Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.36ms] Passed 4 tests
An overview of server-side resources used by Buddypress Activity Anywhere
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.48 ▲1.97 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.38 ▼5.37 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.32 ▲1.60 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.50 ▼11.64 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.33 ▲2.16 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Buddypress Activity Anywhere: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.23 ▼1.41 | 1.71 ▲0.02 | 42.87 ▲1.07 |
Dashboard /wp-admin | 2,203 ▲15 | 5.83 ▲0.80 | 96.60 ▼8.70 | 37.26 ▼9.68 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.00 | 33.92 ▼4.08 | 32.09 ▲0.39 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.13 ▼0.18 | 681.17 ▲23.29 | 53.79 ▲0.91 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.20 ▼0.02 | 98.85 ▼3.64 | 43.12 ▲0.59 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/buddypress-activity-anywhere/form-templates/default/form.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-activity-anywhere/bp-activity-anywhere.php:149
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please describe screenshot #1 in buddypress-activity-anywhere/assets to your readme.txt
buddypress-activity-anywhere/bp-activity-anywhere.php 85% from 13 tests
Analyzing the main PHP file in "Buddypress Activity Anywhere" version 1.1
Please take the time to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("buddypress-activity-anywhere.php" instead of "bp-activity-anywhere.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin549 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 77 | 90 | 225 |
CSS | 1 | 19 | 1 | 152 |
PO File | 1 | 39 | 39 | 135 |
JavaScript | 1 | 6 | 6 | 37 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 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 Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
buttons/bpqa-button-purple.png | 3.21KB | 0.49KB | ▼ 84.64% |
buttons/bpqa-button-red.png | 3.20KB | 0.49KB | ▼ 84.71% |
buttons/bpqa-button-light-blue.png | 3.20KB | 0.51KB | ▼ 84.15% |
buttons/bpqa-button-green.png | 3.21KB | 0.50KB | ▼ 84.53% |