84% dmn-hush

Code Review | DMN (Hush)

WordPress plugin DMN (Hush) scored84%from 54 tests.

About plugin

  • Plugin page: dmn-hush
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jun 5, 2023
  • Latest release: Jun 5, 2023
  • Number of updates: 2
  • Update frequency: every 2.5 days
  • Top authors: dmnplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /141 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼9.55ms] Passed 4 tests

This is a short check of server-side resources used by DMN (Hush)
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.03 ▲1.56
Dashboard /wp-admin3.32 ▼0.0345.17 ▼16.81
Posts /wp-admin/edit.php3.35 ▼0.0143.78 ▼3.99
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.86 ▼15.14
Media Library /wp-admin/upload.php3.24 ▲0.0132.88 ▼2.27
All Comments /wp-admin/edit-comments.php3.0922.49

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: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for DMN (Hush)
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,783 ▲3713.25 ▼1.134.34 ▲2.6338.85 ▼3.82
Dashboard /wp-admin2,189 ▲45.83 ▼0.0298.46 ▼21.1241.07 ▼7.19
Posts /wp-admin/edit.php1,940 ▼1492.05 ▲0.0536.16 ▼2.5131.97 ▼6.54
Add New Post /wp-admin/post-new.php1,511 ▼1723.21 ▲4.62644.51 ▼3.5555.97 ▲4.26
Media Library /wp-admin/upload.php1,371 ▼174.18 ▼0.2097.32 ▼6.2543.28 ▲0.23
All Comments /wp-admin/edit-comments.php2,1925.7680.3035.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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dmn-hush/dmn-hush.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: discussion, disable, comments

dmn-hush/dmn-hush.php Passed 13 tests

This is the main PHP file of "DMN (Hush)" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
92 characters long description:
Disables comments on all post types in WordPress and hide comments tab on site control panel

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
No dangerous file extensions were detected43 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP171543

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for 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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin