90% dismiss-welcome-nag

Code Review | Dismiss Welcome Panel Nag Dashboard Widget

WordPress plugin Dismiss Welcome Panel Nag Dashboard Widget scored90%from 54 tests.

About plugin

  • Plugin page: dismiss-welcome-nag
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3+
  • WordPress version: 6.3.1
  • First release: Nov 9, 2017
  • Latest release: Jun 13, 2018
  • Number of updates: 61
  • Update frequency: every 3.5 days
  • Top authors: Luciano Croce (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,139 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.01MB] [CPU: ▼5.26ms] Passed 4 tests

Analyzing server-side resources used by Dismiss Welcome Panel Nag Dashboard Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.42 ▲3.54
Dashboard /wp-admin3.31 ▲0.0145.83 ▼8.63
Posts /wp-admin/edit.php3.36 ▲0.0145.46 ▼1.84
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.44 ▼9.74
Media Library /wp-admin/upload.php3.23 ▲0.0036.60 ▼0.81

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Dismiss Welcome Panel Nag Dashboard Widget: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,588 ▼14714.45 ▼0.111.71 ▲0.0737.77 ▼5.45
Dashboard /wp-admin1,994 ▼1945.78 ▲0.7198.27 ▼13.4734.95 ▼6.50
Posts /wp-admin/edit.php2,089 ▼01.99 ▲0.0135.12 ▼4.4837.19 ▲3.72
Add New Post /wp-admin/post-new.php1,546 ▲3223.31 ▲5.72671.24 ▼5.2551.50 ▼5.29
Media Library /wp-admin/upload.php1,388 ▲34.25 ▲0.1095.73 ▼10.8640.57 ▼0.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tested up to: Invalid plugin version format
You can look at the official readme.txt

dismiss-welcome-nag/dismiss-welcome-nag.php Passed 13 tests

The entry point to "Dismiss Welcome Panel Nag Dashboard Widget" version 1.0.1 is a PHP file that has certain tags in its header comment area
117 characters long description:
Dismiss "Welcome Panel" nag, dashboard widget, when is activated, or automatically, if it is in mu-plugins directory.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin122 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP122192122

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions11
▷ Named functions11100.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