78% hide-admin-dashboard-notifications

Code Review | Hide Admin Dashboard Notifications

WordPress plugin Hide Admin Dashboard Notifications scored78%from 54 tests.

About plugin

  • Plugin page: hide-admin-dashbo...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 23, 2023
  • Latest release: Jul 27, 2023
  • Number of updates: 3
  • Update frequency: every 42.0 days
  • Top authors: cylas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /132 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
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼6.08ms] Passed 4 tests

This is a short check of server-side resources used by Hide Admin Dashboard Notifications
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0940.38 ▲0.36
Dashboard /wp-admin3.39 ▲0.0551.67 ▼11.74
Posts /wp-admin/edit.php3.50 ▲0.1548.87 ▲1.74
Add New Post /wp-admin/post-new.php5.99 ▲0.1094.53 ▼14.37
Media Library /wp-admin/upload.php3.31 ▲0.0837.60 ▲1.42
xxx /wp-admin/admin.php?page=admin-cod-menu-hack3.1227.93
Hide dashboard notifications /wp-admin/admin.php?page=belo_main3.2834.46

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Hide Admin Dashboard Notifications
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,942 ▲17113.65 ▼0.738.29 ▲6.2743.95 ▲1.50
Dashboard /wp-admin2,225 ▲375.91 ▲0.9799.00 ▼9.3692.44 ▲48.09
Posts /wp-admin/edit.php2,126 ▲372.04 ▲0.0437.14 ▼0.1133.13 ▼0.58
Add New Post /wp-admin/post-new.php1,698 ▲17822.54 ▼0.75675.01 ▲36.3251.91 ▼13.77
Media Library /wp-admin/upload.php1,423 ▲354.25 ▲0.05111.67 ▲11.4846.13 ▲2.32
xxx /wp-admin/admin.php?page=admin-cod-menu-hack280.440.073.87
Hide dashboard notifications /wp-admin/admin.php?page=belo_main9332.1742.0432.36

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

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
Please take a closer look at the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/hide-admin-dashboard-notifications/public/partials/belo-hide-admin-notifications-public-display.php
    • > /wp-content/plugins/hide-admin-dashboard-notifications/admin/partials/belo-hide-admin-notifications-admin-display.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=admin-cod-menu-hack
    • > Network (severe)
    wp-admin/admin.php?page=admin-cod-menu-hack - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Requires at least: Invalid plugin version format
Please take inspiration from this readme.txt

hide-admin-dashboard-notifications/belo-hide-admin-notifications.php 85% from 13 tests

"Hide Admin Dashboard Notifications" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hide-admin-dashboard-notifications.php" instead of "belo-hide-admin-notifications.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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 plugin4,928 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript411793,805
CSS5312759
PHP12168541364

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity3.29
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity6.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%
Functions3
▷ Named functions3100.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
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/belo.png30.06KB14.31KB▼ 52.40%
admin/logo.png21.80KB9.69KB▼ 55.56%