94% debug-bar-list-dependencies

Code Review | Debug Bar List Script & Style Dependencies

WordPress plugin Debug Bar List Script & Style Dependencies scored 94% from 54 tests.

About plugin

  • Plugin page: debug-bar-list-de...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.7
  • WordPress version: 5.8.1
  • First release: May 12, 2013
  • Latest release: Dec 12, 2016
  • Number of updates: 20
  • Update frequency: every 65.5 days
  • Top authors: PerS (95%)jrf (10%)

Code review

54 tests

User reviews

3 reviews

Install metrics

600+ active / 25,646 total downloads

Benchmarks

Plugin footprint Passed 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.00MB] [CPU: ▼141.50ms] Passed 4 tests

An overview of server-side resources used by Debug Bar List Script & Style Dependencies
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0042.09 ▲7.28
Dashboard /wp-admin3.06 ▲0.0146.11 ▲1.33
Posts /wp-admin/edit.php3.11 ▲0.0151.10 ▲5.21
Add New Post /wp-admin/post-new.php5.42 ▼0.01100.21 ▼579.83
Media Library /wp-admin/upload.php3.00 ▲0.0047.09 ▲8.01

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Debug Bar List Script & Style Dependencies: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.86 ▲0.198.76 ▼1.6249.73 ▼1.40
Dashboard /wp-admin2,973 ▲425.82 ▼0.15148.52 ▼26.84123.97 ▼3.32
Posts /wp-admin/edit.php2,739 ▼02.71 ▲0.0066.14 ▼3.8099.19 ▼0.31
Add New Post /wp-admin/post-new.php1,683 ▼018.33 ▼0.42389.36 ▼8.13113.20 ▼11.06
Media Library /wp-admin/upload.php1,807 ▲35.06 ▲0.04192.43 ▲38.49159.82 ▲27.19

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/debug-bar-list-dependencies/debug-bar-list-dependencies.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes: You can look at the official readme.txt

debug-bar-list-dependencies/debug-bar-list-dependencies.php Passed 13 tests

The main PHP script in "Debug Bar List Script & Style Dependencies" version 1.1 is automatically included on every request by WordPress
79 characters long description:
Debug Bar List Script & Style Dependencies is an add-on to WordPress Debug Bar.

Code Analysis Passed 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
No dangerous file extensions were detected236 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP32673120
CSS25068
PO File1387548

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods342.86%
▷ Protected methods114.29%
▷ Private methods342.86%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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