80% wp-user-signups

Code Review | WP User Signups

WordPress plugin WP User Signups scored80%from 54 tests.

About plugin

  • Plugin page: wp-user-signups
  • Plugin version: 5.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8
  • WordPress version: 6.3.1
  • First release: Nov 13, 2016
  • Latest release: Jun 22, 2023
  • Number of updates: 12
  • Update frequency: every 201.0 days
  • Top authors: johnjamesjacoby (91.67%)tfrommen (16.67%)

Code review

54 tests

User reviews

3 reviews

Install metrics

40+ active /5,516 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.27MB] [CPU: ▼5.17ms] Passed 4 tests

A check of server-side resources used by WP User Signups
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.3041.19 ▲3.26
Dashboard /wp-admin3.59 ▲0.2447.29 ▼10.99
Posts /wp-admin/edit.php3.70 ▲0.3445.18 ▼0.53
Add New Post /wp-admin/post-new.php6.17 ▲0.2884.00 ▼12.40
Media Library /wp-admin/upload.php3.51 ▲0.2836.43 ▲5.55
Sign ups /wp-admin/admin.php?page=signups3.5337.44
Add New /wp-admin/admin.php?page=signup_edit3.5233.77

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 18 new files
Database: 2 new tables, 6 new options
New tables
wp_signupmeta
wp_signups
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for WP User Signups
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7713.26 ▼1.111.67 ▼0.1539.63 ▼3.53
Dashboard /wp-admin2,229 ▲415.83 ▼0.0594.68 ▼12.0243.80 ▼0.72
Posts /wp-admin/edit.php2,115 ▲262.01 ▼0.0336.14 ▼3.8132.71 ▼4.22
Add New Post /wp-admin/post-new.php1,538 ▲1923.16 ▲0.03622.08 ▲14.4653.53 ▼4.00
Media Library /wp-admin/upload.php1,414 ▲324.20 ▼0.0396.37 ▼3.4642.36 ▲0.26
Sign ups /wp-admin/admin.php?page=signups1,0491.6825.2427.58
Add New /wp-admin/admin.php?page=signup_edit9821.7125.2428.67

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
  • Zombie tables were found after uninstall: 2 tables
    • wp_signupmeta
    • wp_signups
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: user, signups, admin, multisite

wp-user-signups/wp-user-signups.php 92% from 13 tests

The main file in "WP User Signups" v. 5.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/wp-user-signups/assets/languages")

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
No dangerous file extensions were detected1,542 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP165361,4281,531
CSS11011

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity24.86
▷ Minimum class complexity1.00
▷ Maximum class complexity76.00
Average method complexity4.27
▷ Minimum method complexity1.00
▷ Maximum method complexity48.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes7
▷ Abstract classes114.29%
▷ Concrete classes685.71%
▷ Final classes466.67%
Methods53
▷ Static methods35.66%
▷ Public methods2241.51%
▷ Protected methods2343.40%
▷ Private methods815.09%
Functions35
▷ Named functions3497.14%
▷ Anonymous functions12.86%
Constants0
▷ Global constants00.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
No PNG files were detected