94% gamipress-caldera-forms-integration

Code Review | GamiPress - Caldera Forms integration

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

About plugin

  • Plugin page: gamipress-caldera...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9
  • WordPress version: 5.9.2
  • First release: Feb 11, 2018
  • Latest release: Jan 24, 2022
  • Number of updates: 18
  • Update frequency: every 80.2 days
  • Top authors: rubengc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,187 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by GamiPress - Caldera Forms integration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.06161.24 ▲107.58
Dashboard /wp-admin3.43 ▲0.0343.32 ▲10.12
Posts /wp-admin/edit.php3.67 ▲0.0344.89 ▲5.24
Add New Post /wp-admin/post-new.php6.93 ▼0.0694.62 ▼1,163.28
Media Library /wp-admin/upload.php3.32 ▲0.0324.77 ▲1.01

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

GamiPress - Caldera Forms integration: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,791 ▲3816.22 ▲0.595.72 ▼0.482.21 ▼0.26
Dashboard /wp-admin2,923 ▲726.16 ▼0.02116.31 ▼30.45151.83 ▼8.42
Posts /wp-admin/edit.php2,719 ▲283.24 ▲0.2266.08 ▲2.10140.39 ▼3.87
Add New Post /wp-admin/post-new.php1,726 ▲5416.54 ▼5.53436.22 ▼0.63158.14 ▼4.02
Media Library /wp-admin/upload.php1,726 ▲285.52 ▼0.01145.68 ▼0.28182.55 ▼5.66

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
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
Good news, no errors were detected

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
Please fix the following items
  • 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-caldera-forms-integration/gamipress-caldera-forms.php:240

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (18 tag instead of maximum 10)
The official readme.txt might help

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

The main PHP script in "GamiPress - Caldera Forms integration" version 1.0.5 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gamipress-caldera-forms-integration.php" instead of "gamipress-caldera-forms.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin381 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP7130311324
JavaScript217457

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.53
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin