10% login-form-in-restricted-message-for-ultimate-member

Code Review | Login Form in Restricted Message for Ultimate Member

WordPress plugin Login Form in Restricted Message for Ultimate Member scored 10% from 54 tests.

About plugin

  • Plugin page: login-form-in-res...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Feb 9, 2023
  • Latest release: Feb 9, 2023
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: realestatetips (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 374 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Error in wp-content/plugins/login-form-in-restricted-message-for-ultimate-member/um_form_in_restrict_message.php+10
    Uncaught Error: Call to undefined function UM() in wp-content/plugins/login-form-in-restricted-message-for-ultimate-member/um_form_in_restrict_message.php:10
    Stack trace:
    #0 wp-admin/includes/plugin.php(2318): include_once()
    #1 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.65ms] Passed 4 tests

Analyzing server-side resources used by Login Form in Restricted Message for Ultimate Member
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.08 ▼5.83
Dashboard /wp-admin3.31 ▲0.0044.50 ▼4.76
Posts /wp-admin/edit.php3.36 ▲0.0047.24 ▼1.89
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.00 ▼18.13
Media Library /wp-admin/upload.php3.23 ▲0.0034.78 ▲0.70

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Login Form in Restricted Message for Ultimate Member
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.27 ▼1.101.89 ▼0.2843.12 ▼6.41
Dashboard /wp-admin2,203 ▲125.86 ▲0.96100.78 ▼5.2741.19 ▼4.62
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0640.76 ▲2.9135.41 ▼1.63
Add New Post /wp-admin/post-new.php1,537 ▲418.28 ▼4.97646.55 ▼55.5154.38 ▲3.69
Media Library /wp-admin/upload.php1,391 ▲94.25 ▼0.0397.06 ▼0.6943.39 ▼1.06

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function UM() in wp-content/plugins/login-form-in-restricted-message-for-ultimate-member/um_form_in_restrict_message.php:10

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
3 plugin tags: restricted message, login form shortcode, ultimate member

login-form-in-restricted-message-for-ultimate-member/um_form_in_restrict_message.php 85% from 13 tests

The main file in "Login Form in Restricted Message for Ultimate Member" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("login-form-in-restricted-message-for-ultimate-member.php" instead of "um_form_in_restrict_message.php")
  • Description: The description should be shorter than 140 characters (currently 213 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected28 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP19728

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.83
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin