84% latest-users-dashboard-widget

Code Review | Latest Users Dashboard Widget

WordPress plugin Latest Users Dashboard Widget scored84%from 54 tests.

About plugin

  • Plugin page: latest-users-dash...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6.0
  • WordPress version: 6.3.1
  • First release: Jun 6, 2016
  • Latest release: Jul 28, 2016
  • Number of updates: 6
  • Update frequency: every 9.0 days
  • Top authors: clarionwpdeveloper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /798 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

A check of server-side resources used by Latest Users Dashboard Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0344.98 ▲4.47
Dashboard /wp-admin3.33 ▼0.0148.32 ▼21.88
Posts /wp-admin/edit.php3.38 ▲0.0349.78 ▲3.82
Add New Post /wp-admin/post-new.php5.91 ▲0.0384.55 ▼11.88
Media Library /wp-admin/upload.php3.26 ▲0.0335.81 ▼0.87

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
dashboard_widget_options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Latest Users Dashboard Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲8214.28 ▲0.121.80 ▲0.0342.38 ▼2.78
Dashboard /wp-admin2,246 ▲785.60 ▲0.08100.50 ▲5.0641.01 ▼1.61
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0237.17 ▲0.1536.27 ▼0.88
Add New Post /wp-admin/post-new.php1,526 ▼023.10 ▲0.11665.24 ▼33.1651.71 ▼10.84
Media Library /wp-admin/upload.php1,400 ▼04.18 ▲0.0698.63 ▼14.1942.54 ▼4.88

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • dashboard_widget_options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/latest-users-dashboard-widget/widget.php
    • > /wp-content/plugins/latest-users-dashboard-widget/latest-users-dashboard-widget.php
    • > /wp-content/plugins/latest-users-dashboard-widget/widget-config.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: author, custom post types, sorting, posts, filters...

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

This is the main PHP file of "Latest Users Dashboard Widget" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected160 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP45088160

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods8100.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin