84% last-users-dashboard-widget

Code Review | Last-USERS-Dashboard-Widget

WordPress plugin Last-USERS-Dashboard-Widget scored84%from 54 tests.

About plugin

  • Plugin page: last-users-dashbo...
  • Plugin version: 0.305
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.3
  • WordPress version: 6.3.1
  • First release: Sep 5, 2017
  • Latest release: Oct 23, 2019
  • Number of updates: 13
  • Update frequency: every 59.9 days
  • Top authors: net4me (61.54%)n4me (46.15%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.82ms] Passed 4 tests

A check of server-side resources used by Last-USERS-Dashboard-Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.90 ▼1.39
Dashboard /wp-admin3.32 ▼0.0245.58 ▼16.52
Posts /wp-admin/edit.php3.37 ▲0.0243.42 ▲0.10
Add New Post /wp-admin/post-new.php5.90 ▲0.0280.45 ▼15.90
Media Library /wp-admin/upload.php3.25 ▲0.0232.32 ▼1.45

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Last-USERS-Dashboard-Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,889 ▲14314.35 ▲0.002.09 ▲0.2837.94 ▼3.75
Dashboard /wp-admin2,270 ▲905.63 ▼0.0583.44 ▼2.1341.41 ▼4.25
Posts /wp-admin/edit.php2,100 ▲31.95 ▼0.0136.63 ▼1.0833.12 ▼2.98
Add New Post /wp-admin/post-new.php1,536 ▼022.98 ▲4.95660.96 ▲23.1351.11 ▼10.05
Media Library /wp-admin/upload.php1,397 ▼64.24 ▲0.0199.05 ▲3.7042.99 ▲1.49

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 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/last-users-dashboard-widget/last-users-dashboard-widget.php:53

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 96% from 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
9 plugin tags: dashboard, registered, show activity, users, antibot...

last-users-dashboard-widget/last-users-dashboard-widget.php 92% from 13 tests

The main PHP script in "Last-USERS-Dashboard-Widget" version 0.305 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 585 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin38 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP141438

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions4
▷ Named functions4100.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