Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.22MB] [CPU: ▲1.73ms] Passed 4 tests
An overview of server-side resources used by BuddyPress Cover
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 42.66 ▲1.90 |
Dashboard /wp-admin | 3.52 ▲0.22 | 47.83 ▲0.36 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 53.05 ▲5.06 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 94.83 ▲0.97 |
Media Library /wp-admin/upload.php | 3.45 ▲0.21 | 39.04 ▲3.68 |
Bp cover /wp-admin/options-general.php?page=bp-cover | 3.40 | 34.04 |
Server storage [IO: ▲0.93MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by BuddyPress Cover
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.30 ▼1.11 | 1.70 ▲0.14 | 44.73 ▲2.26 |
Dashboard /wp-admin | 2,214 ▲23 | 5.87 ▼0.02 | 95.17 ▼4.75 | 37.83 ▼10.58 |
Posts /wp-admin/edit.php | 2,111 ▲25 | 2.28 ▲0.23 | 40.27 ▲0.41 | 34.01 ▼3.13 |
Add New Post /wp-admin/post-new.php | 1,523 ▼10 | 23.26 ▲0.15 | 651.36 ▲4.07 | 52.55 ▲1.86 |
Media Library /wp-admin/upload.php | 1,409 ▲24 | 4.27 ▲0.06 | 97.09 ▼8.41 | 41.42 ▼3.56 |
Bp cover /wp-admin/options-general.php?page=bp-cover | 1,049 | 2.27 | 29.99 | 29.92 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=bp-cover
- > Notice in wp-content/plugins/bp-cover/bp-cover-admin.php+183
Undefined variable: class
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 items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-cover/bp-cover-group.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-cover/templates/default/theme.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/bp-cover/bp-cover-admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-cover/templates/mani/theme.php:7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=bp-cover
- > Network (severe)
https://www.okpay.com/img/buttons/en/donate/d14b186x54en.png - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (profile cover), #2 (profile cover), #3 (profile cover), #4 (profile cover), #5 (profile cover)
bp-cover/bp-cover.php Passed 13 tests
The main PHP script in "BuddyPress Cover" version 2.1.4.2 is automatically included on every request by WordPress
55 characters long description:
Adds cover image in profile page and groups buddypress.
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
No dangerous file extensions were detected3,835 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 203 | 26 | 1,635 |
PHP | 5 | 153 | 30 | 1,249 |
JavaScript | 6 | 154 | 84 | 698 |
PO File | 4 | 96 | 152 | 253 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 51 | |
▷ Named functions | 51 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
2 PNG files occupy 0.37MB with 0.24MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/default/screenshot.png | 192.63KB | 69.10KB | ▼ 64.13% |
templates/mani/screenshot.png | 185.58KB | 66.57KB | ▼ 64.13% |