Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.27ms] Passed 4 tests
Server-side resources used by Wbcom Designs - BuddyPress Member Reviews
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 43.77 ▲6.06 |
Dashboard /wp-admin | 3.31 ▲0.00 | 50.41 ▼2.69 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.55 ▼6.14 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.06 ▼13.79 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.31 ▲1.55 |
Server storage [IO: ▲4.49MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 91 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Wbcom Designs - BuddyPress Member Reviews
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲28 | 14.28 ▼0.07 | 2.08 ▲0.44 | 43.70 ▲1.58 |
Dashboard /wp-admin | 2,192 ▲15 | 5.61 ▼0.01 | 89.61 ▼1.88 | 42.62 ▼2.41 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▼0.03 | 35.14 ▼2.93 | 33.90 ▼4.42 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 18.03 ▼5.12 | 658.06 ▲48.61 | 72.07 ▲22.64 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.14 ▼0.05 | 105.18 ▼4.47 | 42.71 ▼5.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/bp-user-profile-reviews/includes/templates/bupr-edit-review-form.php
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/bp-user-profile-reviews/admin/wbcom/templates/wbcom-support-page.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/bp-user-profile-reviews/admin/wbcom/templates/wbcom-license-page.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-user-profile-reviews/includes/widgets/member-rating.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-user-profile-reviews/includes/widgets/display-review.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/bp-user-profile-reviews/admin/wbcom/templates/wbcom-plugins-page.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/bp-user-profile-reviews/admin/class-bupr-admin-feedback.php:311
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bp-user-profile-reviews/includes/bupr-genral-functions.php:140
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Members Directory View), #2 (Members Single Profile View), #3 (Members Add a Review section), #4 (Plugin Settings)
bp-user-profile-reviews/buddypress-member-review.php 77% from 13 tests
This is the main PHP file of "Wbcom Designs - BuddyPress Member Reviews" version 2.9.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 355 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bp-user-profile-reviews.php" instead of "buddypress-member-review.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
No dangerous file extensions were detected14,647 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 522 | 980 | 4,969 |
CSS | 6 | 490 | 125 | 3,003 |
SVG | 1 | 0 | 0 | 2,671 |
JSON | 2 | 0 | 0 | 2,370 |
PO File | 1 | 249 | 290 | 765 |
JavaScript | 6 | 61 | 90 | 740 |
YAML | 1 | 1 | 0 | 121 |
XML | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 44.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 5.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 92 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 92 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 1.26MB with 0.59MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/wbcom/assets/imgs/logowbcom.png | 10.12KB | 3.87KB | ▼ 61.72% |
screenshot-1.png | 244.62KB | 65.13KB | ▼ 73.38% |
assets/images/star_half.png | 0.72KB | 0.81KB | 0.00% |
admin/wbcom/assets/imgs/bp_member_review.png | 12.17KB | 6.30KB | ▼ 48.24% |
admin/wbcom/assets/imgs/wbcom-offer-notice.png | 67.64KB | 32.40KB | ▼ 52.11% |