84% display-recently-registered-users

Code Review | Display Recently Registered Users

WordPress plugin Display Recently Registered Users scored 84% from 54 tests.

About plugin

  • Plugin page: display-recently-...
  • Plugin version: 0.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9
  • WordPress version: 6.3.1
  • First release: Apr 27, 2014
  • Latest release: Aug 16, 2014
  • Number of updates: 7
  • Update frequency: every 16.1 days
  • Top authors: jp2112 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 2,324 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼2.80ms] Passed 4 tests

Server-side resources used by Display Recently Registered Users
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0635.10 ▼5.76
Dashboard /wp-admin3.36 ▲0.0645.19 ▼4.21
Posts /wp-admin/edit.php3.41 ▲0.0547.39 ▼1.53
Add New Post /wp-admin/post-new.php5.94 ▲0.0585.61 ▲1.22
Media Library /wp-admin/upload.php3.28 ▲0.0535.47 ▲0.29

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_drru_widget

Browser metrics Passed 4 tests

A check of browser resources used by Display Recently Registered Users
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.21 ▼1.191.90 ▲0.0040.90 ▼10.01
Dashboard /wp-admin2,206 ▲215.96 ▲0.1299.37 ▼8.6439.77 ▼2.22
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0639.65 ▼0.5435.81 ▼1.11
Add New Post /wp-admin/post-new.php1,534 ▲123.25 ▲0.19652.92 ▲33.9350.74 ▼15.44
Media Library /wp-admin/upload.php1,391 ▼04.13 ▼0.13102.52 ▲4.9847.80 ▲5.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_drru_widget
    • widget_theysaidso_widget
    • 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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/display-recently-registered-users/drru.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: register, users, widget, recent

display-recently-registered-users/drru.php 92% from 13 tests

The main PHP script in "Display Recently Registered Users" version 0.0.5 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("display-recently-registered-users.php" instead of "drru.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin166 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12021166

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity4.14
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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