72% views-for-wpforms-lite

Code Review | Views for WPForms - Display & Edit WPForms Entries on your site frontend

WordPress plugin Views for WPForms - Display & Edit WPForms Entries on your site frontend scored72%from 54 tests.

About plugin

  • Plugin page: views-for-wpforms...
  • Plugin version: 3.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Aug 25, 2020
  • Latest release: Oct 16, 2023
  • Number of updates: 132
  • Update frequency: every 8.7 days
  • Top authors: aman086 (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

1,000+ active /45,901 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼13.51ms] Passed 4 tests

An overview of server-side resources used by Views for WPForms - Display & Edit WPForms Entries on your site frontend
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0736.35 ▼10.74
Dashboard /wp-admin3.38 ▲0.0348.22 ▼19.92
Posts /wp-admin/edit.php3.43 ▲0.0749.07 ▼3.75
Add New Post /wp-admin/post-new.php5.98 ▲0.0987.66 ▼19.61
Media Library /wp-admin/upload.php3.30 ▲0.0745.53 ▲6.96
Get Pro /wp-admin/edit.php?post_type=wpforms-views&page=wpforms-views-get-pro3.2834.82
Help /wp-admin/edit.php?post_type=wpforms-views&page=wpforms-views-help3.2736.18
Edit View /wp-admin/admin.php?page=wpf-views3.2429.85
All Views /wp-admin/edit.php?post_type=wpforms-views3.3540.18

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 59 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
wpf_views_reviews_installed_on
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Views for WPForms - Display & Edit WPForms Entries on your site frontend
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲4914.28 ▲0.011.95 ▲0.1639.75 ▼3.92
Dashboard /wp-admin2,232 ▲555.54 ▼0.1287.67 ▼21.5840.27 ▼3.77
Posts /wp-admin/edit.php2,137 ▲372.02 ▲0.0334.92 ▼5.2135.67 ▼5.80
Add New Post /wp-admin/post-new.php1,722 ▲19621.77 ▼1.23643.79 ▼59.9836.85 ▼18.49
Media Library /wp-admin/upload.php1,440 ▲374.16 ▼0.0196.81 ▼11.8042.87 ▼4.60
Get Pro /wp-admin/edit.php?post_type=wpforms-views&page=wpforms-views-get-pro1,2431.9921.5247.51
Help /wp-admin/edit.php?post_type=wpforms-views&page=wpforms-views-help8182.0028.5028.05
Edit View /wp-admin/admin.php?page=wpf-views8544.01113.5920.44
All Views /wp-admin/edit.php?post_type=wpforms-views1,1372.3231.4726.13

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • theysaidso_admin_options
    • wpf_views_reviews_installed_on
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=wpf-views
    • > Notice in wp-content/plugins/views-for-wpforms-lite/inc/admin/class-wpforms-views-editor.php+15
    Undefined index: view_id

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
  • 9× 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/views-for-wpforms-lite/views-block/class-wpforms-views-block.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/views-for-wpforms-lite/inc/admin/class-wpforms-views-lite-support.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/views-for-wpforms-lite/inc/class-wpforms-views-shortcode.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/views-for-wpforms-lite/inc/admin/class-wpforms-views-list-table.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/views-for-wpforms-lite/inc/admin/class-wpforms-views-editor.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/views-for-wpforms-lite/inc/admin/class-wpforms-views-posttype.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/views-for-wpforms-lite/inc/admin/class-wpforms-views-metabox.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/views-for-wpforms-lite/inc/admin/class-wpforms-views-ajax.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/views-for-wpforms-lite/inc/admin/class-wpforms-views-upgrade-to-pro-page.php:5

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=wpf-views
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=wpf-views 0:0 Uncaught SyntaxError: "undefined" is not valid JSON

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
6 plugin tags: list view, wpforms, edit entries, display entries, table view...

views-for-wpforms-lite/wpforms-views.php 92% from 13 tests

This is the main PHP file of "Views for WPForms - Display & Edit WPForms Entries on your site frontend" version 3.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("views-for-wpforms-lite.php" instead of "wpforms-views.php")

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
Success! There were no dangerous files found in this plugin9,855 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
SVG50124,481
CSS102001773,331
PHP173714001,835
JavaScript45091192
JSON10016

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity13.43
▷ Minimum class complexity1.00
▷ Maximum class complexity61.00
Average method complexity2.81
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods80
▷ Static methods1822.50%
▷ Public methods7695.00%
▷ Protected methods33.75%
▷ Private methods11.25%
Functions8
▷ Named functions675.00%
▷ Anonymous functions225.00%
Constants6
▷ Global constants233.33%
▷ Class constants466.67%
▷ Public constants4100.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