10% db-error-customizer

Code Review | DB Error Customizer - Free

WordPress plugin DB Error Customizer - Free scored10%from 54 tests.

About plugin

  • Plugin page: db-error-customizer
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.1
  • WordPress version: 6.3.1
  • First release: Mar 15, 2016
  • Latest release: Jan 13, 2017
  • Number of updates: 7
  • Update frequency: every 43.6 days
  • Top authors: KenazChan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,535 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/db-error-customizer/db-error-customizer.php+23
    include_once(source/setting.php): failed to open stream: No such file or directory

Server metrics [RAM: ▼1.92MB] [CPU: ▼56.31ms] Passed 4 tests

This is a short check of server-side resources used by DB Error Customizer - Free
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.11 ▼1.395.69 ▼35.14
Dashboard /wp-admin2.13 ▼1.225.78 ▼47.40
Posts /wp-admin/edit.php2.13 ▼1.277.84 ▼44.40
Add New Post /wp-admin/post-new.php2.13 ▼3.806.69 ▼98.28
Media Library /wp-admin/upload.php2.13 ▼1.145.52 ▼33.25
DB Error Customizer /wp-admin/options-general.php?page=db-error-customizer2.136.30

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
recovery_mode_email_last_sent
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for DB Error Customizer - Free
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,461 ▼1,30012.39 ▼1.981.78 ▼0.1241.52 ▼6.35
Dashboard /wp-admin854 ▼1,3231.36 ▼4.2513.11 ▼80.3719.60 ▼25.95
Posts /wp-admin/edit.php865 ▼1,2351.51 ▼0.487.69 ▼32.3421.33 ▼17.67
Add New Post /wp-admin/post-new.php590 ▼9361.71 ▼21.7820.83 ▼677.507.80 ▼49.20
Media Library /wp-admin/upload.php750 ▼6501.71 ▼2.5223.65 ▼83.0824.07 ▼20.31
DB Error Customizer /wp-admin/options-general.php?page=db-error-customizer6851.128.5116.81

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/db-error-customizer/db-error-customizer.php+23
    include_once(source/setting.php): failed to open stream: No such file or directory
  • Incomplete uninstall procedure, leaving 17 files (0.23MB) in the plugin directory
    • (new file) admin-menu.php
    • (new file) templates/mystery.jpg
    • (new file) preview.html
    • (new file) db-error-customizer.php
    • (new file) readme.txt
    • (new file) config.txt
    • (new file) templates/basic.jpg
    • (new file) assets/js/db-error-customizer.js
    • (new file) assets/images/template-logo-1.png
    • (new file) templates/basic.txt
    • ...
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • widget_recent-posts
    • recovery_mode_email_last_sent
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=db-error-customizer
    • > Warning in wp-content/plugins/db-error-customizer/db-error-customizer.php+23
    include_once(source/setting.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/options-general.php?page=db-error-customizer
    • > Warning in wp-content/plugins/db-error-customizer/db-error-customizer.php+23
    include_once(): Failed opening 'source/setting.php' for inclusion (include_path='.:/usr/share/php')
    • > GET request to /wp-admin/options-general.php?page=db-error-customizer
    • > Warning in wp-content/plugins/db-error-customizer/db-error-customizer.php+24
    include_once(source/builder.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/options-general.php?page=db-error-customizer
    • > Warning in wp-content/plugins/db-error-customizer/db-error-customizer.php+24
    include_once(): Failed opening 'source/builder.php' for inclusion (include_path='.:/usr/share/php')
    • > GET request to /wp-admin/options-general.php?page=db-error-customizer
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
    • > GET request to /wp-admin/options-general.php?page=db-error-customizer
    • > Error in wp-content/plugins/db-error-customizer/db-error-customizer.php+30
    Uncaught Error: Class 'Setting' not found in wp-content/plugins/db-error-customizer/db-error-customizer.php:30
    Stack trace:
    #0 wp-includes/class-wp-hook.php(310): dec_plugin_admin_notices()
    #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-header.php(303): do_action()
    #4 wp-admin/admin.php(239): require_once('/var/www/wordpr...')
    #5 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
    #6 {main}
    thrown

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

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 require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === db-error-customizer === )
The official readme.txt is a good inspiration

db-error-customizer/db-error-customizer.php 92% from 13 tests

The principal PHP file in "DB Error Customizer - Free" v. 2.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
Good job! No executable or dangerous file extensions detected442 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP25056340
JavaScript12537102

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.54
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%
Functions5
▷ Named functions5100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/template-logo-1.png6.35KB3.23KB▼ 49.19%