78% sign-up-sheets

Code Review | Sign-up Sheets

WordPress plugin Sign-up Sheets scored78%from 54 tests.

About plugin

  • Plugin page: sign-up-sheets
  • Plugin version: 2.2.11.1
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3
  • WordPress version: 6.3.1
  • First release: Oct 23, 2012
  • Latest release: Sep 26, 2023
  • Number of updates: 100
  • Update frequency: every 39.9 days
  • Top authors: dlsstudios (58%)fetchdesigns (43%)

Code review

54 tests

User reviews

12 reviews

Install metrics

1,000+ active /46,944 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.42MB] [CPU: ▲6.29ms] Passed 4 tests

An overview of server-side resources used by Sign-up Sheets
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.83 ▲0.3751.82 ▲17.15
Dashboard /wp-admin3.74 ▲0.4458.74 ▲7.50
Posts /wp-admin/edit.php3.88 ▲0.5256.46 ▲6.66
Add New Post /wp-admin/post-new.php6.33 ▲0.4494.99 ▲5.69
Media Library /wp-admin/upload.php3.64 ▲0.4140.13 ▲5.29
/wp-admin/admin.php?page=fdsus-edit-signup3.6037.13
Settings /wp-admin/edit.php?post_type=dlssus_sheet&page=fdsus-settings4.1460.46
Help /wp-admin/edit.php?post_type=dlssus_sheet&page=dlssus-help3.6444.19
All Sign-up Sheets /wp-admin/edit.php?post_type=dlssus_sheet3.7345.78
Add New /wp-admin/post-new.php?post_type=dlssus_sheet3.8057.50
Manage Sign-ups /wp-admin/admin.php?page=fdsus-manage3.6040.59

Server storage [IO: ▲2.14MB] [DB: ▲0.08MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
These are issues you should consider
  • You have illegally modified 1 file (0.26KB) outside of "wp-content/plugins/sign-up-sheets/" and "wp-content/uploads/"
    • (new file) wp-content/dlssus-migrate.log
Filesystem: 152 new files
Database: no new tables, 11 new options
New WordPress options
dls_sus_db_version_type
db_upgraded
theysaidso_admin_options
dls_sus_hide_address
dls_sus_db_version
widget_recent-comments
dlssus_migrate_2.0_to_2.1
widget_recent-posts
dls_sus_sheet_slug
can_compress_scripts
...

Browser metrics Passed 4 tests

A check of browser resources used by Sign-up Sheets
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,118 ▲35714.88 ▲0.285.03 ▲3.3138.47 ▼2.85
Dashboard /wp-admin2,411 ▲2316.25 ▲0.63113.10 ▲20.9337.24 ▼7.37
Posts /wp-admin/edit.php2,339 ▲2393.62 ▲1.6754.26 ▲14.0729.05 ▼6.84
Add New Post /wp-admin/post-new.php6,415 ▲4,88027.78 ▲9.77838.51 ▲202.3336.38 ▼32.87
Media Library /wp-admin/upload.php1,477 ▲744.34 ▲0.0780.61 ▼21.8542.11 ▼3.76
/wp-admin/admin.php?page=fdsus-edit-signup7271.7111.4516.65
Settings /wp-admin/edit.php?post_type=dlssus_sheet&page=fdsus-settings2,9583.7874.4956.43
Help /wp-admin/edit.php?post_type=dlssus_sheet&page=dlssus-help1,2853.5852.4834.32
All Sign-up Sheets /wp-admin/edit.php?post_type=dlssus_sheet1,4353.8559.1435.06
Add New /wp-admin/post-new.php?post_type=dlssus_sheet2,8637.99199.1594.77
Manage Sign-ups /wp-admin/admin.php?page=fdsus-manage7271.7112.0817.42

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 11 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • dls_sus_sheet_slug
    • dlssus_migrate_2.0_to_2.1
    • dls_sus_hide_address
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • dls_sus_db_version
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=fdsus-edit-signup
    • > Notice in wp-content/plugins/sign-up-sheets/controller/admin/edit-signup-page.php+74
    Trying to get property 'post_parent' of non-object

SRP 50% from 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
Almost there! Just fix the following items
  • 48× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/sign-up-sheets/theme-files/fdsus/user_sign_ups.php on line 20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/sign-up-sheets/theme-files/fdsus/sheet-list.php:20
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/sign-up-sheets/theme-files/fdsus/user_sign_ups.php on line 20
    • > PHP Fatal error
      Uncaught Error: Class 'FDSUS\\Controller\\Base' not found in wp-content/plugins/sign-up-sheets/controller/task-table.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'FDSUS\\Model\\Base' not found in wp-content/plugins/sign-up-sheets/model/data.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'FDSUS\\Lib\\ReCaptcha\\RequestMethod' not found in wp-content/plugins/sign-up-sheets/lib/re-captcha/request-method/socket-post.php:46
    • > PHP Fatal error
      Uncaught Error: Call to undefined function FDSUS\\plugin_dir_path() in wp-content/plugins/sign-up-sheets/main.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/sign-up-sheets/theme-files/content-dlssus_sheet.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'FDSUS\\Id' not found in wp-content/plugins/sign-up-sheets/model/signup.php:16
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/sign-up-sheets/theme-files/fdsus/user_sign_ups.php on line 17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% 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 your attention:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
Please take inspiration from this readme.txt

sign-up-sheets/sign-up-sheets.php 92% from 13 tests

The entry point to "Sign-up Sheets" version 2.2.11.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin50,202 lines of code in 130 files:
LanguageFilesBlank linesComment linesLines of code
JSON40035,908
PHP801,7304,5889,869
JavaScript154026392,842
Sass181526853
CSS97123492
HTML122191
XML20026
SVG10021

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity19.46
▷ Minimum class complexity1.00
▷ Maximum class complexity201.00
Average method complexity4.49
▷ Minimum method complexity1.00
▷ Maximum method complexity70.00
Code structure
Namespaces12
Interfaces1
Traits0
Classes75
▷ Abstract classes00.00%
▷ Concrete classes75100.00%
▷ Final classes00.00%
Methods403
▷ Static methods4210.42%
▷ Public methods34886.35%
▷ Protected methods184.47%
▷ Private methods379.18%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants26
▷ Global constants27.69%
▷ Class constants2492.31%
▷ Public constants24100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/dls/meta-boxes/assets/icon-drag-y.png0.21KB0.16KB▼ 23.70%
lib/dls/meta-boxes/assets/chosen/chosen-sprite.png0.53KB0.88KB0.00%
images/dls-sus-content-button.png0.16KB0.12KB▼ 27.27%
lib/dls/meta-boxes/assets/chosen/chosen-sprite@2x.png0.72KB0.83KB0.00%
images/admin-icon.png1.26KB0.62KB▼ 50.89%