84% debug-printr

Code Review | Debug Printr

WordPress plugin Debug Printr scored84%from 54 tests.

About plugin

  • Plugin page: debug-printr
  • Plugin version: 1.4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.7.1
  • WordPress version: 6.3.1
  • First release: May 11, 2021
  • Latest release: May 11, 2021
  • Number of updates: 10
  • Update frequency: every 72.8 days
  • Top authors: iaps (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,244 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
This plugin's installer ran successfully

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

Analyzing server-side resources used by Debug Printr
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.32 ▼4.78
Dashboard /wp-admin3.31 ▲0.0147.21 ▲0.02
Posts /wp-admin/edit.php3.36 ▲0.0146.89 ▼2.57
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.52 ▼3.02
Media Library /wp-admin/upload.php3.24 ▲0.0135.92 ▲1.50
Debug PrintR /wp-admin/options-general.php?page=debug-printr3.2029.46

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
debug_users
debug_ips
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Debug Printr: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.48 ▲0.101.70 ▼0.0841.56 ▼3.29
Dashboard /wp-admin2,204 ▲135.84 ▲0.93108.88 ▼4.3040.18 ▼2.21
Posts /wp-admin/edit.php2,096 ▲72.17 ▼0.0138.66 ▼1.8135.25 ▼2.42
Add New Post /wp-admin/post-new.php1,547 ▲1222.98 ▼0.21598.52 ▼90.8253.40 ▼11.67
Media Library /wp-admin/upload.php1,395 ▲74.23 ▼0.00101.44 ▲1.4844.21 ▼0.93
Debug PrintR /wp-admin/options-general.php?page=debug-printr8312.0224.2025.29

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 8 options in the database
    • debug_ips
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • debug_users

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/debug-printr/plugin.php:33

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (Example of: global $post; debug::print_r($post);), #2 (Add each IP or Hostname on its' own line.)
You can take inspiration from this readme.txt

debug-printr/plugin.php 92% from 13 tests

Analyzing the main PHP file in "Debug Printr" version 1.4.2
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("debug-printr.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected109 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11635109

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity4.25
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods225.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png19.51KB8.50KB▼ 56.41%
assets/screenshot-2.png7.07KB4.38KB▼ 38.04%