84% gf-entries-date-range-filter

Code Review | Entries Date Range Filter for Gravity Forms

WordPress plugin Entries Date Range Filter for Gravity Forms scored84%from 54 tests.

About plugin

  • Plugin page: gf-entries-date-r...
  • Plugin version: 1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6.2-5.7
  • WordPress version: 6.3.1
  • First release: Apr 27, 2021
  • Latest release: Apr 28, 2021
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: wptechsoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /441 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.21ms] Passed 4 tests

A check of server-side resources used by Entries Date Range Filter for Gravity Forms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0047.04 ▲1.27
Dashboard /wp-admin3.31 ▲0.0048.61 ▼11.84
Posts /wp-admin/edit.php3.36 ▲0.0048.88 ▼1.29
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.10 ▲7.35
Media Library /wp-admin/upload.php3.23 ▲0.0038.20 ▲3.02

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 74 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Entries Date Range Filter for Gravity Forms: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.45 ▲0.051.64 ▼0.1940.10 ▼4.14
Dashboard /wp-admin2,195 ▲155.62 ▼0.0391.16 ▲1.2038.13 ▼5.90
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0238.51 ▼0.1236.81 ▼0.64
Add New Post /wp-admin/post-new.php1,526 ▼023.21 ▲0.34661.11 ▼11.1255.43 ▼4.25
Media Library /wp-admin/upload.php1,403 ▲34.17 ▲0.06102.42 ▼0.2950.00 ▲2.35

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Trait 'GFEDRF\\Traits\\Singleton' not found in wp-content/plugins/gf-entries-date-range-filter/inc/scripts.php on line 5
    • > PHP Fatal error
      Trait 'GFEDRF\\Traits\\Singleton' not found in wp-content/plugins/gf-entries-date-range-filter/inc/bootstrap.php on line 5
    • > PHP Fatal error
      Trait 'GFEDRF\\Traits\\Singleton' not found in wp-content/plugins/gf-entries-date-range-filter/inc/gravityformshooks.php on line 5
    • > PHP Fatal error
      Trait 'GFEDRF\\Traits\\Singleton' not found in wp-content/plugins/gf-entries-date-range-filter/inc/requirements.php on line 5
    • > PHP Fatal error
      Trait 'GFEDRF\\Traits\\Helpers' not found in wp-content/plugins/gf-entries-date-range-filter/inc/traits/singleton.php on line 30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: gravityforms, gravity forms, entries, gravityforms entries date range filter, date range filter...

gf-entries-date-range-filter/gf-entries-date-range-filter.php 92% from 13 tests

The main file in "Entries Date Range Filter for Gravity Forms" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

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 plugin52,568 lines of code in 48 files:
LanguageFilesBlank linesComment linesLines of code
CSS198,11113934,189
JavaScript114,4451,97117,636
PHP16235279718
JSON20025

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity9.60
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.72
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits2
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods51
▷ Static methods1529.41%
▷ Public methods4894.12%
▷ Protected methods23.92%
▷ Private methods11.96%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants11
▷ Global constants11100.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
No PNG files were detected