77% debug-log-config-tool

Code Review | WP Debug Log - Configuration Tool

WordPress plugin WP Debug Log - Configuration Tool scored 77% from 54 tests.

About plugin

  • Plugin page: debug-log-config-...
  • Plugin version: 1.4.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Aug 15, 2021
  • Latest release: Aug 22, 2023
  • Number of updates: 29
  • Update frequency: every 25.5 days
  • Top authors: pyrobd (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active / 14,000 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▲0.74ms] Passed 4 tests

An overview of server-side resources used by WP Debug Log - Configuration Tool
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.99 ▼6.64
Dashboard /wp-admin3.38 ▲0.0752.08 ▲4.37
Posts /wp-admin/edit.php3.49 ▲0.1348.66 ▲1.09
Add New Post /wp-admin/post-new.php6.25 ▲0.3789.46 ▲4.15
Media Library /wp-admin/upload.php3.36 ▲0.1442.96 ▲9.08
Debug Logs /wp-admin/tools.php?page=dlct_logs3.3331.11

Server storage [IO: ▲2.94MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Please fix the following
  • You have illegally modified 1 file (4.29KB) outside of "wp-content/plugins/debug-log-config-tool/" and "wp-content/uploads/"
    • (modified) wp-config.php
Filesystem: 33 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
DebugLogConfigTool_data_initial
can_compress_scripts
widget_recent-posts
widget_recent-comments
debuglogconfigtool_updated_constant

Browser metrics Passed 4 tests

Checking browser requirements for WP Debug Log - Configuration Tool
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲7813.24 ▼0.961.96 ▼0.2843.51 ▲0.56
Dashboard /wp-admin2,219 ▲315.84 ▲0.96100.17 ▼13.2739.31 ▼7.89
Posts /wp-admin/edit.php2,105 ▲162.01 ▼0.0142.91 ▲7.6136.11 ▼0.43
Add New Post /wp-admin/post-new.php1,905 ▲39126.42 ▲8.79815.38 ▲118.1539.85 ▼13.27
Media Library /wp-admin/upload.php1,452 ▲644.24 ▲0.0497.92 ▼4.0740.85 ▼6.20
Debug Logs /wp-admin/tools.php?page=dlct_logs1,0354.6197.8839.14

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 8 options
    • DebugLogConfigTool_data_initial
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • debuglogconfigtool_updated_constant
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to a member function get() on null in wp-content/plugins/debug-log-config-tool/app/routes.php:4
    • > PHP Notice
      Undefined variable: router in wp-content/plugins/debug-log-config-tool/app/routes.php on line 4

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/tools.php?page=dlct_logs
    • > Network (severe)
    wp-admin/fonts/Inter-Medium.woff2 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/tools.php?page=dlct_logs
    • > Network (severe)
    wp-admin/fonts/Inter-Medium.woff - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed: The official readme.txt is a good inspiration

debug-log-config-tool/plugin.php 85% from 13 tests

The principal PHP file in "WP Debug Log - Configuration Tool" v. 1.4.3 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("debug-log-config-tool.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin38,957 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript22,6741,62136,897
CSS12680914
PHP15195320839
SVG100292
Markdown17011
JSON1004

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 problems
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity11.09
▷ Minimum class complexity1.00
▷ Maximum class complexity40.00
Average method complexity2.68
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes19.09%
Methods65
▷ Static methods710.77%
▷ Public methods5584.62%
▷ Protected methods69.23%
▷ Private methods46.15%
Functions6
▷ Named functions00.00%
▷ Anonymous functions6100.00%
Constants8
▷ Global constants562.50%
▷ Class constants337.50%
▷ Public constants3100.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 are no PNG files in this plugin