84% hide-wp-admin-notifications

Code Review | Hide WP Admin Notifications

WordPress plugin Hide WP Admin Notifications scored84%from 54 tests.

About plugin

  • Plugin page: hide-wp-admin-not...
  • Plugin version: 0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2
  • WordPress version: 6.3.1
  • First release: May 18, 2023
  • Latest release: May 18, 2023
  • Number of updates: 2
  • Update frequency: every 4.0 days
  • Top authors: yodaofwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /101 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Hide WP Admin Notifications
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0246.24 ▲2.42
Dashboard /wp-admin3.32 ▲0.0250.38 ▼11.58
Posts /wp-admin/edit.php3.35 ▼0.0054.60 ▼3.95
Add New Post /wp-admin/post-new.php5.90 ▲0.0295.62 ▼2.77
Media Library /wp-admin/upload.php3.24 ▲0.0241.28 ▲2.45
Hide WP Admin Notifications /wp-admin/options-general.php?page=hide-wp-admin-notifications3.2130.37

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Hide WP Admin Notifications
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,785 ▲2414.69 ▲0.341.64 ▼0.2441.69 ▼5.27
Dashboard /wp-admin2,191 ▲175.54 ▼0.0984.58 ▼15.7437.97 ▼5.22
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0438.90 ▼2.8235.67 ▼2.16
Add New Post /wp-admin/post-new.php1,521 ▼1622.99 ▲4.80650.45 ▲24.7454.35 ▼14.35
Media Library /wp-admin/upload.php1,396 ▼44.31 ▲0.23105.63 ▲10.4445.51 ▲5.69
Hide WP Admin Notifications /wp-admin/options-general.php?page=hide-wp-admin-notifications7932.0423.9084.72

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • 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 no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/hide-wp-admin-notifications/hide-wp-admin-notifications.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: notifications, dashboard, hide, admin

hide-wp-admin-notifications/hide-wp-admin-notifications.php 92% from 13 tests

The primary PHP file in "Hide WP Admin Notifications" version 0.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 147 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin211 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS11616111
PHP12224100

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected