84% new-user-dashboard

Code Review | New User Dashboard Widget

WordPress plugin New User Dashboard Widget scored 84% from 54 tests.

About plugin

  • Plugin page: new-user-dashboard
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.8
  • WordPress version: 6.3.1
  • First release: Jun 19, 2015
  • Latest release: Jun 23, 2017
  • Number of updates: 6
  • Update frequency: every 122.7 days
  • Top authors: swadeshswain (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

90+ active / 3,531 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.26ms] Passed 4 tests

An overview of server-side resources used by New User Dashboard Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0142.27 ▲0.90
Dashboard /wp-admin3.31 ▲0.0145.50 ▼2.72
Posts /wp-admin/edit.php3.36 ▲0.0050.21 ▼1.43
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.68 ▼5.79
Media Library /wp-admin/upload.php3.23 ▲0.0038.29 ▲2.56

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by New User Dashboard Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,875 ▲14013.18 ▼1.111.66 ▼0.0331.28 ▼18.66
Dashboard /wp-admin2,284 ▲934.91 ▼0.10107.90 ▲2.0642.99 ▼1.60
Posts /wp-admin/edit.php2,092 ▲31.98 ▼0.0640.11 ▼0.6034.86 ▼0.52
Add New Post /wp-admin/post-new.php1,514 ▼1417.88 ▼0.40670.78 ▲25.5260.16 ▲1.47
Media Library /wp-admin/upload.php1,388 ▲64.16 ▼0.11101.78 ▲0.3343.85 ▲1.68

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • 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 | 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: Call to undefined function add_action() in wp-content/plugins/new-user-dashboard/new-user-dashboard.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention: You can look at the official readme.txt

new-user-dashboard/new-user-dashboard.php Passed 13 tests

"New User Dashboard Widget" version 2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
55 characters long description:
Add a dashboard widget to Display Recent Registerd user

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
Everything looks great! No dangerous files found in this plugin38 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP10938

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions2
▷ Named functions2100.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 are no PNG files in this plugin