83% inventive-gravity-forms-tooltips

Code Review | Inventive gravity forms tooltip

WordPress plugin Inventive gravity forms tooltip scored83%from 54 tests.

About plugin

  • Plugin page: inventive-gravity...
  • Plugin version: 0.27
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4
  • WordPress version: 6.3.1
  • First release: Jun 6, 2015
  • Latest release: Jan 12, 2016
  • Number of updates: 27
  • Update frequency: every 9.2 days
  • Top authors: inventive3d (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,960 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.01MB] [CPU: ▼6.55ms] Passed 4 tests

Analyzing server-side resources used by Inventive gravity forms tooltip
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.96 ▼6.22
Dashboard /wp-admin3.32 ▲0.0140.94 ▼10.86
Posts /wp-admin/edit.php3.37 ▲0.0146.50 ▼0.49
Add New Post /wp-admin/post-new.php5.90 ▲0.0176.91 ▼8.63
Media Library /wp-admin/upload.php3.24 ▲0.0133.10 ▲1.28

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Inventive gravity forms tooltip
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.33 ▼0.022.08 ▲0.3436.79 ▼7.72
Dashboard /wp-admin2,197 ▲235.60 ▼0.05100.85 ▲2.0941.45 ▼7.33
Posts /wp-admin/edit.php2,102 ▲52.02 ▼0.0138.69 ▲1.6335.99 ▲0.60
Add New Post /wp-admin/post-new.php1,531 ▲123.20 ▲0.52665.74 ▼19.6852.85 ▲2.02
Media Library /wp-admin/upload.php1,405 ▲84.24 ▲0.0497.58 ▼5.4840.33 ▼3.12

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 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/inventive-gravity-forms-tooltips/inventive-gravity-forms-tooltip.php:40

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 86% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Screenshots: Add an image for screenshot #1 (This is the result activating the plugin.)
You can look at the official readme.txt

inventive-gravity-forms-tooltips/inventive-gravity-forms-tooltip.php 77% from 13 tests

The principal PHP file in "Inventive gravity forms tooltip" v. 0.27 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("inventive-gravity-forms-tooltips.php" instead of "inventive-gravity-forms-tooltip.php")
  • Requires at least: The required version number did not match the one declared in readme.txt ("3.1" instead of "4.0")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin120 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS1141455
JavaScript123245
PHP1152520

PHP code Passed 2 tests

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

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin