84% volunteer-registration

Code Review | Volunteer Registration

WordPress plugin Volunteer Registration scored84%from 54 tests.

About plugin

  • Plugin page: volunteer-registr...
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 1.1-6.0
  • WordPress version: 6.3.1
  • First release: Apr 17, 2019
  • Latest release: May 26, 2022
  • Number of updates: 14
  • Update frequency: every 81.1 days
  • Top authors: ajit prabhakar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /941 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼14.95ms] Passed 4 tests

A check of server-side resources used by Volunteer Registration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0331.46 ▼15.67
Dashboard /wp-admin3.34 ▼0.0143.46 ▼14.59
Posts /wp-admin/edit.php3.39 ▲0.0347.49 ▼1.23
Add New Post /wp-admin/post-new.php5.92 ▲0.0375.04 ▼28.30
Media Library /wp-admin/upload.php3.26 ▲0.0334.33 ▲1.52

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Volunteer Registration
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.16 ▼1.224.07 ▲2.2937.79 ▼4.32
Dashboard /wp-admin2,209 ▲214.82 ▼0.15110.93 ▲3.3043.06 ▲1.90
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0038.76 ▲3.1533.29 ▼3.18
Add New Post /wp-admin/post-new.php1,537 ▲2323.00 ▲5.61592.47 ▼80.3552.34 ▲3.73
Media Library /wp-admin/upload.php1,391 ▲34.22 ▲0.0296.87 ▼10.2943.43 ▼0.58

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 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/volunteer-registration/volunteer-registration.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (The Users will appear in Users menu.)
The official readme.txt might help

volunteer-registration/volunteer-registration.php Passed 13 tests

The primary PHP file in "Volunteer Registration" version 1.1 is used by WordPress to initiate all plugin functionality
22 characters long description:
Volunteer Registration

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
No dangerous file extensions were detected203 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1338166
HTML116037

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity5.80
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected