68% delete-bad-behavior-log

Code Review | Delete Bad Behavior Log

WordPress plugin Delete Bad Behavior Log scored68%from 54 tests.

About plugin

  • Plugin page: delete-bad-behavi...
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4.2
  • WordPress version: 6.3.1
  • First release: Sep 20, 2012
  • Latest release: Sep 20, 2012
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: parasmani (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,776 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.94MB] [CPU: ▼33.48ms] Passed 4 tests

An overview of server-side resources used by Delete Bad Behavior Log
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.30 ▼8.05
Dashboard /wp-admin3.00 ▼0.3023.85 ▼28.89
Posts /wp-admin/edit.php3.00 ▼0.3623.00 ▼21.79
Add New Post /wp-admin/post-new.php3.00 ▼2.8923.16 ▼71.96
Media Library /wp-admin/upload.php3.00 ▼0.2323.10 ▼11.29
Delete Bad Behavior Log /wp-admin/options-general.php?page=bd-delete-bad-behavior-log3.0023.62

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Delete Bad Behavior Log
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.48 ▲0.301.61 ▼0.5940.03 ▼4.59
Dashboard /wp-admin2,213 ▲254.85 ▼1.02108.70 ▼8.2943.75 ▲0.09
Posts /wp-admin/edit.php2,096 ▲72.04 ▲0.0250.42 ▲10.9445.37 ▲10.67
Add New Post /wp-admin/post-new.php1,534 ▼023.34 ▲0.07669.08 ▲27.6453.16 ▼2.48
Media Library /wp-admin/upload.php1,383 ▼54.23 ▼0.0296.74 ▼7.9942.19 ▼4.46
Delete Bad Behavior Log /wp-admin/options-general.php?page=bd-delete-bad-behavior-log6781.536.7219.97

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin does not fully uninstall, leaving 7 options in the database
    • recovery_mode_email_last_sent
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bd-delete-bad-behavior-log
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/options-general.php?page=bd-delete-bad-behavior-log
    • > Error in wp-content/plugins/delete-bad-behavior-log/delete-bad-behavior-log.php+25
    Uncaught Error: Call to undefined function mysql_query() in wp-content/plugins/delete-bad-behavior-log/delete-bad-behavior-log.php:25
    Stack trace:
    #0 wp-includes/class-wp-hook.php(310): bd_delete_bad_behavior_log_page()
    #1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 wp-admin/admin.php(259): do_action()
    #4 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
    #5 {main}
    thrown

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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/delete-bad-behavior-log/delete-bad-behavior-log.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Donate link: Invalid url: ""
You can look at the official readme.txt

delete-bad-behavior-log/delete-bad-behavior-log.php Passed 13 tests

The entry point to "Delete Bad Behavior Log" version 0.5 is a PHP file that has certain tags in its header comment area
38 characters long description:
Delete HTTP Log of Bad Behavior Plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin66 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18866

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin