88% neoforms

Code Review | neoForms

WordPress plugin neoForms scored 88% from 54 tests.

About plugin

  • Plugin page: neoforms
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.7
  • WordPress version: 5.8.1
  • First release: Jul 5, 2018
  • Latest release: Aug 18, 2018
  • Number of updates: 13
  • Update frequency: every 6.2 days
  • Top authors: mithublue (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 422 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Server-side resources used by neoForms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.94 ▲0.1134.73 ▲1.95
Dashboard /wp-admin3.13 ▲0.0747.38 ▲5.44
Posts /wp-admin/edit.php3.18 ▲0.0747.37 ▲2.56
Add New Post /wp-admin/post-new.php5.48 ▲0.0486.22 ▼684.69
Media Library /wp-admin/upload.php3.07 ▲0.0731.50 ▲4.45

Server storage [IO: ▲1.73MB] [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: 53 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for neoForms
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,183 ▲60115.89 ▲0.3111.64 ▲3.4244.86 ▼7.82
Dashboard /wp-admin3,188 ▲2575.92 ▼0.13133.04 ▼7.88133.88 ▲24.04
Posts /wp-admin/edit.php2,981 ▲2422.72 ▼0.0159.86 ▼9.1785.82 ▼5.22
Add New Post /wp-admin/post-new.php1,885 ▲20219.14 ▲0.41401.23 ▲24.13109.18 ▲5.30
Media Library /wp-admin/upload.php2,055 ▲2485.02 ▼0.08124.39 ▼22.29143.55 ▲18.44
Add Form /wp-admin/admin.php?page=neoforms#/forms/form-types3,2875.82124.71126.44
All Forms /wp-admin/admin.php?page=neoforms#/3,1416.23124.78111.10
Settings /wp-admin/admin.php?page=neoforms#/settings3,0945.49104.8398.90
Help /wp-admin/admin.php?page=neoforms#/help3,1035.8492.57108.51

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

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
Good news, no errors were detected

SRP 0% 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
Almost there! Just fix the following items
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/neoforms/templates/edit-form.php
    • > /wp-content/plugins/neoforms/templates/core/form-builder.php
    • > /wp-content/plugins/neoforms/templates/form-items.php
  • 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/neoforms/templates/entry.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/neoforms/templates/form-items.php:308
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/neoforms/templates/settings.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/neoforms/shortcode.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_statuses() in wp-content/plugins/neoforms/templates/forms.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/neoforms/data.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/neoforms/form-builder-admin.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/neoforms/templates/help.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_statuses() in wp-content/plugins/neoforms/templates/entries.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/neoforms/templates/form-public.php:33

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 88% 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:
  • Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in neoforms/assets to your readme.txt
  • Tags: Too many tags (25 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

neoforms/neoforms.php 92% from 13 tests

Analyzing the main PHP file in "neoForms" version 1.0.2
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected23,491 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript201,3151,54511,991
JSON2006,212
PHP192311862,889
CSS33442,032
LESS11313367

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity24.67
▷ Minimum class complexity4.00
▷ Maximum class complexity75.00
Average method complexity3.84
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods50
▷ Static methods2550.00%
▷ Public methods50100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon.png1.70KB0.84KB▼ 50.95%