94% gamipress-wp-simple-pay-integration

Code Review | GamiPress - WP Simple Pay integration

WordPress plugin GamiPress - WP Simple Pay integration scored 94% from 54 tests.

About plugin

  • Plugin page: gamipress-wp-simp...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9
  • WordPress version: 5.9.2
  • First release: Aug 20, 2020
  • Latest release: Jan 24, 2022
  • Number of updates: 7
  • Update frequency: every 74.6 days
  • Top authors: rubengc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 382 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by GamiPress - WP Simple Pay integration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0555.28 ▲5.54
Dashboard /wp-admin3.43 ▲0.0233.89 ▼0.04
Posts /wp-admin/edit.php3.66 ▲0.0239.20 ▲1.78
Add New Post /wp-admin/post-new.php6.90 ▼0.0698.36 ▼1,153.18
Media Library /wp-admin/upload.php3.31 ▲0.0125.30 ▼2.96

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

A short overview of filesystem and database impact
This plugin was 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 - WP Simple Pay integration
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,812 ▲5816.00 ▲0.306.26 ▼0.672.81 ▲0.38
Dashboard /wp-admin2,920 ▲626.12 ▼0.09116.47 ▼18.55154.91 ▼5.50
Posts /wp-admin/edit.php2,719 ▲283.25 ▲0.0168.65 ▲4.00142.08 ▼2.84
Add New Post /wp-admin/post-new.php1,767 ▲10621.53 ▲4.65445.74 ▲19.86159.66 ▲3.89
Media Library /wp-admin/upload.php1,726 ▲285.54 ▲0.09148.41 ▲12.95188.44 ▼1.23

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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× 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-wp-simple-pay-integration/gamipress-wp-simple-pay.php:196

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
The official readme.txt is a good inspiration

gamipress-wp-simple-pay-integration/gamipress-wp-simple-pay.php 92% from 13 tests

This is the main PHP file of "GamiPress - WP Simple Pay integration" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gamipress-wp-simple-pay-integration.php" instead of "gamipress-wp-simple-pay.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected194 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP490204194

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods7
▷ Static methods114.29%
▷ Public methods342.86%
▷ Protected methods00.00%
▷ Private methods457.14%
Functions11
▷ Named functions11100.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 files were detected