84% tooltips-for-gravity-forms-free

Code Review | Easy Gravity Tooltip

WordPress plugin Easy Gravity Tooltip scored84%from 54 tests.

About plugin

  • Plugin page: tooltips-for-grav...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.2
  • WordPress version: 6.3.1
  • First release: Feb 27, 2021
  • Latest release: May 21, 2023
  • Number of updates: 7
  • Update frequency: every 116.3 days
  • Top authors: aminnz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,141 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Analyzing server-side resources used by Easy Gravity Tooltip
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.78 ▼2.26
Dashboard /wp-admin3.34 ▲0.0352.05 ▲2.19
Posts /wp-admin/edit.php3.46 ▲0.1054.39 ▲1.12
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.94 ▼16.06
Media Library /wp-admin/upload.php3.24 ▲0.0132.68 ▼3.71

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Easy Gravity Tooltip
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,939 ▲16814.83 ▲0.471.73 ▼0.3838.87 ▼5.31
Dashboard /wp-admin2,348 ▲1636.44 ▲1.51132.70 ▲21.9539.93 ▼11.67
Posts /wp-admin/edit.php2,254 ▲1653.36 ▲1.3555.47 ▲21.4735.62 ▲2.12
Add New Post /wp-admin/post-new.php1,530 ▲822.97 ▼0.21634.92 ▼60.3236.28 ▼19.90
Media Library /wp-admin/upload.php1,387 ▼14.05 ▼0.1383.02 ▼22.2941.78 ▼2.87

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/tooltips-for-gravity-forms-free/index.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'GFForms' not found in wp-content/plugins/tooltips-for-gravity-forms-free/admin/class-gfeasytooltip.php:3

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: gravity forms tooltip, gravityforms, tooltip

tooltips-for-gravity-forms-free/index.php 85% from 13 tests

The main PHP script in "Easy Gravity Tooltip" version 1.1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("tooltips-for-gravity-forms-free.php" instead of "index.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin1,106 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP213799644
CSS2220394
SVG20149
JavaScript20019

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity23.50
▷ Minimum class complexity2.00
▷ Maximum class complexity45.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods29.52%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin