Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.59ms] Passed 4 tests
A check of server-side resources used by Wbcom Designs - BuddyPress Post from Anywhere
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 33.99 ▼8.29 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.34 ▼8.95 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.91 ▼7.61 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.12 ▼5.49 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.82 ▲4.62 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Wbcom Designs - BuddyPress Post from Anywhere
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.26 ▼1.20 | 1.66 ▼0.16 | 37.81 ▼5.73 |
Dashboard /wp-admin | 2,203 ▲15 | 5.82 ▲0.91 | 98.67 ▼10.66 | 39.64 ▼4.16 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 1.97 ▼0.03 | 39.28 ▼2.00 | 35.93 ▲4.25 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 22.93 ▼0.33 | 656.72 ▼7.90 | 50.87 ▼12.23 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.26 ▲0.06 | 96.80 ▼9.44 | 43.17 ▼4.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/bp-post-from-anywhere/admin/class-bp-anywhere-feedback.php:311
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (It is displaying Post Form After adding shortcode in page/posts screenshot-1.png), #2 (It is displaying Post Form After adding widgets screenshot-2.png)
bp-post-from-anywhere/bp-post-from-anywhere.php 92% from 13 tests
The entry point to "Wbcom Designs - BuddyPress Post from Anywhere" version 1.5.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 177 characters long)
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
Everything looks great! No dangerous files found in this plugin3,887 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 2,383 |
JavaScript | 4 | 39 | 112 | 570 |
PHP | 12 | 157 | 636 | 517 |
CSS | 3 | 80 | 16 | 413 |
YAML | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 7.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 1 | 3.03% |
▷ Public methods | 27 | 81.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 18.18% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
6 PNG files occupy 0.32MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/icons/error.png | 0.70KB | 0.74KB | 0.00% |
screenshot-1.png | 150.86KB | 42.90KB | ▼ 71.56% |
public/icons/success.png | 0.38KB | 0.32KB | ▼ 17.39% |
admin/images/bp_post_from_anywhere.png | 2.70KB | 2.07KB | ▼ 23.27% |
screenshot-2.png | 171.27KB | 49.24KB | ▼ 71.25% |