83% list-forms-for-gravity

Code Review | List-Forms for Gravity

WordPress plugin List-Forms for Gravity scored83%from 54 tests.

About plugin

  • Plugin page: list-forms-for-gr...
  • Plugin version: 2.4
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.7
  • WordPress version: 6.3.1
  • First release: May 28, 2021
  • Latest release: Sep 28, 2023
  • Number of updates: 5
  • Update frequency: every 170.8 days
  • Top authors: wpgear (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /387 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
Installer ran successfully

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

An overview of server-side resources used by List-Forms for Gravity
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.29 ▼0.50
Dashboard /wp-admin3.33 ▲0.0249.30 ▼1.24
Posts /wp-admin/edit.php3.38 ▲0.0247.31 ▼0.57
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.68 ▼18.85
Media Library /wp-admin/upload.php3.25 ▲0.0237.63 ▲0.94

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for List-Forms for Gravity
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▼0.321.73 ▲0.1344.54 ▲6.02
Dashboard /wp-admin2,192 ▲175.52 ▼0.1080.53 ▼21.4938.29 ▼4.99
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0234.79 ▼4.9635.60 ▼1.23
Add New Post /wp-admin/post-new.php1,526 ▼022.97 ▼0.01701.58 ▲107.4447.82 ▼8.62
Media Library /wp-admin/upload.php1,397 ▼34.19 ▲0.04107.23 ▼1.0944.65 ▼0.21

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/list-forms-for-gravity/gravity-list-forms.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/list-forms-for-gravity/includes/ajax_gravity-list-forms.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Donate link: Please fix this invalid url: "wpgear.xyz/list-forms-for-gravity/"
You can take inspiration from this readme.txt

list-forms-for-gravity/gravity-list-forms.php 85% from 13 tests

The entry point to "List-Forms for Gravity" version 2.4 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("list-forms-for-gravity.php" instead of "gravity-list-forms.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 209 characters long)

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 detected299 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP45445152
JavaScript23610128
CSS10419

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions11
▷ Named functions11100.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
PNG images were not found in this plugin