83% ultimate-member-widgets-for-elementor

Code Review | Ultimate Member Widgets for Elementor - WordPress User Directory

WordPress plugin Ultimate Member Widgets for Elementor - WordPress User Directory scored83%from 54 tests.

About plugin

  • Plugin page: ultimate-member-w...
  • Plugin version: 1.6
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Jun 19, 2022
  • Latest release: Sep 3, 2023
  • Number of updates: 19
  • Update frequency: every 23.4 days
  • Top authors: userelements (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /3,549 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Ultimate Member Widgets for Elementor - WordPress User Directory
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0233.94 ▼6.40
Dashboard /wp-admin3.33 ▲0.0345.41 ▼4.06
Posts /wp-admin/edit.php3.38 ▲0.0246.50 ▼6.57
Add New Post /wp-admin/post-new.php5.91 ▲0.0279.35 ▼21.17
Media Library /wp-admin/upload.php3.25 ▲0.0233.07 ▲0.40

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Ultimate Member Widgets for Elementor - WordPress User Directory
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲12614.45 ▲0.081.99 ▲0.2540.27 ▼4.13
Dashboard /wp-admin2,275 ▲845.81 ▼0.0996.27 ▼19.8741.34 ▼4.43
Posts /wp-admin/edit.php2,160 ▲712.15 ▲0.1342.46 ▲5.0239.31 ▲4.84
Add New Post /wp-admin/post-new.php1,587 ▲6823.19 ▼0.06682.73 ▼1.4551.47 ▲0.60
Media Library /wp-admin/upload.php1,460 ▲784.29 ▲0.1297.70 ▼0.5744.00 ▼0.14

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-member-widgets-for-elementor/inc/elementor-um-essential.php:198

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 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention: Please take inspiration from this readme.txt

ultimate-member-widgets-for-elementor/um-addon-elementor.php 77% from 13 tests

"Ultimate Member Widgets for Elementor - WordPress User Directory" version 1.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("ultimate-member-widgets-for-elementor.php" instead of "um-addon-elementor.php")
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin2,438 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP43191941,658
CSS110919780

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity39.00
▷ Minimum class complexity23.00
▷ Maximum class complexity55.00
Average method complexity5.47
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods847.06%
▷ Protected methods952.94%
▷ Private methods00.00%
Functions14
▷ Named functions1285.71%
▷ Anonymous functions214.29%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin