10% ssv-users

Code Review | SSV Users

WordPress plugin SSV Users scored10%from 54 tests.

About plugin

  • Plugin page: ssv-users
  • Plugin version: 3.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.3-4.7
  • WordPress version: 6.3.1
  • First release: May 19, 2017
  • Latest release: May 31, 2017
  • Number of updates: 9
  • Update frequency: every 1.7 days
  • Top authors: Moridrin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /682 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/ssv-users/functions.php+235
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

Server metrics [RAM: ▼1.25MB] [CPU: ▼58.83ms] Passed 4 tests

An overview of server-side resources used by SSV Users
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.75 ▼0.718.61 ▼38.38
Dashboard /wp-admin2.77 ▼0.5710.03 ▼59.34
Posts /wp-admin/edit.php2.77 ▼0.599.68 ▼43.50
Add New Post /wp-admin/post-new.php2.77 ▼3.1211.75 ▼94.09
Media Library /wp-admin/upload.php2.77 ▼0.4613.37 ▼25.97
Users /wp-admin/admin.php?page=ssv-users-settings2.7711.06
General /wp-admin/admin.php?page=ssv_settings2.7712.55

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 45 new files
Database: 1 new table, 10 new options
New tables
wp_ssv_general_custom_fields
New WordPress options
ssv_users__new_member_registration_email
widget_recent-comments
can_compress_scripts
ssv_users__main_column
theysaidso_admin_options
db_upgraded
ssv_users__user_columns
ssv_users__member_role_changed_email
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by SSV Users
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲6614.28 ▼0.282.03 ▲0.0242.17 ▼1.28
Dashboard /wp-admin2,227 ▲505.56 ▼0.0387.23 ▼5.6537.11 ▼3.03
Posts /wp-admin/edit.php2,143 ▲432.20 ▲0.1936.41 ▼0.7439.04 ▲5.31
Add New Post /wp-admin/post-new.php1,562 ▲3623.36 ▼0.07686.97 ▲34.4938.49 ▼10.78
Media Library /wp-admin/upload.php1,438 ▲354.19 ▲0.04103.54 ▲1.8146.53 ▼1.52
Users /wp-admin/admin.php?page=ssv-users-settings9572.0430.8726.43
General /wp-admin/admin.php?page=ssv_settings8981.9323.6628.31

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/ssv-users/functions.php+235
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
  • Zombie tables were found after uninstall: 1 table
    • wp_ssv_general_custom_fields
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • widget_recent-posts
    • ssv_users__member_role_changed_email
    • db_upgraded
    • widget_recent-comments
    • ssv_users__user_columns
    • ssv_users__new_member_registration_email
    • ssv_users__main_column
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ssv_settings
    • > Deprecated in wp-content/plugins/ssv-users/functions.php+235
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: moridrin, users, user management, ssv, members...

ssv-users/ssv-users.php Passed 13 tests

This is the main PHP file of "SSV Users" version 3.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
128 characters long description:
SSV Users is a plugin that allows you to manage members of a Students Sports Club the way you want to. With this plugin you can:

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin5,629 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
PHP355661,4454,490
JavaScript237191,065
Markdown216062
SVG10112

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.49
Average class complexity28.80
▷ Minimum class complexity4.00
▷ Maximum class complexity166.00
Average method complexity4.24
▷ Minimum method complexity1.00
▷ Maximum method complexity78.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes20
▷ Abstract classes15.00%
▷ Concrete classes1995.00%
▷ Final classes00.00%
Methods169
▷ Static methods7242.60%
▷ Public methods13781.07%
▷ Protected methods2816.57%
▷ Private methods42.37%
Functions48
▷ Named functions4185.42%
▷ Anonymous functions714.58%
Constants70
▷ Global constants68.57%
▷ Class constants6491.43%
▷ Public constants64100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
general/images/link-new-tab.png7.55KB4.53KB▼ 40.03%
general/images/link-new-tab-small.png0.32KB0.39KB0.00%