93% gamipress-invite-anyone-integration

Code Review | GamiPress - Invite Anyone integration

WordPress plugin GamiPress - Invite Anyone integration scored 93% from 54 tests.

About plugin

  • Plugin page: gamipress-invite-...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9
  • WordPress version: 5.9.2
  • First release: Jul 4, 2019
  • Latest release: Feb 15, 2022
  • Number of updates: 10
  • Update frequency: every 95.7 days
  • Top authors: rubengc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active / 1,863 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼312.28ms] Passed 4 tests

Analyzing server-side resources used by GamiPress - Invite Anyone integration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0654.12 ▼1.23
Dashboard /wp-admin3.44 ▲0.0233.64 ▼54.30
Posts /wp-admin/edit.php3.67 ▲0.0261.36 ▲23.18
Add New Post /wp-admin/post-new.php6.91 ▼0.0794.07 ▼1,184.58
Media Library /wp-admin/upload.php3.32 ▲0.0223.98 ▼9.02

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for GamiPress - Invite Anyone integration
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,791 ▲4615.35 ▼0.675.76 ▼0.432.15 ▼0.27
Dashboard /wp-admin2,923 ▲696.11 ▼0.17126.36 ▼10.19158.99 ▼5.52
Posts /wp-admin/edit.php2,716 ▲323.25 ▼0.0269.80 ▼42.46153.74 ▼12.93
Add New Post /wp-admin/post-new.php1,709 ▲7018.26 ▼2.26421.78 ▼30.00161.00 ▼35.80
Media Library /wp-admin/upload.php1,723 ▲255.49 ▼0.04151.49 ▲4.74234.76 ▲46.91

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please 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 add_action() in wp-content/plugins/gamipress-invite-anyone-integration/gamipress-invite-anyone.php:226

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (15 tag instead of maximum 10)
The official readme.txt is a good inspiration

gamipress-invite-anyone-integration/gamipress-invite-anyone.php 85% from 13 tests

The primary PHP file in "GamiPress - Invite Anyone integration" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("gamipress-invite-anyone-integration.php" instead of "gamipress-invite-anyone.php")
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected229 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4103216229

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods9
▷ Static methods111.11%
▷ Public methods555.56%
▷ Protected methods00.00%
▷ Private methods444.44%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin