10% gameball

Code Review | Gameball

WordPress plugin Gameball scored10%from 54 tests.

About plugin

  • Plugin page: gameball
  • Plugin version: 1.43.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5
  • WordPress version: 6.3.1
  • First release: Dec 21, 2019
  • Latest release: Feb 17, 2022
  • Number of updates: 52
  • Update frequency: every 15.2 days
  • Top authors: gameball (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /4,438 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • The plugin did not install without errors
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'Gameball' does not have a method 'activate'

Server metrics [RAM: ▼1.03MB] [CPU: ▲174.32ms] Passed 4 tests

Analyzing server-side resources used by Gameball
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.94 ▼0.52213.28 ▲170.39
Dashboard /wp-admin2.98 ▼0.32218.81 ▲169.09
Posts /wp-admin/edit.php2.98 ▼0.38245.69 ▲195.24
Add New Post /wp-admin/post-new.php2.98 ▼2.91257.20 ▲162.54
Media Library /wp-admin/upload.php2.98 ▼0.25278.70 ▲243.15

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Gameball
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,979 ▲24414.55 ▲0.1722.22 ▲20.4436.75 ▼13.10
Dashboard /wp-admin2,220 ▲314.87 ▼1.0497.67 ▼14.3278.44 ▲36.14
Posts /wp-admin/edit.php2,100 ▲82.02 ▼0.0138.65 ▼2.5535.66 ▼0.37
Add New Post /wp-admin/post-new.php1,677 ▲13920.24 ▲1.88704.81 ▲90.3363.22 ▲13.87
Media Library /wp-admin/upload.php1,396 ▲84.13 ▼0.09108.30 ▲13.7278.30 ▲36.15

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/gameball/Gameball.php+695
    Undefined property: stdClass::$response
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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_filter() in wp-content/plugins/gameball/Gameball.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: gamificaton, payment, points, segmenting, badges...

gameball/Gameball.php 85% from 13 tests

This is the main PHP file of "Gameball" version 1.43.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gameball.php" instead of "Gameball.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 241 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,021 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12561131,021

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity8.50
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions29
▷ Named functions2793.10%
▷ Anonymous functions26.90%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin