84% gamipress-buddypress-group-leaderboard

Code Review | GamiPress - BuddyPress Group Leaderboard

WordPress plugin GamiPress - BuddyPress Group Leaderboard scored84%from 54 tests.

About plugin

  • Plugin page: gamipress-buddypr...
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: May 3, 2018
  • Latest release: Sep 4, 2023
  • Number of updates: 34
  • Update frequency: every 57.4 days
  • Top authors: rubengc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /13,265 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

An overview of server-side resources used by GamiPress - BuddyPress Group Leaderboard
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.44 ▲1.81
Dashboard /wp-admin3.31 ▲0.0143.64 ▼4.90
Posts /wp-admin/edit.php3.36 ▲0.0146.20 ▼3.57
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.53 ▼17.62
Media Library /wp-admin/upload.php3.23 ▲0.0134.09 ▼1.08

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

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

Browser metrics Passed 4 tests

GamiPress - BuddyPress Group Leaderboard: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7713.25 ▼1.131.75 ▼0.5141.46 ▼0.25
Dashboard /wp-admin2,229 ▲444.85 ▼0.97112.80 ▲8.7441.34 ▲0.81
Posts /wp-admin/edit.php2,112 ▲232.06 ▲0.0641.12 ▼0.1036.36 ▼3.77
Add New Post /wp-admin/post-new.php1,551 ▲1823.26 ▲0.10682.95 ▲81.0252.39 ▼2.86
Media Library /wp-admin/upload.php1,408 ▲174.17 ▼0.0596.98 ▼0.3741.58 ▼0.07

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

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
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gamipress-buddypress-group-leaderboard/gamipress-buddypress-group-leaderboard.php:271

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 23 tag instead of maximum 10
The official readme.txt might help

gamipress-buddypress-group-leaderboard/gamipress-buddypress-group-leaderboard.php Passed 13 tests

The primary PHP file in "GamiPress - BuddyPress Group Leaderboard" version 1.1.4 is used by WordPress to initiate all plugin functionality
101 characters long description:
Add a completely configurable tab on BuddyPress groups with a GamiPress leaderboard of group members.

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 plugin597 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP8194324476
JavaScript2291373
CSS28248

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity13.50
▷ Minimum class complexity5.00
▷ Maximum class complexity22.00
Average method complexity2.79
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods14
▷ Static methods321.43%
▷ Public methods964.29%
▷ Protected methods00.00%
▷ Private methods535.71%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
PNG images were not found in this plugin