84% database-debugging-tools-for-developers

Code Review | Database Debugging Tools for Developers

WordPress plugin Database Debugging Tools for Developers scored84%from 54 tests.

About plugin

  • Plugin page: database-debuggin...
  • Plugin version: 2.2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.7
  • WordPress version: 6.3.1
  • First release: Nov 3, 2015
  • Latest release: Dec 24, 2016
  • Number of updates: 24
  • Update frequency: every 17.4 days
  • Top authors: Magenta Cuda (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,985 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.13MB] [CPU: ▼5.22ms] Passed 4 tests

An overview of server-side resources used by Database Debugging Tools for Developers
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1338.77 ▼3.40
Dashboard /wp-admin3.44 ▲0.1452.22 ▼0.53
Posts /wp-admin/edit.php3.55 ▲0.2048.61 ▼4.10
Add New Post /wp-admin/post-new.php6.02 ▲0.1393.57 ▼12.86
Media Library /wp-admin/upload.php3.36 ▲0.1342.25 ▲2.83

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Database Debugging Tools for Developers
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.16 ▼0.121.99 ▲0.2843.35 ▲1.68
Dashboard /wp-admin2,211 ▲315.63 ▼0.0790.07 ▼3.2540.41 ▼7.70
Posts /wp-admin/edit.php2,119 ▲191.99 ▲0.0534.33 ▼6.3230.02 ▼5.78
Add New Post /wp-admin/post-new.php1,539 ▲1323.09 ▼0.00655.01 ▼46.1953.40 ▼9.57
Media Library /wp-admin/upload.php1,419 ▲164.17 ▼0.04106.49 ▲1.8246.59 ▼0.65

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
The following issues need your attention
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ddt_x_wp_db_tools\\is_admin() in wp-content/plugins/database-debugging-tools-for-developers/wp-db-backup.php:379
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ddt_x_wp_db_tools\\ddt_get_options() in wp-content/plugins/database-debugging-tools-for-developers/wp-db-diff.php:146
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ddt_x_wp_db_tools\\is_admin() in wp-content/plugins/database-debugging-tools-for-developers/wp-db-backup.php:379

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid URI found ("")
The official readme.txt is a good inspiration

database-debugging-tools-for-developers/wp-db-tools-loader.php 92% from 13 tests

The main file in "Database Debugging Tools for Developers" v. 2.2.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:
  • Main file name: Name the main plugin file the same as the plugin slug ("database-debugging-tools-for-developers.php" instead of "wp-db-tools-loader.php")

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
Everything looks great! No dangerous files found in this plugin1,853 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP41321821,301
JavaScript33322399
CSS1151153

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued 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
Namespaces2
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%
Functions62
▷ Named functions2946.77%
▷ Anonymous functions3353.23%
Constants11
▷ Global constants00.00%
▷ Class constants11100.00%
▷ Public constants11100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin