78% sign-up-list

Code Review | Sign-up List

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

About plugin

  • Plugin page: sign-up-list
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.2.0
  • WordPress version: 6.3.1
  • First release: Jan 25, 2023
  • Latest release: Apr 14, 2023
  • Number of updates: 5
  • Update frequency: every 15.8 days
  • Top authors: robinlopulalan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /166 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.23MB] [CPU: ▼3.89ms] Passed 4 tests

Analyzing server-side resources used by Sign-up List
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1739.74 ▼6.97
Dashboard /wp-admin3.56 ▲0.2551.00 ▼5.45
Posts /wp-admin/edit.php3.67 ▲0.3157.43 ▲1.84
Add New Post /wp-admin/post-new.php6.14 ▲0.2692.51 ▼4.98
Media Library /wp-admin/upload.php3.48 ▲0.2543.65 ▲7.39
Invitees /wp-admin/admin.php?page=sul-invitees3.4838.70
Sign-up List /wp-admin/admin.php?page=sul-entries3.4933.49
General Settings /wp-admin/admin.php?page=sul-general-settings3.4533.74

Server storage [IO: ▲1.23MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
These are issues you should consider
  • Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/sign-up-list/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 63 new files
Database: 2 new tables, 8 new options
New tables
wp_sul_entries
wp_sul_invitees
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
sul_general_admin
theysaidso_admin_options
sul_db_version
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Sign-up List
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,933 ▲14713.60 ▼1.035.17 ▲2.5645.94 ▲0.93
Dashboard /wp-admin2,252 ▲524.85 ▼0.95109.33 ▲4.6438.35 ▼6.00
Posts /wp-admin/edit.php2,131 ▲282.02 ▼0.1140.18 ▼1.3536.21 ▼1.41
Add New Post /wp-admin/post-new.php6,397 ▲4,84828.06 ▲4.99942.29 ▲338.9641.11 ▼21.10
Media Library /wp-admin/upload.php1,428 ▲254.23 ▼0.00102.35 ▲1.5949.23 ▲6.12
Invitees /wp-admin/admin.php?page=sul-invitees9362.0325.9925.02
Sign-up List /wp-admin/admin.php?page=sul-entries1,0112.0324.4128.84
General Settings /wp-admin/admin.php?page=sul-general-settings9572.1726.3435.25

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% 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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/sign-up-list/public/php/captcha.php
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Trying to access array offset on value of type bool in wp-content/plugins/sign-up-list/public/php/captcha.php on line 79
    • > PHP Warning
      imagettfbbox(): Could not find/open font in wp-content/plugins/sign-up-list/public/php/captcha.php on line 77
    • > PHP Warning
      imagettftext(): Could not find/open font in wp-content/plugins/sign-up-list/public/php/captcha.php on line 89
    • > PHP Notice
      Trying to access array offset on value of type bool in wp-content/plugins/sign-up-list/public/php/captcha.php on line 80

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can take inspiration from this readme.txt

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

The main file in "Sign-up List" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Domain Path: The domain path points to an invalid folder, "/public/lang" does not exist

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
There were no executable files found in this plugin30,914 lines of code in 52 files:
LanguageFilesBlank linesComment linesLines of code
JSON60028,093
PHP303251,0742,295
PO File1105127256
Sass4300157
JavaScript71575109
CSS4004

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.36
Average class complexity19.64
▷ Minimum class complexity1.00
▷ Maximum class complexity111.00
Average method complexity3.66
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods77
▷ Static methods5571.43%
▷ Public methods6888.31%
▷ Protected methods22.60%
▷ Private methods79.09%
Functions8
▷ Named functions675.00%
▷ Anonymous functions225.00%
Constants6
▷ Global constants350.00%
▷ Class constants350.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/min-style.png18.74KB7.45KB▼ 60.24%
admin/sul-style-1.png24.21KB9.83KB▼ 59.40%