94% debug-bar-elementor

Code Review | Debug Bar Elementor

WordPress plugin Debug Bar Elementor scored 94% from 54 tests.

About plugin

  • Plugin page: debug-bar-elementor
  • Plugin version: 0.1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.3
  • WordPress version: 5.9.2
  • First release: Nov 22, 2019
  • Latest release: Nov 23, 2019
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: pcfreak30 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 501 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼302.71ms] Passed 4 tests

Server-side resources used by Debug Bar Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0253.68 ▼3.40
Dashboard /wp-admin3.42 ▲0.0135.67 ▲2.21
Posts /wp-admin/edit.php3.65 ▲0.0144.33 ▼9.62
Add New Post /wp-admin/post-new.php6.89 ▼0.08106.74 ▼1,197.33
Media Library /wp-admin/upload.php3.30 ▲0.0128.90 ▼0.48

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Debug Bar Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲815.75 ▲0.145.63 ▼1.562.26 ▼0.51
Dashboard /wp-admin2,895 ▲376.19 ▲0.01122.89 ▼49.20163.77 ▼3.41
Posts /wp-admin/edit.php2,691 ▲33.23 ▼0.0166.32 ▼22.61146.14 ▼8.78
Add New Post /wp-admin/post-new.php1,711 ▲5021.37 ▲5.52467.04 ▲20.90160.42 ▲6.62
Media Library /wp-admin/upload.php1,698 ▲35.50 ▼0.02143.06 ▼1.19191.83 ▼6.86

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% 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)
Everything seems fine, however 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 fix the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Debug_Bar_Panel' not found in wp-content/plugins/debug-bar-elementor/class-debug-bar-elementor.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/debug-bar-elementor/debug-bar-elementor.php:53

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: elementor, debug bar, profile, profiler

debug-bar-elementor/debug-bar-elementor.php Passed 13 tests

The main PHP file in "Debug Bar Elementor" ver. 0.1.0 adds more information about the plugin and also serves as the entry point for this plugin
92 characters long description:
Output debug information regarding elementor on a page such as elements and performance data

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
No dangerous file extensions were detected1,402 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS242481,229
PHP23373158
JavaScript10015

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods541.67%
▷ Protected methods00.00%
▷ Private methods758.33%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected