84% gravity-forms-entries-inventory-management

Code Review | Gravity Forms Entries Inventory Management

WordPress plugin Gravity Forms Entries Inventory Management scored84%from 54 tests.

About plugin

  • Plugin page: gravity-forms-ent...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.4.2
  • WordPress version: 6.3.1
  • First release: Aug 7, 2015
  • Latest release: Mar 17, 2016
  • Number of updates: 13
  • Update frequency: every 17.9 days
  • Top authors: mariusvetrici (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /2,065 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Gravity Forms Entries Inventory Management
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.32 ▲4.10
Dashboard /wp-admin3.32 ▲0.0144.39 ▼3.15
Posts /wp-admin/edit.php3.37 ▲0.0141.77 ▼4.89
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.84 ▼6.56
Media Library /wp-admin/upload.php3.25 ▲0.0133.27 ▼4.60

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Gravity Forms Entries Inventory Management
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.271.62 ▲0.1043.26 ▲1.84
Dashboard /wp-admin2,192 ▲115.52 ▼0.1579.77 ▼21.8039.45 ▼2.25
Posts /wp-admin/edit.php2,100 ▼02.09 ▲0.1234.09 ▼1.1636.56 ▲1.80
Add New Post /wp-admin/post-new.php1,535 ▲918.24 ▼4.78608.49 ▼74.6277.78 ▲28.46
Media Library /wp-admin/upload.php1,394 ▼94.19 ▼0.0296.73 ▼3.4641.28 ▼4.31

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

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
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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/gravity-forms-entries-inventory-management/plugin.php:14

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 on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: gravity-forms, tickets, inventory management, entry limits, inventory

gravity-forms-entries-inventory-management/plugin.php 92% from 13 tests

The main PHP script in "Gravity Forms Entries Inventory Management" version 1.0.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gravity-forms-entries-inventory-management.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin66 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1244366

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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