83% mycred-bp-group-leaderboards

Code Review | myCred BP Group Leaderboards

WordPress plugin myCred BP Group Leaderboards scored 83% from 54 tests.

About plugin

  • Plugin page: mycred-bp-group-l...
  • Plugin version: 1.2.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: WP 4.8-6.2.2
  • WordPress version: 6.3.1
  • First release: Dec 19, 2019
  • Latest release: Jun 27, 2023
  • Number of updates: 35
  • Update frequency: every 37.1 days
  • Top authors: wpexpertsio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 6,545 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.61ms] Passed 4 tests

A check of server-side resources used by myCred BP Group Leaderboards
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.55 ▼5.00
Dashboard /wp-admin3.31 ▲0.0143.25 ▼6.23
Posts /wp-admin/edit.php3.43 ▲0.0745.01 ▲0.59
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.85 ▼1.26
Media Library /wp-admin/upload.php3.24 ▲0.0133.83 ▼1.96

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by myCred BP Group Leaderboards
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.17 ▼1.391.53 ▼0.1642.19 ▼2.25
Dashboard /wp-admin2,209 ▲244.86 ▼1.04113.36 ▼24.7740.47 ▼16.57
Posts /wp-admin/edit.php2,089 ▲32.01 ▼0.0139.51 ▲2.2535.66 ▲0.75
Add New Post /wp-admin/post-new.php1,534 ▲2023.30 ▲5.84584.74 ▼111.1142.01 ▼11.98
Media Library /wp-admin/upload.php1,388 ▼04.20 ▲0.07102.25 ▼10.8846.50 ▲1.56

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/mycred-bp-group-leaderboards/mycred-bp-group-leaderboards.php:97

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% 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
These attributes need to be fixed: You can look at the official readme.txt

mycred-bp-group-leaderboards/mycred-bp-group-leaderboards.php 85% from 13 tests

The main file in "myCred BP Group Leaderboards" v. 1.2.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Requires at least: Periods and digits should be used for the required version number (ex. "7.0" instead of "WP 4.8")

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
Good job! No executable or dangerous file extensions detected901 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4319228778
PO File14950123

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity35.00
▷ Minimum class complexity29.00
▷ Maximum class complexity41.00
Average method complexity3.96
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods23
▷ Static methods14.35%
▷ Public methods2295.65%
▷ Protected methods00.00%
▷ Private methods14.35%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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
No PNG images were found in this plugin