78% mycred-buddyboss

Code Review | myCred - BuddyBoss Integration

WordPress plugin myCred - BuddyBoss Integration scored78%from 54 tests.

About plugin

  • Plugin page: mycred-buddyboss
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: WP 4.8-6.3.2
  • WordPress version: 6.3.1
  • First release: Jul 15, 2021
  • Latest release: Nov 7, 2023
  • Number of updates: 24
  • Update frequency: every 35.3 days
  • Top authors: wpexpertsio (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /2,522 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼7.41ms] Passed 4 tests

A check of server-side resources used by myCred - BuddyBoss Integration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.70 ▼2.79
Dashboard /wp-admin3.37 ▲0.0252.20 ▼12.53
Posts /wp-admin/edit.php3.42 ▲0.0650.50 ▲2.45
Add New Post /wp-admin/post-new.php5.95 ▲0.0686.71 ▼13.21
Media Library /wp-admin/upload.php3.29 ▲0.0632.88 ▼1.11

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for myCred - BuddyBoss Integration
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.36 ▲0.011.80 ▼0.0643.98 ▼4.12
Dashboard /wp-admin2,198 ▲185.62 ▼0.0493.09 ▲4.6041.26 ▲2.38
Posts /wp-admin/edit.php2,103 ▲31.98 ▼0.0439.84 ▼5.0336.45 ▲1.65
Add New Post /wp-admin/post-new.php1,526 ▼523.63 ▲0.41616.48 ▲18.4052.29 ▲9.03
Media Library /wp-admin/upload.php1,400 ▲34.17 ▼0.0198.59 ▼5.5443.58 ▼0.28

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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 output text when accessed directly:
    • > /wp-content/plugins/mycred-buddyboss/includes/index.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mycred-buddyboss/mycred-buddyboss.php:112

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% 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
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (The hook provides multiple event scenarios associated with the BuddyBoss Profiles. The events that can be set to Award points for include,Change Profile Avatar,Change Cover Image,Profile Update, Minimum Percent Profile,User Account activation,User Assigned Specific Profile type.) image missing
You can take inspiration from this readme.txt

mycred-buddyboss/mycred-buddyboss.php 85% from 13 tests

The primary PHP file in "myCred - BuddyBoss Integration" version 1.0.4 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Requires at least: Periods and digits should be used for the required version number (ex. "7.0" instead of "WP 4.8")
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin4,888 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP132,0408204,441
CSS4840249
JavaScript3901198

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity86.80
▷ Minimum class complexity7.00
▷ Maximum class complexity163.00
Average method complexity6.92
▷ Minimum method complexity1.00
▷ Maximum method complexity65.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes110.00%
Methods145
▷ Static methods21.38%
▷ Public methods14197.24%
▷ Protected methods10.69%
▷ Private methods32.07%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin