84% disable-wp-notification

Code Review | Disable WP Notification

WordPress plugin Disable WP Notification scored84%from 54 tests.

About plugin

  • Plugin page: disable-wp-notifi...
  • Plugin version: 3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: May 21, 2020
  • Latest release: May 23, 2023
  • Number of updates: 20
  • Update frequency: every 54.9 days
  • Top authors: sourabh.asct (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

10,000+ active /28,348 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

Analyzing server-side resources used by Disable WP Notification
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.89 ▼5.55
Dashboard /wp-admin3.32 ▲0.0148.09 ▼8.58
Posts /wp-admin/edit.php3.37 ▲0.0152.44 ▲6.28
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.19 ▼7.12
Media Library /wp-admin/upload.php3.24 ▲0.0140.98 ▲5.58

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Disable WP Notification
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲7314.25 ▼0.102.29 ▲0.0842.56 ▼1.29
Dashboard /wp-admin2,215 ▲415.63 ▲0.1092.69 ▼2.8536.95 ▼9.36
Posts /wp-admin/edit.php2,120 ▲172.02 ▲0.0339.05 ▼0.1035.99 ▼2.42
Add New Post /wp-admin/post-new.php1,543 ▲1023.08 ▲0.32683.50 ▲17.7466.19 ▲9.35
Media Library /wp-admin/upload.php1,414 ▲204.21 ▼0.10101.74 ▲1.6044.33 ▲1.12

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/disable-wp-notification/admin/partials/disable-wp-notification-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can take inspiration from this readme.txt

disable-wp-notification/disable-wp-notification.php Passed 13 tests

The main file in "Disable WP Notification" v. 3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
136 characters long description:
Best wordpress plugin to remove all the admin panel notifications in just one click. Including the theme and plugin update notification.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin582 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP10133455417
CSS1224150
JavaScript232715

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.28
Average class complexity5.33
▷ Minimum class complexity1.00
▷ Maximum class complexity24.00
Average method complexity2.13
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods23
▷ Static methods28.70%
▷ Public methods1878.26%
▷ Protected methods00.00%
▷ Private methods521.74%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin