93% transactium-gravity-forms-addon

Code Review | Transactium Gravity Forms AddOn

WordPress plugin Transactium Gravity Forms AddOn scored 93% from 54 tests.

About plugin

  • Plugin page: transactium-gravi...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.8
  • WordPress version: 5.8.1
  • First release: Apr 7, 2017
  • Latest release: Aug 23, 2021
  • Number of updates: 17
  • Update frequency: every 94.1 days
  • Top authors: transactiumdev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 633 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by Transactium Gravity Forms AddOn
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0129.05 ▲3.83
Dashboard /wp-admin3.06 ▼0.0034.01 ▼6.26
Posts /wp-admin/edit.php3.12 ▲0.0135.84 ▲2.72
Add New Post /wp-admin/post-new.php5.43 ▼0.0171.72 ▼599.38
Media Library /wp-admin/upload.php3.01 ▲0.0024.07 ▼1.07

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Transactium Gravity Forms AddOn
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,666 ▲6515.66 ▲0.264.99 ▼4.7876.35 ▲0.82
Dashboard /wp-admin2,930 ▲376.10 ▼0.06112.68 ▼17.73167.74 ▼9.23
Posts /wp-admin/edit.php2,740 ▼33.36 ▲0.1261.78 ▲0.75137.07 ▼0.17
Add New Post /wp-admin/post-new.php3,728 ▼1518.41 ▼0.84404.06 ▼41.78154.33 ▼16.34
Media Library /wp-admin/upload.php1,749 ▼35.49 ▲0.00158.62 ▲19.36194.55 ▲10.76

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
The plugin uninstalled successfully, without leaving any 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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'GFForms' not found in wp-content/plugins/transactium-gravity-forms-addon/class-transactium-gf-addon.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/transactium-gravity-forms-addon/transactium.php:24

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention: You can take inspiration from this readme.txt

transactium-gravity-forms-addon/transactium.php 92% from 13 tests

The main file in "Transactium Gravity Forms AddOn" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("transactium-gravity-forms-addon.php" instead of "transactium.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected593 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP315667593

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity31.67
▷ Minimum class complexity2.00
▷ Maximum class complexity61.00
Average method complexity4.83
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods24
▷ Static methods1250.00%
▷ Public methods2187.50%
▷ Protected methods00.00%
▷ Private methods312.50%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin