89% um-block-report-user

Code Review | Block & Report User for Ultimate Member

WordPress plugin Block & Report User for Ultimate Member scored89%from 54 tests.

About plugin

  • Plugin page: um-block-report-user
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Nov 28, 2022
  • Latest release: Sep 3, 2023
  • Number of updates: 8
  • Update frequency: every 35.2 days
  • Top authors: mansurahamed (62.5%)iworksolo (50%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /786 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼7.88ms] Passed 4 tests

A check of server-side resources used by Block & Report User for Ultimate Member
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0535.61 ▼3.99
Dashboard /wp-admin3.35 ▲0.0543.67 ▼6.87
Posts /wp-admin/edit.php3.40 ▲0.0547.13 ▼1.95
Add New Post /wp-admin/post-new.php5.93 ▲0.0578.55 ▼18.72
Media Library /wp-admin/upload.php3.27 ▲0.0535.92 ▼0.58

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Block & Report User for Ultimate Member
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.24 ▼1.144.73 ▲2.7938.05 ▼3.11
Dashboard /wp-admin2,209 ▲305.78 ▼0.1197.67 ▼8.0041.41 ▼1.32
Posts /wp-admin/edit.php2,089 ▲32.17 ▲0.1534.42 ▼5.4933.71 ▼2.56
Add New Post /wp-admin/post-new.php1,534 ▲1423.02 ▼0.00632.33 ▼26.5353.46 ▼2.42
Media Library /wp-admin/upload.php1,388 ▲64.12 ▼0.04112.57 ▲16.2445.73 ▲2.71

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 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
6 plugin tags: block, report, deactivate user, block user, report user...

um-block-report-user/um-block-user.php 77% from 13 tests

Analyzing the main PHP file in "Block & Report User for Ultimate Member" version 1.0.2
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("um-block-report-user.php" instead of "um-block-user.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 173 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Success! There were no dangerous files found in this plugin246 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12652209
CSS10037

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.40
Average class complexity35.00
▷ Minimum class complexity35.00
▷ Maximum class complexity35.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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