10% gamipress-buddyboss-integration

Code Review | GamiPress - BuddyBoss integration

WordPress plugin GamiPress - BuddyBoss integration scored 10% from 54 tests.

About plugin

  • Plugin page: gamipress-buddybo...
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9
  • WordPress version: 5.9.2
  • First release: Jun 27, 2020
  • Latest release: Mar 8, 2022
  • Number of updates: 31
  • Update frequency: every 20.0 days
  • Top authors: rubengc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active / 37,960 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • Install procedure had errors
    • > Error in wp-content/plugins/gamipress-buddyboss-integration/gamipress-buddyboss.php+123
    Uncaught Error: Call to undefined function gamipress_is_network_wide_active() in wp-content/plugins/gamipress-buddyboss-integration/gamipress-buddyboss.php:123
    Stack trace:
    #0 wp-includes/class-wp-hook.php(307): GamiPress_BuddyBoss::activate()
    #1 wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(474): WP_Hook->do_action()
    #3 wp-admin/includes/plugin.php(689): do_action()

Server metrics [RAM: ▼0.02MB] [CPU: ▼288.55ms] Passed 4 tests

A check of server-side resources used by GamiPress - BuddyBoss integration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0161.17 ▲5.57
Dashboard /wp-admin3.41 ▲0.0038.49 ▲4.94
Posts /wp-admin/edit.php3.65 ▲0.0041.72 ▲5.30
Add New Post /wp-admin/post-new.php6.88 ▼0.09147.12 ▼1,157.34
Media Library /wp-admin/upload.php3.30 ▲0.0023.66 ▼7.08

Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 41 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by GamiPress - BuddyBoss integration
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4715.77 ▲0.516.22 ▲0.272.85 ▲0.48
Dashboard /wp-admin2,895 ▲346.10 ▼0.05118.36 ▼54.58172.11 ▼0.41
Posts /wp-admin/edit.php2,694 ▲63.24 ▲0.0063.65 ▼2.92142.70 ▼70.26
Add New Post /wp-admin/post-new.php1,661 ▼017.77 ▲0.48412.38 ▼20.79157.53 ▼8.65
Media Library /wp-admin/upload.php1,701 ▲35.51 ▼0.02144.33 ▼1.40195.99 ▼1.02

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gamipress-buddyboss-integration/gamipress-buddyboss.php:298

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Tags: Too many tags (26 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

gamipress-buddyboss-integration/gamipress-buddyboss.php 92% from 13 tests

The principal PHP file in "GamiPress - BuddyBoss integration" v. 1.2.4 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("gamipress-buddyboss-integration.php" instead of "gamipress-buddyboss.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected3,827 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
PHP271,4151,7993,630
CSS4131128
JavaScript828869

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity14.25
▷ Minimum class complexity6.00
▷ Maximum class complexity35.00
Average method complexity3.52
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods21
▷ Static methods314.29%
▷ Public methods1780.95%
▷ Protected methods00.00%
▷ Private methods419.05%
Functions160
▷ Named functions160100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants12100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin