83% disable-admin-dashboard-notices

Code Review | Disable Admin Dashboard Notices - Get distraction free WordPress Dashboard to enhance your productivity.

WordPress plugin Disable Admin Dashboard Notices - Get distraction free WordPress Dashboard to enhance your productivity. scored83%from 54 tests.

About plugin

  • Plugin page: disable-admin-das...
  • Plugin version: 0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3.1
  • WordPress version: 6.3.1
  • First release: Apr 26, 2021
  • Latest release: Sep 21, 2023
  • Number of updates: 8
  • Update frequency: every 109.8 days
  • Top authors: wpfraternity (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /3,984 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: ▲0.08MB] [CPU: ▲1.26ms] Passed 4 tests

Server-side resources used by Disable Admin Dashboard Notices - Get distraction free WordPress Dashboard to enhance your productivity.
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0835.54 ▼0.23
Dashboard /wp-admin3.38 ▲0.0847.05 ▲5.05
Posts /wp-admin/edit.php3.49 ▲0.1447.98 ▼1.21
Add New Post /wp-admin/post-new.php5.98 ▲0.1091.05 ▲5.10
Media Library /wp-admin/upload.php3.30 ▲0.0834.21 ▲1.42

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Disable Admin Dashboard Notices - Get distraction free WordPress Dashboard to enhance your productivity.
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲4113.45 ▼0.961.64 ▼0.1636.08 ▼5.13
Dashboard /wp-admin2,231 ▲564.87 ▼0.80105.41 ▲6.0641.98 ▼2.25
Posts /wp-admin/edit.php2,142 ▲422.26 ▲0.2653.08 ▲19.4435.62 ▲2.13
Add New Post /wp-admin/post-new.php1,546 ▲2023.25 ▼0.08657.82 ▼8.7356.99 ▲5.11
Media Library /wp-admin/upload.php1,500 ▲1004.39 ▲0.24101.40 ▲1.0842.73 ▼1.73

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • 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
Everything seems fine, however 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
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Trait 'WPFraternity\\Disable_Admin_Dashboard\\Traits\\Singleton' not found in wp-content/plugins/disable-admin-dashboard-notices/inc/Assets.php on line 15
    • > PHP Fatal error
      Trait 'WPFraternity\\Disable_Admin_Dashboard\\Traits\\Singleton' not found in wp-content/plugins/disable-admin-dashboard-notices/inc/Plugin.php on line 15

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 90% from 29 tests

readme.txt 88% 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: 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 - Get distraction free WordPress Dashboard to enhance your productivity." v. 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 detected707 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12121336466
CSS2720163
JavaScript26959
JSON10019

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.39
Average class complexity9.50
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits1
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods37
▷ Static methods513.51%
▷ Public methods3183.78%
▷ Protected methods410.81%
▷ Private methods25.41%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
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