83% review-buddypress-groups

Code Review | Wbcom Designs - BuddyPress Group Reviews

WordPress plugin Wbcom Designs - BuddyPress Group Reviews scored83%from 54 tests.

About plugin

  • Plugin page: review-buddypress...
  • Plugin version: 2.9.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3.0
  • WordPress version: 6.3.1
  • First release: Jun 15, 2017
  • Latest release: Aug 17, 2023
  • Number of updates: 35
  • Update frequency: every 64.4 days
  • Top authors: wbcomdesigns (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /14,355 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.30 ▲0.92
Dashboard /wp-admin3.31 ▼0.0449.22 ▼16.16
Posts /wp-admin/edit.php3.36 ▲0.0047.07 ▼5.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.81 ▼10.28
Media Library /wp-admin/upload.php3.23 ▲0.0036.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.72 ▲0.362.47 ▲0.3743.27 ▼0.09
Dashboard /wp-admin2,198 ▲185.60 ▼0.1189.23 ▼0.4240.38 ▼3.85
Posts /wp-admin/edit.php2,097 ▼31.98 ▼0.0135.61 ▼3.4533.61 ▲1.89
Add New Post /wp-admin/post-new.php1,535 ▼018.37 ▲0.31592.83 ▼32.5367.48 ▲0.23
Media Library /wp-admin/upload.php1,397 ▲34.19 ▼0.00100.12 ▼6.9741.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

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).)
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP244011,2234,383
SVG1002,671
CSS64461272,544
JSON2002,380
PO File1245381667
JavaScript74238646
XML11016

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 code0.28
Average class complexity29.62
▷ Minimum class complexity7.00
▷ Maximum class complexity120.00
Average method complexity4.88
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods96
▷ Static methods11.04%
▷ Public methods9598.96%
▷ Protected methods00.00%
▷ Private methods11.04%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
screenshot-3.png414.49KB121.73KB▼ 70.63%
assets/images/star_half.png0.72KB0.81KB0.00%
assets/images/star_off.png0.49KB0.45KB▼ 7.40%
screenshot-1.png514.33KB134.98KB▼ 73.76%
assets/images/sort_both.png0.20KB0.29KB0.00%