10% ptoffice-sign-ups

Code Review | PT Sign Ups - Beautiful volunteer sign ups and management made easy

WordPress plugin PT Sign Ups - Beautiful volunteer sign ups and management made easy scored10%from 54 tests.

About plugin

  • Plugin page: ptoffice-sign-ups
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.0
  • WordPress version: 6.3.1
  • First release: Aug 24, 2022
  • Latest release: Oct 27, 2022
  • Number of updates: 12
  • Update frequency: every 5.4 days
  • Top authors: blafoley (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /413 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.

Server metrics [RAM: ▲1.87MB] [CPU: ▲6.21ms] Passed 4 tests

This is a short check of server-side resources used by PT Sign Ups - Beautiful volunteer sign ups and management made easy
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /5.99 ▲2.5357.01 ▲15.13
Dashboard /wp-admin5.81 ▲2.5161.58 ▲13.10
Posts /wp-admin/edit.php5.88 ▲2.5267.90 ▲17.49
Add New Post /wp-admin/post-new.php5.92 ▲0.0375.88 ▼20.88
Media Library /wp-admin/upload.php5.67 ▲2.4459.11 ▲18.99
Add New /wp-admin/post-new.php?post_type=pto-custom-fields5.8058.13
All ACF Fields /wp-admin/edit.php?post_type=pto-custom-fields5.8154.23
All Sign Ups /wp-admin/edit.php?post_type=pto-signup5.8150.00
Sign Ups Settings /wp-admin/edit.php?post_type=pto-signup&page=signup_setting5.8861.45
Sign Ups Reports /wp-admin/edit.php?post_type=pto-signup&page=signup_reports5.9255.53
Add Sign Up /wp-admin/post-new.php?post_type=pto-signup6.2168.91
Add New /wp-admin/post-new.php?post_type=tasks-signup5.8863.63
All Tasks-Signup /wp-admin/edit.php?post_type=tasks-signup5.8149.73

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 86 new files
Database: 1 new table, 20 new options
New tables
wp_signup_orders
New WordPress options
administrators_invitation
defult_wording_volunteers
pto_checkout_sign_ups
pto_post_sign_thank_you
widget_recent-comments
remove_user_from_signup
ownsignup_invitation
signup_flush_rewrite_rules_flag
db_upgraded
pto_display_all_sing_ups
...

Browser metrics Passed 4 tests

PT Sign Ups - Beautiful volunteer sign ups and management made easy: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,094 ▲34814.06 ▼0.3021.95 ▲19.9845.00 ▲2.31
Dashboard /wp-admin2,302 ▲1144.95 ▼0.9698.43 ▼8.4940.53 ▼0.15
Posts /wp-admin/edit.php2,208 ▲1192.29 ▲0.2837.36 ▲1.7233.08 ▼0.94
Add New Post /wp-admin/post-new.php3,200 ▲1,6867.98 ▼9.50210.91 ▼489.2875.06 ▲17.02
Media Library /wp-admin/upload.php1,440 ▲524.31 ▲0.1799.40 ▼5.3546.48 ▼3.21
Add New /wp-admin/post-new.php?post_type=pto-custom-fields1,7953.3177.1642.76
All ACF Fields /wp-admin/edit.php?post_type=pto-custom-fields1,1542.7754.0332.68
All Sign Ups /wp-admin/edit.php?post_type=pto-signup1,1712.8848.5434.59
Sign Ups Settings /wp-admin/edit.php?post_type=pto-signup&page=signup_setting2,7759.88271.6784.17
Sign Ups Reports /wp-admin/edit.php?post_type=pto-signup&page=signup_reports1,0883.1561.9534.05
Add Sign Up /wp-admin/post-new.php?post_type=pto-signup3,58711.10231.6092.14
Add New /wp-admin/post-new.php?post_type=tasks-signup2,3547.56172.1563.71
All Tasks-Signup /wp-admin/edit.php?post_type=tasks-signup1,1602.8253.6734.19

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie tables were found after uninstall: 1 table
    • wp_signup_orders
  • Zombie WordPress options detected upon uninstall: 20 options
    • theysaidso_admin_options
    • ownsignup_invitation
    • administrators_notifcations
    • widget_recent-posts
    • db_upgraded
    • request_access_decline
    • remove_user_from_signup
    • pto_post_sign_thank_you
    • defult_wording_volunteers
    • pto_display_all_sing_ups
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/post-new.php?post_type=pto-custom-fields
    • > Warning in wp-content/plugins/ptoffice-sign-ups/includes/pto_advance_custom_filed/structure/pto_custom_fields.php+20
    Invalid argument supplied for foreach()

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 27× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: users in wp-content/plugins/ptoffice-sign-ups/includes/pto_sign_ups_project_tabs/pto_sign_ups_admin_search.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ptoffice-sign-ups/includes/pto_signups_cpts/structure/user_search_pto_sign_up.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/ptoffice-sign-ups/includes/pto_signups_cpts/structure/pto_custom_fileds.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/ptoffice-sign-ups/includes/pto_signups_cpts/structure/pto_task_custom_fields.php:8
    • > PHP Warning
      Use of undefined constant PTO_SIGN_UP_PLUGIN_DIR - assumed 'PTO_SIGN_UP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/ptoffice-sign-ups/includes/pto_sign_ups_project_tabs/pto_sign_ups_project_tabs.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/ptoffice-sign-ups/includes/pto_task_slots_cpts/pto_task_slots_advanced_option/pto_custom_fileds.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/ptoffice-sign-ups/includes/pto_advance_custom_filed/structure/pto_custom_fields.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/ptoffice-sign-ups/includes/pto_task_slots_cpts/pto_task_slots_advanced_option/pto_task_slots_advanced_option.php:2
    • > PHP Warning
      Use of undefined constant PTO_SIGN_UP_PLUGIN_DIR - assumed 'PTO_SIGN_UP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/ptoffice-sign-ups/includes/pto_signups_cpts/structure/pto_sign_ups_tabs.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/ptoffice-sign-ups/includes/pto_sign_ups_project_tabs/pto_sign_ups_reports.php:19

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
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=tasks-signup
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: tinymce is not defined" "ReferenceError: tinymce is not defined\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/ptoffice-sign-ups/assets/js/editor.js?ver=1.0.0:2:2)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=tasks-signup
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught ReferenceError: tinymce is not defined

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: volunteer, volunteer signup, signup, signup sheet, sign up...

ptoffice-sign-ups/ptoffice.php 85% from 13 tests

"PT Sign Ups - Beautiful volunteer sign ups and management made easy" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 325 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ptoffice-sign-ups.php" instead of "ptoffice.php")

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected58,120 lines of code in 53 files:
LanguageFilesBlank linesComment linesLines of code
PHP341,6933,18517,756
CSS41,03927417,569
JavaScript128013213,243
SVG3009,552

PHP code 0% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 1,006)
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 366)
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity214.36
▷ Minimum class complexity10.00
▷ Maximum class complexity1,006.00
Average method complexity16.32
▷ Minimum method complexity1.00
▷ Maximum method complexity366.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods153
▷ Static methods00.00%
▷ Public methods153100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
pto_frontend/assets/img/sidebar_icons.png2.63KB1.07KB▼ 59.50%
assets/img/sidebar_icons.png2.63KB1.07KB▼ 59.50%
assets/img/noimg.png3.90KB3.80KB▼ 2.73%