83% gravity-forms-sticky-form

Code Review | Gravity Forms Sticky Form

WordPress plugin Gravity Forms Sticky Form scored83%from 54 tests.

About plugin

  • Plugin page: gravity-forms-sti...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.2-4.3
  • WordPress version: 6.3.1
  • First release: Oct 24, 2014
  • Latest release: Sep 1, 2015
  • Number of updates: 32
  • Update frequency: every 9.8 days
  • Top authors: fried_eggz (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /3,173 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.75ms] Passed 4 tests

An overview of server-side resources used by Gravity Forms Sticky Form
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.49 ▼3.05
Dashboard /wp-admin3.33 ▲0.0346.12 ▼2.15
Posts /wp-admin/edit.php3.38 ▲0.0351.46 ▼0.16
Add New Post /wp-admin/post-new.php5.91 ▲0.0393.60 ▼13.95
Media Library /wp-admin/upload.php3.25 ▲0.0335.34 ▼3.85

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Gravity Forms Sticky Form
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.29 ▼0.981.70 ▼0.0644.46 ▲0.21
Dashboard /wp-admin2,203 ▲125.77 ▼0.1398.18 ▼2.1640.38 ▼1.64
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0440.78 ▼1.7936.22 ▼0.49
Add New Post /wp-admin/post-new.php1,542 ▲918.64 ▼4.62641.12 ▼54.8059.15 ▲2.93
Media Library /wp-admin/upload.php1,388 ▼04.22 ▼0.0498.04 ▼16.7541.03 ▼7.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

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)
Everything seems fine, however this is by no means an exhaustive test

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/gravity-forms-sticky-form/sticky-form.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
The official readme.txt is a good inspiration

gravity-forms-sticky-form/sticky-form.php 85% from 13 tests

The principal PHP file in "Gravity Forms Sticky Form" v. 1.0.5 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gravity-forms-sticky-form.php" instead of "sticky-form.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 216 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected162 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15036162

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.53
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%
Functions7
▷ Named functions7100.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
PNG images were not found in this plugin