84% gamipress-lifterlms-group-leaderboard

Code Review | GamiPress - LifterLMS Group Leaderboard

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

About plugin

  • Plugin page: gamipress-lifterl...
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Jun 18, 2020
  • Latest release: Sep 20, 2023
  • Number of updates: 24
  • Update frequency: every 49.6 days
  • Top authors: rubengc (95.83%)dioni00 (8.33%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,662 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.00MB] [CPU: ▼9.34ms] Passed 4 tests

An overview of server-side resources used by GamiPress - LifterLMS Group Leaderboard
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.41 ▼3.24
Dashboard /wp-admin3.31 ▼0.0345.48 ▼18.11
Posts /wp-admin/edit.php3.36 ▲0.0145.95 ▼0.19
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.86 ▼15.38
Media Library /wp-admin/upload.php3.23 ▲0.0136.51 ▼0.64

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by GamiPress - LifterLMS Group Leaderboard
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7713.23 ▼1.062.07 ▲0.3443.77 ▲1.21
Dashboard /wp-admin2,229 ▲385.91 ▲1.03112.26 ▼0.2642.97 ▲5.24
Posts /wp-admin/edit.php2,112 ▲232.03 ▲0.0241.57 ▼5.0038.45 ▲2.39
Add New Post /wp-admin/post-new.php1,556 ▲2323.09 ▼0.09703.80 ▲72.9658.87 ▲0.84
Media Library /wp-admin/upload.php1,411 ▲264.24 ▲0.09100.96 ▼6.7644.20 ▼1.12

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

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

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
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-lifterlms-group-leaderboard/gamipress-lifterlms-group-leaderboard.php:256

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)
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 23 tag instead of maximum 10
Please take inspiration from this readme.txt

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

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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin562 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP7176297441
JavaScript2291373
CSS28248

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity3.11
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods9
▷ Static methods333.33%
▷ Public methods555.56%
▷ Protected methods00.00%
▷ Private methods444.44%
Functions18
▷ Named functions18100.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
There were not PNG files found in your plugin