84% fresh-forms-for-gravity

Code Review | Fresh Forms for Gravity

WordPress plugin Fresh Forms for Gravity scored84%from 54 tests.

About plugin

  • Plugin page: fresh-forms-for-g...
  • Plugin version: 1.4.11
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 8, 2019
  • Latest release: Sep 30, 2023
  • Number of updates: 59
  • Update frequency: every 24.6 days
  • Top authors: samuelaguilera (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

2,000+ active /21,746 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
Install script ran successfully

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

An overview of server-side resources used by Fresh Forms for Gravity
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.65 ▼4.86
Dashboard /wp-admin3.34 ▲0.0346.12 ▼0.65
Posts /wp-admin/edit.php3.39 ▲0.0343.63 ▼4.31
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.94 ▼10.43
Media Library /wp-admin/upload.php3.26 ▲0.0335.08 ▼0.98

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
fffg_version
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Fresh Forms for Gravity: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.091.79 ▲0.1945.40 ▲6.62
Dashboard /wp-admin2,195 ▲235.64 ▼0.0995.83 ▼5.9843.41 ▲4.67
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0235.57 ▼1.5633.57 ▲0.13
Add New Post /wp-admin/post-new.php1,535 ▲718.07 ▼4.94617.03 ▲4.4761.78 ▲4.01
Media Library /wp-admin/upload.php1,394 ▼64.16 ▼0.0696.09 ▼1.8147.18 ▲3.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • fffg_version
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • 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
Even though no errors were found, this is by no means 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
  • 2× 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/fresh-forms-for-gravity/fresh-forms-for-gravity.php:131
    • > PHP Fatal error
      Uncaught Error: Class 'GFForms' not found in wp-content/plugins/fresh-forms-for-gravity/class-fresh-forms-for-gravity.php:11

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: You are using too many tags: 17 tag instead of maximum 10
Please take inspiration from this readme.txt

fresh-forms-for-gravity/fresh-forms-for-gravity.php 92% from 13 tests

The main PHP script in "Fresh Forms for Gravity" version 1.4.11 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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
There were no executable files found in this plugin582 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2180386582

PHP code Passed 2 tests

An short overview of 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.54
Average class complexity49.50
▷ Minimum class complexity2.00
▷ Maximum class complexity97.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods2586.21%
▷ Protected methods00.00%
▷ Private methods413.79%
Functions7
▷ Named functions342.86%
▷ Anonymous functions457.14%
Constants9
▷ Global constants9100.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
PNG images were not found in this plugin