94% gamipress-give-integration

Code Review | GamiPress - Give integration

WordPress plugin GamiPress - Give integration scored 94% from 54 tests.

About plugin

  • Plugin page: gamipress-give-in...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.8
  • WordPress version: 5.8.1
  • First release: May 10, 2018
  • Latest release: Aug 4, 2021
  • Number of updates: 12
  • Update frequency: every 98.5 days
  • Top authors: rubengc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 1,227 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼144.07ms] Passed 4 tests

This is a short check of server-side resources used by GamiPress - Give integration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0333.33 ▼0.52
Dashboard /wp-admin3.08 ▲0.0344.03 ▼2.58
Posts /wp-admin/edit.php3.14 ▲0.0243.65 ▼6.12
Add New Post /wp-admin/post-new.php5.44 ▲0.0189.03 ▼558.13
Media Library /wp-admin/upload.php3.03 ▲0.0230.98 ▼9.43

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for GamiPress - Give integration
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,741 ▲10415.89 ▲0.028.52 ▼2.7245.42 ▼0.41
Dashboard /wp-admin2,998 ▲675.96 ▼0.06163.32 ▲12.23107.80 ▼6.12
Posts /wp-admin/edit.php2,770 ▲312.72 ▲0.0269.43 ▼18.5189.76 ▲5.18
Add New Post /wp-admin/post-new.php1,687 ▲418.82 ▲0.07395.81 ▼2.48106.11 ▲0.06
Media Library /wp-admin/upload.php1,836 ▲265.03 ▼0.00160.98 ▲2.63115.01 ▼3.45

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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-give-integration/gamipress-give-integration.php:240

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 17 tag instead of maximum 10
You can take inspiration from this readme.txt

gamipress-give-integration/gamipress-give-integration.php Passed 13 tests

The principal PHP file in "GamiPress - Give integration" v. 1.0.0 is loaded by WordPress automatically on each request
28 characters long description:
Connect GamiPress with Give.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected270 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP7115296244
JavaScript212426

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity2.78
▷ 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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG images were found in this plugin