90% um-terms-conditions

Code Review | Ultimate Member - Terms & Conditions

WordPress plugin Ultimate Member - Terms & Conditions scored90%from 54 tests.

About plugin

  • Plugin page: um-terms-conditions
  • Plugin version: 2.1.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3
  • WordPress version: 6.3.1
  • First release: Aug 1, 2019
  • Latest release: Oct 11, 2023
  • Number of updates: 16
  • Update frequency: every 95.8 days
  • Top authors: nsinelnikov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

6,000+ active /53,145 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.01ms] Passed 4 tests

Analyzing server-side resources used by Ultimate Member - Terms & Conditions
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0243.11 ▼2.81
Dashboard /wp-admin3.33 ▲0.0251.73 ▼1.47
Posts /wp-admin/edit.php3.38 ▲0.0249.24 ▼9.75
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.31 ▼18.01
Media Library /wp-admin/upload.php3.26 ▲0.0240.05 ▲0.53

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
um_terms_conditions_version
can_compress_scripts
um_options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
um_terms_conditions_last_version_upgrade

Browser metrics Passed 4 tests

Checking browser requirements for Ultimate Member - Terms & Conditions
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲1114.38 ▲0.021.69 ▼0.3344.50 ▲1.36
Dashboard /wp-admin2,203 ▲265.51 ▼0.1296.27 ▲2.8646.13 ▼1.01
Posts /wp-admin/edit.php2,108 ▲82.03 ▲0.0240.45 ▼2.4935.37 ▼7.07
Add New Post /wp-admin/post-new.php1,534 ▲823.30 ▲0.20705.90 ▲4.4656.15 ▼1.98
Media Library /wp-admin/upload.php1,408 ▲84.22 ▲0.01115.69 ▼10.1450.88 ▼10.39

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • um_terms_conditions_version
    • um_terms_conditions_last_version_upgrade
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • um_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
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 a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid URI ("")
Please take inspiration from this readme.txt

um-terms-conditions/um-terms-conditions.php Passed 13 tests

The main PHP file in "Ultimate Member - Terms & Conditions" ver. 2.1.6 adds more information about the plugin and also serves as the entry point for this plugin
132 characters long description:
Add a terms and condition checkbox to your registration forms & require users to agree to your T&Cs before registering on your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,099 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP15183384940
JavaScript4241119
CSS42240

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity8.50
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity2.22
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods49
▷ Static methods12.04%
▷ Public methods4897.96%
▷ Protected methods00.00%
▷ Private methods12.04%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.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
PNG images were not found in this plugin