78% debugger

Code Review | Debugger

WordPress plugin Debugger scored78%from 54 tests.

About plugin

  • Plugin page: debugger
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6
  • WordPress version: 6.3.1
  • First release: Feb 15, 2013
  • Latest release: May 6, 2013
  • Number of updates: 12
  • Update frequency: every 52.6 days
  • Top authors: peterchester (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /3,591 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.06ms] Passed 4 tests

A check of server-side resources used by Debugger
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.07 ▼0.44
Dashboard /wp-admin3.33 ▲0.0346.80 ▼2.22
Posts /wp-admin/edit.php3.44 ▲0.0946.03 ▼7.49
Add New Post /wp-admin/post-new.php5.91 ▲0.0295.23 ▼10.07
Media Library /wp-admin/upload.php3.25 ▲0.0235.93 ▲0.42
Debugger /wp-admin/options-general.php?page=debugger3.2032.95

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Debugger
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.75 ▲0.361.82 ▲0.1146.12 ▲1.63
Dashboard /wp-admin2,202 ▲225.61 ▼0.0789.73 ▼4.4138.82 ▼6.16
Posts /wp-admin/edit.php2,104 ▲42.05 ▲0.0236.46 ▼0.5734.15 ▼4.37
Add New Post /wp-admin/post-new.php1,529 ▲317.77 ▲0.17673.13 ▼2.2451.62 ▼1.64
Media Library /wp-admin/upload.php1,404 ▲14.19 ▼0.0598.43 ▼7.6840.74 ▼8.26
Debugger /wp-admin/options-general.php?page=debugger8922.0223.1729.50

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=debugger
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=debugger
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/debugger/debugger.php
    • > /wp-content/plugins/debugger/lib/debug-bar.class.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Use the debugger to track how much time or memory hooks or benchmarked parts of code take to execute.), #2 (Configure your test parameters in wp-config.php or right in the admin.), #3 (Use the debugger to dump stack traces or pass data to see what the data looks like.)
You can take inspiration from this readme.txt

debugger/debugger.php Passed 13 tests

This is the main PHP file of "Debugger" version 1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
23 characters long description:
Code for debugging code

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected554 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3121121454
CSS1177100

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity25.00
▷ Minimum class complexity6.00
▷ Maximum class complexity61.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods32
▷ Static methods412.50%
▷ Public methods2887.50%
▷ Protected methods13.12%
▷ Private methods39.38%
Functions1
▷ Named functions1100.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
3 PNG files occupy 0.30MB with 0.22MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png125.29KB36.48KB▼ 70.88%
screenshot-3.png111.64KB30.67KB▼ 72.53%
screenshot-1.png73.49KB20.64KB▼ 71.92%