78% views-for-ninja-forms

Code Review | Ninja Forms Views - Display & Edit Ninja Forms Submissions on your site frontend

WordPress plugin Ninja Forms Views - Display & Edit Ninja Forms Submissions on your site frontend scored78%from 54 tests.

About plugin

  • Plugin page: views-for-ninja-f...
  • Plugin version: 2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: Dec 14, 2018
  • Latest release: Sep 25, 2023
  • Number of updates: 117
  • Update frequency: every 14.9 days
  • Top authors: aman086 (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

1,000+ active /31,716 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
Installer ran successfully

Server metrics [RAM: ▲0.28MB] [CPU: ▼1.57ms] Passed 4 tests

Server-side resources used by Ninja Forms Views - Display & Edit Ninja Forms Submissions on your site frontend
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2637.80 ▲0.33
Dashboard /wp-admin3.64 ▲0.3347.10 ▼1.49
Posts /wp-admin/edit.php3.69 ▲0.3351.17 ▲1.62
Add New Post /wp-admin/post-new.php6.16 ▲0.2788.61 ▼6.72
Media Library /wp-admin/upload.php3.50 ▲0.2739.69 ▲3.51
Get Pro /wp-admin/edit.php?post_type=nf-views&page=nf-views-get-pro3.4733.28
All NF Views /wp-admin/edit.php?post_type=nf-views3.5437.33
Add NF View /wp-admin/post-new.php?post_type=nf-views3.5341.45
Help /wp-admin/edit.php?post_type=nf-views&page=nf-views-help3.4631.34

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 41 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
nf_views_reviews_installed_on
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Ninja Forms Views - Display & Edit Ninja Forms Submissions on your site frontend
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,870 ▲12413.17 ▼1.201.85 ▲0.1940.22 ▼2.72
Dashboard /wp-admin2,242 ▲545.88 ▼0.02105.93 ▲3.0237.65 ▼6.02
Posts /wp-admin/edit.php2,122 ▲302.01 ▼0.0335.41 ▼8.4131.72 ▼5.53
Add New Post /wp-admin/post-new.php1,569 ▲5023.04 ▼0.22602.47 ▼62.9461.53 ▲10.04
Media Library /wp-admin/upload.php1,424 ▲364.20 ▼0.0196.82 ▼17.5042.29 ▼6.46
Get Pro /wp-admin/edit.php?post_type=nf-views&page=nf-views-get-pro1,1571.9921.8243.85
All NF Views /wp-admin/edit.php?post_type=nf-views1,1101.9333.2334.76
Add NF View /wp-admin/post-new.php?post_type=nf-views1,5064.2775.2360.30
Help /wp-admin/edit.php?post_type=nf-views&page=nf-views-help8052.0223.6025.32

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • nf_views_reviews_installed_on
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
The following issues need your attention
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/views-for-ninja-forms/inc/admin/class-nf-views-upgrade-to-pro-page.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/views-for-ninja-forms/inc/admin/class-nf-views-posttype.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/views-for-ninja-forms/inc/class-nf-views-shortcode.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/views-for-ninja-forms/inc/admin/class-nf-views-lite-support.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/views-for-ninja-forms/inc/admin/class-nf-views-ajax.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/views-for-ninja-forms/inc/admin/class-nf-views-metabox.php:7

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/post-new.php?post_type=nf-views
    • > Javascript (severe) in unknown
    /wp-content/plugins/views-for-ninja-forms/build/static/js/admin.js?ver=6.3.1 0:209184 Uncaught Error: Minified React error #200; visit https://reactjs.o… for full errors and additional helpful warnings.

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: list view, display ninja forms submissions, ninja forms, table view, contact form...

views-for-ninja-forms/nf-form-views.php 92% from 13 tests

This is the main PHP file of "Ninja Forms Views - Display & Edit Ninja Forms Submissions on your site frontend" version 2.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("views-for-ninja-forms.php" instead of "nf-form-views.php")

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
Everything looks great! No dangerous files found in this plugin6,083 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
SVG30124,479
PHP133033341,519
CSS662584
JavaScript1011

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity15.27
▷ Minimum class complexity1.00
▷ Maximum class complexity62.00
Average method complexity3.38
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods66
▷ Static methods1624.24%
▷ Public methods6192.42%
▷ Protected methods34.55%
▷ Private methods23.03%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants233.33%
▷ Class constants466.67%
▷ Public constants4100.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
No PNG images were found in this plugin