90% hide-admin-notices

Code Review | Hide Admin Notices

WordPress plugin Hide Admin Notices scored90%from 54 tests.

About plugin

  • Plugin page: hide-admin-notices
  • Plugin version: 1.2.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4
  • WordPress version: 6.3.1
  • First release: Apr 1, 2020
  • Latest release: Nov 13, 2023
  • Number of updates: 11
  • Update frequency: every 120.2 days
  • Top authors: etalented (81.82%)pontetlabs (27.27%)

Code review

54 tests

User reviews

16 reviews

Install metrics

20,000+ active /68,581 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.83ms] Passed 4 tests

A check of server-side resources used by Hide Admin Notices
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.92 ▼4.69
Dashboard /wp-admin3.35 ▲0.0447.86 ▼1.42
Posts /wp-admin/edit.php3.46 ▲0.1045.82 ▼0.92
Add New Post /wp-admin/post-new.php5.95 ▲0.0682.07 ▼12.28
Media Library /wp-admin/upload.php3.27 ▲0.0437.71 ▲5.63

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Hide Admin Notices
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲8113.56 ▲0.351.54 ▼3.4740.99 ▲2.70
Dashboard /wp-admin2,228 ▲504.83 ▼0.89103.83 ▼6.1340.31 ▲0.34
Posts /wp-admin/edit.php2,142 ▲452.24 ▲0.2751.55 ▲15.7736.56 ▲1.60
Add New Post /wp-admin/post-new.php1,546 ▲1723.12 ▼0.04687.06 ▲81.8352.27 ▲8.65
Media Library /wp-admin/upload.php1,436 ▲394.40 ▲0.22104.05 ▲7.4843.88 ▲4.39

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% 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
Please fix the following attributes:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

hide-admin-notices/hide-admin-notices.php Passed 13 tests

"Hide Admin Notices" version 1.2.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
96 characters long description:
Hide – or show – WordPress Dashboard Notices, Messages, Update Nags etc. ... for everything!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin671 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PO File66892295
CSS2720163
PHP651241154
JavaScript26959

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity2.25
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.31
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods1168.75%
▷ Protected methods00.00%
▷ Private methods531.25%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin