99% disable-admin-dashboard-notices

Code Review | Disable Admin Dashboard Notices

WordPress plugin Disable Admin Dashboard Notices scored 99% from 54 tests.

About plugin

  • Plugin page: disable-admin-das...
  • Plugin version: 0.0.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.7
  • WordPress version: 5.8.1
  • First release: Apr 26, 2021
  • Latest release: Jun 29, 2021
  • Number of updates: 3
  • Update frequency: every 21.3 days
  • Top authors: wpfraternity (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 111 total downloads

Benchmarks

Plugin footprint Passed 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: ▼0.01MB] [CPU: ▼149.88ms] Passed 4 tests

Server-side resources used by Disable Admin Dashboard Notices
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0036.73 ▲0.75
Dashboard /wp-admin3.06 ▲0.0042.42 ▼9.23
Posts /wp-admin/edit.php3.10 ▼0.0045.72 ▼3.44
Add New Post /wp-admin/post-new.php5.41 ▼0.0292.95 ▼584.23
Media Library /wp-admin/upload.php3.00 ▼0.0035.08 ▼2.63

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Disable Admin Dashboard Notices
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,690 ▲9415.82 ▲0.628.76 ▼0.9153.33 ▲1.01
Dashboard /wp-admin2,954 ▲235.93 ▼0.03141.84 ▼9.67112.71 ▼6.72
Posts /wp-admin/edit.php2,728 ▼112.69 ▲0.0066.16 ▲2.9791.83 ▼1.39
Add New Post /wp-admin/post-new.php1,490 ▼19318.92 ▲0.17396.07 ▲22.96115.71 ▼6.95
Media Library /wp-admin/upload.php1,794 ▼135.01 ▼0.00155.22 ▲3.83122.50 ▲2.53

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can look at the official readme.txt

disable-admin-dashboard-notices/disable-admin-dashboard-notices.php 92% from 13 tests

The main file in "Disable Admin Dashboard Notices" v. 0.0.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected12 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP251312

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 images were found in this plugin