84% wp-hide-backed-notices

Code Review | Hide Dashboard Notifications

WordPress plugin Hide Dashboard Notifications scored84%from 54 tests.

About plugin

  • Plugin page: wp-hide-backed-no...
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Mar 12, 2019
  • Latest release: Jul 7, 2023
  • Number of updates: 33
  • Update frequency: every 47.9 days
  • Top authors: wprepublic (45.45%)bitofwp (33.33%)hk1993 (27.27%)

Code review

54 tests

User reviews

25 reviews

Install metrics

30,000+ active /137,582 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Hide Dashboard Notifications
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.39 ▲0.20
Dashboard /wp-admin3.32 ▲0.0247.12 ▲0.75
Posts /wp-admin/edit.php3.37 ▲0.0243.93 ▼6.45
Add New Post /wp-admin/post-new.php5.92 ▲0.0484.59 ▼11.23
Media Library /wp-admin/upload.php3.24 ▲0.0234.13 ▲0.09

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Hide Dashboard Notifications
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲10013.63 ▼0.801.91 ▲0.0349.09 ▼1.21
Dashboard /wp-admin2,238 ▲474.92 ▼0.9397.68 ▼8.5175.68 ▲33.93
Posts /wp-admin/edit.php2,121 ▲322.02 ▼0.0135.02 ▼0.5232.89 ▼1.84
Add New Post /wp-admin/post-new.php1,695 ▲16222.50 ▼0.49706.16 ▲63.3847.77 ▼18.23
Media Library /wp-admin/upload.php1,417 ▲324.22 ▲0.08111.12 ▲8.7644.70 ▼0.67

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • manage_warnings_notice
    • theysaidso_admin_options

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-hide-backed-notices/public/partials/wp-hide-backed-notices-public-display.php
    • > /wp-content/plugins/wp-hide-backed-notices/admin/partials/wp-hide-backed-notices-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Donate link: Please fix this invalid URI: ""
You can take inspiration from this readme.txt

wp-hide-backed-notices/wp-hide-backed-notices.php 92% from 13 tests

The main PHP script in "Hide Dashboard Notifications" version 1.2.3 is automatically included on every request by WordPress
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 158 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected460 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12111547405
CSS21829
JavaScript285526

PHP code Passed 2 tests

Analyzing 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.32
Average class complexity7.29
▷ Minimum class complexity1.00
▷ Maximum class complexity42.00
Average method complexity2.69
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods26
▷ Static methods27.69%
▷ Public methods2180.77%
▷ Protected methods00.00%
▷ Private methods519.23%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/notice.png1.39KB0.82KB▼ 41.49%
admin/images/dash-hide-white.png1.76KB0.56KB▼ 68.17%
admin/images/hide-dash-menu.png1.86KB0.73KB▼ 61.04%
admin/images/hide-setting-white.png1.47KB0.62KB▼ 57.95%