94% gamipress-elementor-forms-integration

Code Review | GamiPress - Elementor integration

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

About plugin

  • Plugin page: gamipress-element...
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9
  • WordPress version: 5.9.2
  • First release: Nov 13, 2020
  • Latest release: Jan 24, 2022
  • Number of updates: 13
  • Update frequency: every 33.6 days
  • Top authors: rubengc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active / 6,013 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.01MB] [CPU: ▼298.47ms] Passed 4 tests

Analyzing server-side resources used by GamiPress - Elementor integration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.4183.62 ▲54.61
Dashboard /wp-admin3.41 ▲0.0135.36 ▲1.59
Posts /wp-admin/edit.php3.65 ▲0.0139.77 ▼47.37
Add New Post /wp-admin/post-new.php6.89 ▼0.08154.13 ▼1,146.96
Media Library /wp-admin/upload.php3.30 ▲0.0127.03 ▼1.12

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by GamiPress - Elementor integration
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,809 ▲5515.85 ▲0.1714.47 ▲7.092.85 ▲0.22
Dashboard /wp-admin2,903 ▲456.13 ▼0.02127.19 ▼21.38154.91 ▼13.64
Posts /wp-admin/edit.php2,719 ▲313.25 ▲0.0165.37 ▲2.10145.34 ▲0.40
Add New Post /wp-admin/post-new.php1,726 ▲1521.17 ▲0.54479.21 ▲17.02188.79 ▲30.10
Media Library /wp-admin/upload.php1,729 ▲345.52 ▲0.02145.92 ▲0.07234.73 ▲40.56

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
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)
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
The following issues need your attention
  • 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-elementor-forms-integration/gamipress-elementor-forms.php:225

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 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 to be fixed:
  • Tags: There are too many tags (16 tag instead of maximum 10)
You can look at the official readme.txt

gamipress-elementor-forms-integration/gamipress-elementor-forms.php 92% from 13 tests

The main file in "GamiPress - Elementor integration" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("gamipress-elementor-forms-integration.php" instead of "gamipress-elementor-forms.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin496 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP8175402413
JavaScript215457
CSS25026

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.58
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%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin