90% de-hide-updraftplus-dashboard-news

Code Review | DE Hide UpdraftPlus Dashboard News

WordPress plugin DE Hide UpdraftPlus Dashboard News scored 90% from 54 tests.

About plugin

  • Plugin page: de-hide-updraftpl...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: May 28, 2019
  • Latest release: Aug 3, 2023
  • Number of updates: 15
  • Update frequency: every 101.9 days
  • Top authors: davidbaumwald (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,608 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

This is a short check of server-side resources used by DE Hide UpdraftPlus Dashboard News
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.26 ▼4.88
Dashboard /wp-admin3.31 ▲0.0153.91 ▲9.25
Posts /wp-admin/edit.php3.36 ▲0.0149.24 ▼1.14
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.96 ▼11.28
Media Library /wp-admin/upload.php3.24 ▲0.0137.30 ▲1.04

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for DE Hide UpdraftPlus Dashboard News
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.21 ▼1.381.60 ▼0.6037.23 ▼5.04
Dashboard /wp-admin2,206 ▲184.83 ▼0.04105.03 ▲3.0437.01 ▼5.40
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0337.59 ▼4.7735.26 ▲0.57
Add New Post /wp-admin/post-new.php1,537 ▼523.43 ▲5.21677.37 ▲44.9463.81 ▲7.97
Media Library /wp-admin/upload.php1,388 ▼04.20 ▲0.0395.32 ▼14.7441.23 ▼1.18

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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
4 plugin tags: hide, news, updraft, dashboard

de-hide-updraftplus-dashboard-news/de-hide-updraftplus-dashboard-news.php Passed 13 tests

This is the main PHP file of "DE Hide UpdraftPlus Dashboard News" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
137 characters long description:
Some administrators that white-label their maintenance service may wish to hide UpdraftPlus "news" from appearing on the admin dashboard.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin15 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP141515

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin