84% custom-tabindex-gravity-forms-add-on

Code Review | Gravity Forms - Tab Index

WordPress plugin Gravity Forms - Tab Index scored84%from 54 tests.

About plugin

  • Plugin page: custom-tabindex-g...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.0
  • WordPress version: 6.3.1
  • First release: Mar 15, 2013
  • Latest release: Dec 2, 2014
  • Number of updates: 7
  • Update frequency: every 89.6 days
  • Top authors: bap22 (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

300+ active /4,306 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Gravity Forms - Tab Index
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0131.84 ▼3.43
Dashboard /wp-admin3.31 ▲0.0144.09 ▼2.26
Posts /wp-admin/edit.php3.36 ▲0.0139.13 ▼9.09
Add New Post /wp-admin/post-new.php5.89 ▲0.0173.12 ▼13.58
Media Library /wp-admin/upload.php3.23 ▲0.0136.98 ▲0.91

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Gravity Forms - Tab Index
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.69 ▲0.161.55 ▼0.0535.80 ▼5.17
Dashboard /wp-admin2,195 ▲185.62 ▲0.0494.53 ▲8.2241.85 ▲1.38
Posts /wp-admin/edit.php2,097 ▼32.01 ▲0.0033.59 ▼3.2831.27 ▼6.39
Add New Post /wp-admin/post-new.php1,526 ▼223.08 ▼0.09656.73 ▼16.7847.32 ▼15.09
Media Library /wp-admin/upload.php1,403 ▲34.17 ▼0.0494.98 ▼3.8241.74 ▼1.86

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

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)
The smoke test was a success, however most plugin functionality was not tested

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
  • 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/custom-tabindex-gravity-forms-add-on/gravityforms-tabindex.php:27

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, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: debug, profile, dev, debugger, toolbar...

custom-tabindex-gravity-forms-add-on/gravityforms-tabindex.php 92% from 13 tests

This is the main PHP file of "Gravity Forms - Tab Index" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("custom-tabindex-gravity-forms-add-on.php" instead of "gravityforms-tabindex.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected45 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1143743
JavaScript1102

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin