84% disable-welcome-messages-and-tips

Code Review | Disable Welcome Messages and Tips

WordPress plugin Disable Welcome Messages and Tips scored84%from 54 tests.

About plugin

  • Plugin page: disable-welcome-m...
  • Plugin version: 1.1
  • PHP compatiblity: 5.7+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 25, 2020
  • Latest release: Aug 18, 2023
  • Number of updates: 27
  • Update frequency: every 41.6 days
  • Top authors: Jules Colle (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

1,000+ active /52,268 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 gracefully, with no errors

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

An overview of server-side resources used by Disable Welcome Messages and Tips
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0044.29 ▼3.23
Dashboard /wp-admin3.31 ▲0.0058.06 ▲0.25
Posts /wp-admin/edit.php3.36 ▲0.0049.35 ▼6.48
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.50 ▼10.68
Media Library /wp-admin/upload.php3.24 ▲0.0039.77 ▲3.00

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Disable Welcome Messages and Tips
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲914.35 ▼0.211.66 ▼0.6444.38 ▲0.68
Dashboard /wp-admin2,204 ▲305.58 ▼0.0098.64 ▼6.4543.07 ▼2.60
Posts /wp-admin/edit.php2,106 ▲31.98 ▼0.0439.00 ▼0.8437.29 ▲3.54
Add New Post /wp-admin/post-new.php1,510 ▼1623.24 ▲0.05645.85 ▼15.7358.55 ▲2.52
Media Library /wp-admin/upload.php1,409 ▲64.22 ▲0.04103.98 ▼6.9743.92 ▼2.65

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/disable-welcome-messages-and-tips/disable-welcome-messages-and-tips.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: notifications, block-editor, gutenberg

disable-welcome-messages-and-tips/disable-welcome-messages-and-tips.php Passed 13 tests

This is the main PHP file of "Disable Welcome Messages and Tips" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
60 characters long description:
Hide Welcome Messages and Tips in the Gutenberg Block Editor

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
There were no executable files found in this plugin17 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP121017

PHP code Passed 2 tests

This is a very shot 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.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin