94% gamipress-formidable-forms-integration

Code Review | GamiPress - Formidable Forms integration

WordPress plugin GamiPress - Formidable Forms integration scored 94% from 53 tests.

About plugin

  • Plugin page: gamipress-formida...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.8
  • WordPress version: 5.8.1
  • First release: Feb 10, 2018
  • Latest release: Sep 7, 2021
  • Number of updates: 19
  • Update frequency: every 68.7 days
  • Top authors: rubengc (100%)

Code review

53 tests

User reviews

1 review

Install metrics

100+ active / 1,809 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

A check of server-side resources used by GamiPress - Formidable Forms integration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1432.59 ▲12.41
Dashboard /wp-admin3.08 ▲0.0350.32 ▲12.60
Posts /wp-admin/edit.php3.13 ▲0.0342.54 ▼0.78
Add New Post /wp-admin/post-new.php5.44 ▲0.0296.16 ▼1,124.68
Media Library /wp-admin/upload.php3.02 ▲0.0230.42 ▼3.16

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for GamiPress - Formidable Forms integration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,700 ▲11815.82 ▲0.019.57 ▲2.1844.38 ▼3.64
Dashboard /wp-admin2,978 ▲1256.03 ▲0.17132.40 ▲1.8798.27 ▼5.50
Posts /wp-admin/edit.php2,732 ▲262.83 ▲0.1566.70 ▼1.4390.65 ▼4.36
Add New Post /wp-admin/post-new.php1,868 ▲1519.17 ▲0.03383.35 ▲4.16106.89 ▲2.60
Media Library /wp-admin/upload.php1,801 ▲295.02 ▲0.00141.44 ▼6.69114.89 ▼1.42

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 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-formidable-forms-integration/gamipress-formidable-forms.php:233

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: You are using too many tags: 17 tag instead of maximum 10
The official readme.txt might help

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

The main file in "GamiPress - Formidable Forms integration" v. 1.0.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("gamipress-formidable-forms-integration.php" instead of "gamipress-formidable-forms.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected427 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP8173417391
JavaScript212436

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
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%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin