73% event-volunteer

Code Review | Event Volunteer

WordPress plugin Event Volunteer scored73%from 54 tests.

About plugin

  • Plugin page: event-volunteer
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 27, 2020
  • Latest release: May 18, 2020
  • Number of updates: 4
  • Update frequency: every 6.0 days
  • Top authors: galaxyweblinks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /574 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼10.41ms] Passed 4 tests

Analyzing server-side resources used by Event Volunteer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1036.90 ▼2.92
Dashboard /wp-admin3.44 ▲0.1044.48 ▼17.12
Posts /wp-admin/edit.php3.48 ▲0.1248.32 ▲4.06
Add New Post /wp-admin/post-new.php6.14 ▲0.2573.63 ▼22.25
Media Library /wp-admin/upload.php3.38 ▲0.1533.25 ▲0.65
Evp Locations /wp-admin/edit.php?post_type=locations3.3836.21
Evp Events /wp-admin/edit.php?post_type=evpevents3.3836.34
Evp Events Task /wp-admin/edit.php?post_type=evpevents_task3.3828.09

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 51 new files
Database: 1 new table, 6 new options
New tables
wp_wpbiker_form
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Event Volunteer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲7414.60 ▲0.321.75 ▲0.1138.74 ▼4.76
Dashboard /wp-admin2,238 ▲585.52 ▼0.0682.21 ▼14.1339.68 ▼4.72
Posts /wp-admin/edit.php2,147 ▲472.00 ▲0.0135.60 ▼0.4336.64 ▼1.02
Add New Post /wp-admin/post-new.php1,565 ▲3422.86 ▼0.18633.87 ▼16.5849.60 ▼2.56
Media Library /wp-admin/upload.php1,440 ▲374.27 ▲0.0398.19 ▼6.3946.43 ▼0.25
Evp Locations /wp-admin/edit.php?post_type=locations1,1111.9432.7533.89
/wp-admin/vol_details.php260.420.0818.09
Evp Events /wp-admin/edit.php?post_type=evpevents1,1111.9729.9431.20
Evp Events Task /wp-admin/edit.php?post_type=evpevents_task1,1111.9430.6426.73
Event Volunteers /wp-admin/evpentries.php260.420.086.25
Evp Settings /wp-admin/evpentries.php?page=evp_form_setting260.420.095.58
/wp-admin/entries_view.php260.420.075.63

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
Please fix the following items
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_wpbiker_form
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% 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 no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/vol_details.php
    • > Network (severe)
    wp-admin/vol_details.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/evpentries.php
    • > Network (severe)
    wp-admin/evpentries.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/evpentries.php?page=evp_form_setting
    • > Network (severe)
    wp-admin/evpentries.php?page=evp_form_setting - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/entries_view.php
    • > Network (severe)
    wp-admin/entries_view.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Requires at least: Version not formatted correctly
Please take inspiration from this readme.txt

event-volunteer/evp-event.php 85% from 13 tests

The primary PHP file in "Event Volunteer" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("event-volunteer.php" instead of "evp-event.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 319 characters long)

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
Success! There were no dangerous files found in this plugin10,263 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript202,1967,2977,592
PHP133471502,015
CSS94149656

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions51
▷ Named functions51100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
8 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/sort_asc.png0.16KB0.25KB0.00%
assets/images/icon (1).png0.50KB0.44KB▼ 13.40%
assets/images/sort_desc.png0.15KB0.25KB0.00%
assets/images/sort_asc_disabled.png0.14KB0.25KB0.00%
assets/images/sort_desc_disabled.png0.14KB0.25KB0.00%