79% double-knot-security

Code Review | Double Knot

WordPress plugin Double Knot scored79%from 54 tests.

About plugin

  • Plugin page: double-knot-security
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.8
  • WordPress version: 6.3.1
  • First release: Jun 15, 2017
  • Latest release: Jun 15, 2017
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: mattturow (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /696 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼2.69ms] Passed 4 tests

Server-side resources used by Double Knot
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0743.70 ▲2.01
Dashboard /wp-admin3.38 ▲0.0750.91 ▼3.51
Posts /wp-admin/edit.php3.43 ▲0.0750.66 ▼1.70
Add New Post /wp-admin/post-new.php5.96 ▲0.0789.36 ▼7.56
Media Library /wp-admin/upload.php3.30 ▲0.0741.06 ▲6.62
Double Knot Security /wp-admin/options-general.php?page=kdmdks3.1024.20

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
kdmdks_settings
db_upgraded

Browser metrics Passed 4 tests

Double Knot: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.42 ▲0.071.81 ▼0.0448.31 ▲8.35
Dashboard /wp-admin2,199 ▲245.63 ▼0.0486.12 ▼19.4038.03 ▼4.84
Posts /wp-admin/edit.php2,104 ▲41.99 ▲0.0037.44 ▼0.4134.09 ▼3.86
Add New Post /wp-admin/post-new.php1,529 ▼623.20 ▲4.54671.97 ▲9.5060.24 ▼1.24
Media Library /wp-admin/upload.php1,404 ▲14.17 ▼0.0496.82 ▼3.5944.20 ▼1.06
Double Knot Security /wp-admin/options-general.php?page=kdmdks9362.0027.3437.81

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=kdmdks
    • > Notice in wp-content/plugins/double-knot-security/double-knot-security.php+256
    Undefined index: kdmdks-nonce

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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/double-knot-security/double-knot-security.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: user enumeration, security, protect, log, iptables

double-knot-security/double-knot-security.php Passed 13 tests

The main PHP script in "Double Knot" version 1.0.0 is automatically included on every request by WordPress
45 characters long description:
Stop brute force login attempts by user name.

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
Everything looks great! No dangerous files found in this plugin527 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP173166390
CSS111137

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin