94% gamipress-forminator-integration

Code Review | GamiPress - Forminator integration

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

About plugin

  • Plugin page: gamipress-formina...
  • Plugin version: 1.0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9
  • WordPress version: 5.9.2
  • First release: Nov 6, 2018
  • Latest release: Jan 24, 2022
  • Number of updates: 20
  • Update frequency: every 58.8 days
  • Top authors: rubengc (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active / 5,243 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼292.82ms] Passed 4 tests

This is a short check of server-side resources used by GamiPress - Forminator integration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0157.38 ▲5.69
Dashboard /wp-admin3.41 ▲0.0133.42 ▼0.44
Posts /wp-admin/edit.php3.65 ▲0.0138.21 ▼0.15
Add New Post /wp-admin/post-new.php6.89 ▼0.0897.38 ▼1,162.48
Media Library /wp-admin/upload.php3.30 ▼0.0024.39 ▼8.19

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for GamiPress - Forminator integration
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,791 ▲3715.88 ▲0.115.98 ▲0.352.73 ▲0.00
Dashboard /wp-admin2,920 ▲596.18 ▲0.04120.32 ▼14.54159.07 ▼8.15
Posts /wp-admin/edit.php2,716 ▲283.25 ▲0.0161.74 ▼3.73140.68 ▼10.99
Add New Post /wp-admin/post-new.php1,680 ▼3116.40 ▼4.39421.62 ▼46.57161.04 ▼3.55
Media Library /wp-admin/upload.php1,720 ▲195.57 ▲0.04139.14 ▼1.95200.22 ▲14.69

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
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
Even though everything seems fine, this is not 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 take a closer look at the following
  • 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-forminator-integration/gamipress-forminator-integration.php:223

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (17 tag instead of maximum 10)
Please take inspiration from this readme.txt

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

The main file in "GamiPress - Forminator integration" v. 1.0.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
34 characters long description:
Connect GamiPress with Forminator.

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
Success! There were no dangerous files found in this plugin571 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP7210523522
JavaScript213449

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.69
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity7.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%
Functions27
▷ Named functions27100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected