84% gamipress-peepso-group-leaderboard

Code Review | GamiPress - PeepSo Group Leaderboard

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

About plugin

  • Plugin page: gamipress-peepso-...
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Dec 17, 2018
  • Latest release: Sep 4, 2023
  • Number of updates: 29
  • Update frequency: every 59.5 days
  • Top authors: rubengc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,098 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.13ms] Passed 4 tests

A check of server-side resources used by GamiPress - PeepSo Group Leaderboard
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.86 ▲3.99
Dashboard /wp-admin3.33 ▲0.0346.80 ▼1.41
Posts /wp-admin/edit.php3.39 ▲0.0352.17 ▲5.81
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.26 ▼20.03
Media Library /wp-admin/upload.php3.26 ▲0.0337.95 ▼3.05

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

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

Browser metrics Passed 4 tests

A check of browser resources used by GamiPress - PeepSo Group Leaderboard
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.26 ▼0.111.70 ▲0.0647.55 ▲8.36
Dashboard /wp-admin2,221 ▲445.64 ▲0.0682.53 ▼2.1840.54 ▼3.60
Posts /wp-admin/edit.php2,130 ▲302.01 ▼0.0139.07 ▲0.3836.64 ▲4.54
Add New Post /wp-admin/post-new.php1,550 ▲2223.45 ▲0.16671.68 ▼15.6358.33 ▲5.95
Media Library /wp-admin/upload.php1,426 ▲264.11 ▼0.09106.26 ▲7.5944.37 ▼2.53

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gamipress-peepso-group-leaderboard/gamipress-peepso-group-leaderboard.php:263

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues 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
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 21 tag instead of maximum 10
You can look at the official readme.txt

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

"GamiPress - PeepSo Group Leaderboard" version 1.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
97 characters long description:
Add a completely configurable tab on PeepSo 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
Good job! No executable or dangerous file extensions detected565 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP7169268444
JavaScript2291373
CSS28248

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity3.22
▷ Minimum method complexity1.00
▷ Maximum method complexity12.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%
Functions17
▷ Named functions17100.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