79% debug-bar-toggle

Code Review | Debug Bar Toggle

WordPress plugin Debug Bar Toggle scored79%from 54 tests.

About plugin

  • Plugin page: debug-bar-toggle
  • Plugin version: 1.01
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 13, 2013
  • Latest release: Mar 13, 2013
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: evansolomon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,370 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

This is a short check of server-side resources used by Debug Bar Toggle
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.44 ▼2.89
Dashboard /wp-admin3.32 ▲0.0154.87 ▲1.55
Posts /wp-admin/edit.php3.37 ▲0.0148.35 ▼9.90
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.64 ▼14.19
Media Library /wp-admin/upload.php3.24 ▲0.0136.23 ▼2.49

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Debug Bar Toggle
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.28 ▼0.101.73 ▼0.5039.42 ▼4.94
Dashboard /wp-admin2,198 ▲275.69 ▲0.1188.09 ▼1.4739.08 ▼5.17
Posts /wp-admin/edit.php2,100 ▼02.05 ▲0.0435.88 ▼4.6632.98 ▼1.27
Add New Post /wp-admin/post-new.php1,545 ▼023.11 ▼0.08678.39 ▲33.3954.05 ▲1.44
Media Library /wp-admin/upload.php1,403 ▲34.25 ▲0.01101.23 ▼10.6345.68 ▼1.13

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/debug-bar-toggle/js-keystroke/example/index.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/debug-bar-toggle/debug-bar-toggle.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
1 plugin tags: debug bar

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

The entry point to "Debug Bar Toggle" version 1.01 is a PHP file that has certain tags in its header comment area
54 characters long description:
Toggle the Debug Bar with a keystroke between requests

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin418 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript72235229
CoffeeScript42824103
PHP215850
Markdown218036

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 were not PNG files found in your plugin