84% login-widget-for-ultimate-member

Code Review | Login Widget for Ultimate Member

WordPress plugin Login Widget for Ultimate Member scored84%from 54 tests.

About plugin

  • Plugin page: login-widget-for-...
  • Plugin version: 1.0.9.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Nov 17, 2015
  • Latest release: May 21, 2023
  • Number of updates: 28
  • Update frequency: every 98.0 days
  • Top authors: suiteplugins (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active /54,433 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.40ms] Passed 4 tests

This is a short check of server-side resources used by Login Widget for Ultimate Member
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0736.92 ▼1.43
Dashboard /wp-admin3.37 ▲0.0644.37 ▼1.79
Posts /wp-admin/edit.php3.48 ▲0.1346.30 ▼3.22
Add New Post /wp-admin/post-new.php5.95 ▲0.0682.93 ▼11.16
Media Library /wp-admin/upload.php3.29 ▲0.0636.05 ▲3.30

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_um_login_widget
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Login Widget for Ultimate Member
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲8213.53 ▼0.721.97 ▲0.2245.83 ▲4.68
Dashboard /wp-admin2,206 ▲184.82 ▼1.00107.52 ▲0.1942.10 ▼3.97
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0333.37 ▼4.9634.82 ▲2.70
Add New Post /wp-admin/post-new.php1,533 ▼023.11 ▲0.05676.26 ▼23.2352.24 ▼6.22
Media Library /wp-admin/upload.php1,391 ▲34.22 ▲0.0597.43 ▼4.1644.03 ▲2.54

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
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_um_login_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_current_user_id() in wp-content/plugins/login-widget-for-ultimate-member/templates/login-widget/login-view.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_shortcode() in wp-content/plugins/login-widget-for-ultimate-member/templates/login-widget/login-form.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/login-widget-for-ultimate-member/login-widget-for-ultimate-member.php:12

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: ultimate member, login form ultimate member, login widget, ultimate member widget, login form...

login-widget-for-ultimate-member/login-widget-for-ultimate-member.php Passed 13 tests

The main PHP file in "Login Widget for Ultimate Member" ver. 1.0.9.7 adds more information about the plugin and also serves as the entry point for this plugin
35 characters long description:
A login widget for Ultimate Member.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected429 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP44269349
PO File2242880

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
1 PNG file occupies 0.09MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png96.50KB24.89KB▼ 74.20%