62% volunteer-form

Code Review | Volunteer Form

WordPress plugin Volunteer Form scored 62% from 54 tests.

About plugin

  • Plugin page: volunteer-form
  • Plugin version: 0.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.0.1
  • WordPress version: 6.3.1
  • First release: Feb 15, 2015
  • Latest release: Feb 15, 2015
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: nik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,378 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▲54.75ms] Passed 4 tests

An overview of server-side resources used by Volunteer Form
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.20101.04 ▲63.37
Dashboard /wp-admin3.36 ▲0.05103.21 ▲54.60
Posts /wp-admin/edit.php3.47 ▲0.11111.10 ▲58.09
Add New Post /wp-admin/post-new.php5.94 ▲0.05146.70 ▲42.95
Media Library /wp-admin/upload.php3.28 ▲0.05292.12 ▲255.84
List /wp-admin/admin.php?page=vf-menu-handle3.2490.14
Settings /wp-admin/admin.php?page=vf-menu-settings3.2487.67

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 82 new files
Database: 1 new table, 7 new options
New tables
wp_volunteerinfo
New WordPress options
theysaidso_admin_options
vf_db_version
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Volunteer Form
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲7013.26 ▼1.161.56 ▼0.2038.38 ▲0.84
Dashboard /wp-admin2,233 ▲454.85 ▼1.03103.75 ▼7.7038.64 ▼6.22
Posts /wp-admin/edit.php2,119 ▲302.01 ▲0.0139.78 ▼2.2637.07 ▲1.30
Add New Post /wp-admin/post-new.php1,535 ▼721.46 ▲3.33672.08 ▲77.2951.02 ▼0.05
Media Library /wp-admin/upload.php1,418 ▲334.19 ▲0.03101.61 ▲3.5046.02 ▲2.95
List /wp-admin/admin.php?page=vf-menu-handle8132.0524.0032.98
Settings /wp-admin/admin.php?page=vf-menu-settings8252.0626.1825.05

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_volunteerinfo
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • vf_db_version
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=vf-menu-settings
    • > Notice in wp-content/plugins/volunteer-form/templates/settings.php+18
    Trying to access array offset on value of type bool

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/volunteer-form/templates/list.php
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/volunteer-form/templates/settings.php:4
    • > PHP Warning
      Use of undefined constant VF_EXPORT_URL - assumed 'VF_EXPORT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/volunteer-form/templates/list.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/volunteer-form/volunteerform.php:294
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/volunteer-form/templates/form.php:3
    • > PHP Notice
      Undefined variable: volunteers in wp-content/plugins/volunteer-form/templates/list.php on line 17
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/volunteer-form/templates/list.php on line 17
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/volunteer-form/volunteerform.php on line 32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: volunteer, form

volunteer-form/volunteerform.php 92% from 13 tests

Analyzing the main PHP file in "Volunteer Form" version 0.1.6
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("volunteer-form.php" instead of "volunteerform.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
Good job! No executable or dangerous file extensions detected7,625 lines of code in 80 files:
LanguageFilesBlank linesComment linesLines of code
LESS711,1601,5235,232
CSS2011,359
PHP58026710
JSON100297
make17327

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin