63% enable-wp-debug-from-admin-dashboard

Code Review | Debug Bar - Enable WP_DEBUG from admin dashboard

WordPress plugin Debug Bar - Enable WP_DEBUG from admin dashboard scored63%from 54 tests.

About plugin

  • Plugin page: enable-wp-debug-f...
  • Plugin version: 1.86
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4+
  • WordPress version: 6.3.1
  • First release: Dec 30, 2017
  • Latest release: Jul 30, 2022
  • Number of updates: 106
  • Update frequency: every 15.8 days
  • Top authors: tazotodua (32.08%)ttodua (26.42%)itasksoftware (25.47%)puvoxsoftware (18.87%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active /12,469 total downloads

Benchmarks

Plugin footprint 47% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.40MB] [CPU: ▼6.96ms] Passed 4 tests

This is a short check of server-side resources used by Debug Bar - Enable WP_DEBUG from admin dashboard
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.90 ▲0.4344.75 ▲3.40
Dashboard /wp-admin3.71 ▲0.3653.50 ▼12.86
Posts /wp-admin/edit.php3.76 ▲0.4049.35 ▼5.34
Add New Post /wp-admin/post-new.php6.35 ▲0.4790.50 ▼10.86
Media Library /wp-admin/upload.php3.63 ▲0.4039.62 ▲1.21

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

Analyzing filesystem and database footprints of this plugin
Please fix the following
  • Illegal file modification found: 1 file (4.66KB) outside of "wp-content/plugins/enable-wp-debug-from-admin-dashboard/" and "wp-content/uploads/"
    • (modified) wp-config.php
Filesystem: 6 new files
Database: 1 new table, 8 new options
New tables
wp_enable_wp_debug_from_admin_dashboard__errors_log
New WordPress options
widget_recent-posts
enable-wp-debug-from-admin-dashboard
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
EWDFD_1_8_update_issue
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Debug Bar - Enable WP_DEBUG from admin dashboard
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲3314.41 ▲0.041.76 ▼0.3744.31 ▲0.23
Dashboard /wp-admin2,213 ▲335.54 ▼0.0085.40 ▼5.7943.38 ▼1.77
Posts /wp-admin/edit.php2,115 ▲122.00 ▼0.1535.83 ▼0.2734.29 ▼1.44
Add New Post /wp-admin/post-new.php1,562 ▲2123.12 ▲4.96587.43 ▼103.5662.02 ▲6.89
Media Library /wp-admin/upload.php1,409 ▲94.17 ▼0.0497.19 ▼25.5142.04 ▼7.45

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/enable-wp-debug-from-admin-dashboard/index.php+82
    unlink(wp-content/plugins/enable-wp-debug-from-admin-dashboard/_wp_debug_ip_permission.php): No such file or directory
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_enable_wp_debug_from_admin_dashboard__errors_log
  • This plugin does not fully uninstall, leaving 8 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • EWDFD_1_8_update_issue
    • can_compress_scripts
    • enable-wp-debug-from-admin-dashboard
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Puvox\\library' not found in wp-content/plugins/enable-wp-debug-from-admin-dashboard/library_wp.php:25

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Contributors: Plugin contributors field is missing
The official readme.txt is a good inspiration

enable-wp-debug-from-admin-dashboard/index.php 85% from 13 tests

The main PHP file in "Debug Bar - Enable WP_DEBUG from admin dashboard" ver. 1.86 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("enable-wp-debug-from-admin-dashboard.php" instead of "index.php")
  • Description: The description should be shorter than 140 characters (currently 203 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected3,650 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP41,2655,1203,650

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 1,076)
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity349.00
▷ Minimum class complexity21.00
▷ Maximum class complexity1,076.00
Average method complexity2.97
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods854
▷ Static methods10211.94%
▷ Public methods84799.18%
▷ Protected methods00.00%
▷ Private methods70.82%
Functions94
▷ Named functions44.26%
▷ Anonymous functions9095.74%
Constants7
▷ Global constants7100.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 files were detected