Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼147.25ms] Passed 4 tests
A check of server-side resources used by Buddypress Activity Anywhere
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.02 | 27.45 ▼0.99 |
Dashboard /wp-admin | 3.08 ▲0.01 | 34.64 ▼5.68 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 45.73 ▲11.60 |
Add New Post /wp-admin/post-new.php | 5.44 ▼0.00 | 74.50 ▼581.70 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 24.75 ▼0.63 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Buddypress Activity Anywhere: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,666 ▲65 | 16.00 ▼0.03 | 4.94 ▼5.22 | 76.18 ▲2.30 |
Dashboard /wp-admin | 2,930 ▲37 | 6.10 ▼0.07 | 114.99 ▼18.04 | 171.19 ▼1.82 |
Posts /wp-admin/edit.php | 2,740 ▲3 | 3.24 ▲0.01 | 65.37 ▲2.24 | 133.85 ▼4.11 |
Add New Post /wp-admin/post-new.php | 3,698 ▼37 | 20.11 ▲1.74 | 443.98 ▼3.63 | 160.31 ▼22.12 |
Media Library /wp-admin/upload.php | 1,752 ▲3 | 5.46 ▼0.07 | 150.61 ▼4.34 | 187.33 ▼12.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Please fix the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > 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 a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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
These attributes need your attention:
- Screenshots: Add a description for screenshot #1 in buddypress-activity-anywhere/assets to your readme.txt
buddypress-activity-anywhere/bp-activity-anywhere.php 85% from 13 tests
"Buddypress Activity Anywhere" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
- Main file name: Even though not officially enforced, the main plugin file should be the same as 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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected549 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
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
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
Using a strong compression for your PNG files is a great way to speed-up 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-light-blue.png | 3.20KB | 0.51KB | ▼ 84.15% |
buttons/bpqa-button-red.png | 3.20KB | 0.49KB | ▼ 84.71% |
buttons/bpqa-button-purple.png | 3.21KB | 0.49KB | ▼ 84.64% |
buttons/bpqa-button-green.png | 3.21KB | 0.50KB | ▼ 84.53% |