84% disable-admin-notices

Code Review | Disable Admin Notices individually

WordPress plugin Disable Admin Notices individually scored84%from 54 tests.

About plugin

  • Plugin page: disable-admin-not...
  • Plugin version: 1.3.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.4
  • WordPress version: 6.3.1
  • First release: Jan 18, 2018
  • Latest release: Nov 23, 2023
  • Number of updates: 40
  • Update frequency: every 53.4 days
  • Top authors: alexkovalevv (42.5%)webtemyk (30%)webcraftic (25%)creativemotion (10%)

Code review

54 tests

User reviews

332 reviews

Install metrics

100,000+ active /899,101 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.63MB] [CPU: ▲14.18ms] Passed 4 tests

An overview of server-side resources used by Disable Admin Notices individually
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.49 ▲1.0345.13 ▲3.86
Dashboard /wp-admin5.17 ▲1.8763.01 ▲11.44
Posts /wp-admin/edit.php5.22 ▲1.8768.33 ▲22.78
Add New Post /wp-admin/post-new.php7.71 ▲1.82111.34 ▲22.59
Media Library /wp-admin/upload.php5.03 ▲1.8050.31 ▲18.84
Hide admin notices /wp-admin/options-general.php?page=wdan_settings-wbcr_dan5.85344.61

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 289 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
wbcr_dan_plugin_activated
can_compress_scripts
wbcr_dan_plugin_version
widget_theysaidso_widget
wbcr_dan_adminbar_items
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Disable Admin Notices individually
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,936 ▲18914.68 ▲0.311.57 ▼0.1341.98 ▼1.37
Dashboard /wp-admin2,341 ▲1635.77 ▲0.0797.07 ▼6.7445.80 ▲0.93
Posts /wp-admin/edit.php2,249 ▲1492.36 ▲0.4039.80 ▲0.5737.33 ▲5.03
Add New Post /wp-admin/post-new.php1,624 ▲9823.23 ▲0.10687.24 ▲90.5336.24 ▼15.56
Media Library /wp-admin/upload.php1,535 ▲1354.24 ▲0.0298.05 ▼8.0642.68 ▼1.68
Hide admin notices /wp-admin/options-general.php?page=wdan_settings-wbcr_dan1,4402.3944.9242.19

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WBCR\\Factory_Templates_126\\Pages\\Step' not found in wp-content/plugins/disable-admin-notices/libs/factory/templates/pages/setup-parts/class-step-form.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WBCR\\Factory_Templates_126\\Pages\\Step' not found in wp-content/plugins/disable-admin-notices/libs/factory/templates/pages/setup-parts/class-step-custom.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Wbcr_Factory473_Update' not found in wp-content/plugins/disable-admin-notices/migrations/010007.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Wbcr_FactoryForms469_FontControl' not found in wp-content/plugins/disable-admin-notices/libs/factory/forms/controls/google-font.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: upgrade, notifications, nag, disable, notification...

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

The principal PHP file in "Disable Admin Notices individually" v. 1.3.4 is loaded by WordPress automatically on each request
113 characters long description:
Disable admin notices plugin gives you the option to hide updates warnings and inline notices in the admin panel.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected22,042 lines of code in 217 files:
LanguageFilesBlank linesComment linesLines of code
PHP1453,9419,30813,114
CSS301802633,008
LESS9470962,277
JSON1001,810
PO File112753481,041
JavaScript18215211742
SVG22048
Markdown1102

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity15.15
▷ Minimum class complexity1.00
▷ Maximum class complexity89.00
Average method complexity3.09
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces15
Interfaces2
Traits1
Classes120
▷ Abstract classes1714.17%
▷ Concrete classes10385.83%
▷ Final classes21.94%
Methods861
▷ Static methods576.62%
▷ Public methods66977.70%
▷ Protected methods14216.49%
▷ Private methods505.81%
Functions45
▷ Named functions2351.11%
▷ Anonymous functions2248.89%
Constants76
▷ Global constants6281.58%
▷ Class constants1418.42%
▷ Public constants14100.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
6 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
libs/factory/templates/pages/templates/impressive/assets/img/5-stars22.png3.51KB0.70KB▼ 79.99%
libs/factory/templates/pages/templates/impressive-lite/assets/img/paypal-donate.png12.44KB4.99KB▼ 59.88%
libs/factory/templates/pages/templates/impressive/assets/img/webcraftic-plugin-icon.png1.97KB0.75KB▼ 61.79%
libs/factory/templates/pages/templates/impressive/assets/img/paypal-donate.png12.44KB4.99KB▼ 59.88%
libs/factory/templates/pages/templates/impressive-lite/assets/img/webcraftic-plugin-icon.png1.97KB0.75KB▼ 61.79%