Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.40ms] Passed 4 tests
An overview of server-side resources used by Wbcom Designs - BuddyPress Group Reviews
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 43.30 ▲0.92 |
Dashboard /wp-admin | 3.31 ▼0.04 | 49.22 ▼16.16 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.07 ▼5.13 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.81 ▼10.28 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.08 ▼2.02 |
Server storage [IO: ▲4.58MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 93 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Wbcom Designs - BuddyPress Group Reviews
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 14.72 ▲0.36 | 2.47 ▲0.37 | 43.27 ▼0.09 |
Dashboard /wp-admin | 2,198 ▲18 | 5.60 ▼0.11 | 89.23 ▼0.42 | 40.38 ▼3.85 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.98 ▼0.01 | 35.61 ▼3.45 | 33.61 ▲1.89 |
Add New Post /wp-admin/post-new.php | 1,535 ▼0 | 18.37 ▲0.31 | 592.83 ▼32.53 | 67.48 ▲0.23 |
Media Library /wp-admin/upload.php | 1,397 ▲3 | 4.19 ▼0.00 | 100.12 ▼6.97 | 41.59 ▼5.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
Almost there! Just fix the following items
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/review-buddypress-groups/admin/bgr-admin-feedback.php:311
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/review-buddypress-groups/includes/widgets/group-rating.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/review-buddypress-groups/admin/wbcom/templates/wbcom-support-page.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/review-buddypress-groups/includes/widgets/bgr-review.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/review-buddypress-groups/admin/wbcom/templates/wbcom-plugins-page.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/review-buddypress-groups/includes/bgr-activity.php:65
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/review-buddypress-groups/admin/wbcom/templates/wbcom-license-page.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/review-buddypress-groups/includes/bgr-globals.php:163
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Reviews at group directory.(png|jpg|jpeg|gif).), #2 (Review at single group.(png|jpg|jpeg|gif).), #3 (Add review at single group.(png|jpg|jpeg|gif).), #4 (Plugin settings.(png|jpg|jpeg|gif).)
review-buddypress-groups/review-bp-grps.php 77% from 13 tests
The principal PHP file in "Wbcom Designs - BuddyPress Group Reviews" v. 2.9.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: Please keep the plugin description shorter than 140 characters (currently 205 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("review-buddypress-groups.php" instead of "review-bp-grps.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin13,307 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 401 | 1,223 | 4,383 |
SVG | 1 | 0 | 0 | 2,671 |
CSS | 6 | 446 | 127 | 2,544 |
JSON | 2 | 0 | 0 | 2,380 |
PO File | 1 | 245 | 381 | 667 |
JavaScript | 7 | 42 | 38 | 646 |
XML | 1 | 1 | 0 | 16 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 29.62 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 120.00 |
Average method complexity | 4.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 96 | |
▷ Static methods | 1 | 1.04% |
▷ Public methods | 95 | 98.96% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.04% |
Functions | 24 | |
▷ Named functions | 24 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
14 PNG files occupy 1.47MB with 0.45MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 414.49KB | 121.73KB | ▼ 70.63% |
assets/images/star_half.png | 0.72KB | 0.81KB | 0.00% |
assets/images/star_off.png | 0.49KB | 0.45KB | ▼ 7.40% |
screenshot-1.png | 514.33KB | 134.98KB | ▼ 73.76% |
assets/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |