68% wired-impact-volunteer-management

Code Review | Wired Impact Volunteer Management

WordPress plugin Wired Impact Volunteer Management scored68%from 54 tests.

About plugin

  • Plugin page: wired-impact-volu...
  • Plugin version: 2.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Oct 7, 2015
  • Latest release: Dec 1, 2023
  • Number of updates: 104
  • Update frequency: every 28.6 days
  • Top authors: wiredimpact (87.5%)danielpw (13.46%)

Code review

54 tests

User reviews

24 reviews

Install metrics

1,000+ active /41,200 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.53MB] [CPU: ▼1.72ms] Passed 4 tests

This is a short check of server-side resources used by Wired Impact Volunteer Management
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.89 ▲0.4338.00 ▼5.62
Dashboard /wp-admin3.91 ▲0.5759.52 ▼2.58
Posts /wp-admin/edit.php3.97 ▲0.6152.06 ▲0.94
Add New Post /wp-admin/post-new.php6.48 ▲0.59101.40 ▲0.37
Media Library /wp-admin/upload.php3.77 ▲0.5437.55 ▲4.60
Opportunities /wp-admin/edit.php?post_type=volunteer_opp3.8839.29
Help & Settings /wp-admin/admin.php?page=wi-volunteer-management-help-settings3.8635.68
Volunteers /wp-admin/admin.php?page=wi-volunteer-management-volunteers3.9139.07
Volunteer /wp-admin/admin.php?page=wi-volunteer-management-volunteer3.7834.89

Server storage [IO: ▲1.09MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 63 new files
Database: 2 new tables, 9 new options
New tables
wp_volunteer_emails
wp_volunteer_rsvps
New WordPress options
can_compress_scripts
widget_recent-posts
widget_wi_volunteer_management_widget
wivm-settings
widget_theysaidso_widget
db_upgraded
wivm_version
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Wired Impact Volunteer Management
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,982 ▲19513.52 ▼1.199.03 ▲6.9338.43 ▼6.16
Dashboard /wp-admin2,270 ▲955.80 ▲0.2398.72 ▼17.9944.41 ▲4.93
Posts /wp-admin/edit.php2,184 ▲842.29 ▲0.3140.67 ▼0.5237.69 ▲2.30
Add New Post /wp-admin/post-new.php6,433 ▲4,90027.55 ▲4.40831.28 ▲226.9336.13 ▼22.09
Media Library /wp-admin/upload.php1,476 ▲734.51 ▲0.3199.20 ▼2.7543.92 ▲0.45
Opportunities /wp-admin/edit.php?post_type=volunteer_opp1,1882.2236.4330.26
Help & Settings /wp-admin/admin.php?page=wi-volunteer-management-help-settings2,2658.78187.1731.54
Volunteers /wp-admin/admin.php?page=wi-volunteer-management-volunteers1,0741.9632.4233.62
Volunteer /wp-admin/admin.php?page=wi-volunteer-management-volunteer7101.389.0617.21

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie tables detected upon uninstall: 2 tables
    • wp_volunteer_emails
    • wp_volunteer_rsvps
  • Zombie WordPress options detected upon uninstall: 9 options
    • wivm-settings
    • wivm_version
    • widget_wi_volunteer_management_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% 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
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wired-impact-volunteer-management/widget/class-widget.php
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WI_Volunteer_Management_Opportunity' not found in wp-content/plugins/wired-impact-volunteer-management/templates/opp-single-meta.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WI_Volunteer_Management_Opportunity' not found in wp-content/plugins/wired-impact-volunteer-management/templates/opp-single-form.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wired-impact-volunteer-management/admin/pages/volunteer.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WI_Volunteer_Management_Opportunity' not found in wp-content/plugins/wired-impact-volunteer-management/templates/opps-list-flexible.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Users_List_Table' not found in wp-content/plugins/wired-impact-volunteer-management/includes/class-wp-volunteer-list-table.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'WI_Volunteer_Management_Opportunity' not found in wp-content/plugins/wired-impact-volunteer-management/templates/opps-list-widget.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wired-impact-volunteer-management/admin/pages/volunteers.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WI_Volunteer_Management_Opportunity' not found in wp-content/plugins/wired-impact-volunteer-management/templates/opps-list-one-time.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wired-impact-volunteer-management/admin/pages/help-settings.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed: The official readme.txt might help

wired-impact-volunteer-management/wivm.php 92% from 13 tests

The main PHP file in "Wired Impact Volunteer Management" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wired-impact-volunteer-management.php" instead of "wivm.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin24,776 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
JSON20018,577
PHP269582,1162,781
JavaScript124235232,545
CSS314276873

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity20.69
▷ Minimum class complexity1.00
▷ Maximum class complexity101.00
Average method complexity2.96
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods161
▷ Static methods42.48%
▷ Public methods14489.44%
▷ Protected methods84.97%
▷ Private methods95.59%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
13 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/css/images/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
admin/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
admin/css/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
admin/css/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
admin/css/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%