78% debug-assistant

Code Review | Debug Assistant

WordPress plugin Debug Assistant scored78%from 54 tests.

About plugin

  • Plugin page: debug-assistant
  • Plugin version: 1.6
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Mar 8, 2019
  • Latest release: Nov 1, 2023
  • Number of updates: 67
  • Update frequency: every 25.6 days
  • Top authors: wpindeed (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,322 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.26MB] [CPU: ▼3.72ms] Passed 4 tests

Analyzing server-side resources used by Debug Assistant
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2638.61 ▼5.22
Dashboard /wp-admin3.62 ▲0.2851.28 ▼11.39
Posts /wp-admin/edit.php3.68 ▲0.3153.25 ▲7.61
Add New Post /wp-admin/post-new.php6.14 ▲0.2595.19 ▼1.31
Media Library /wp-admin/upload.php3.49 ▲0.2540.79 ▲3.05

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 709 new files
Database: 1 new table, 6 new options
New tables
wp_imlt_speed_tests
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Debug Assistant
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲3414.36 ▼0.011.70 ▼0.1139.62 ▼3.61
Dashboard /wp-admin2,208 ▲285.62 ▲0.0194.40 ▼6.1942.38 ▼0.17
Posts /wp-admin/edit.php2,113 ▲132.07 ▲0.0540.69 ▲3.1836.16 ▲1.14
Add New Post /wp-admin/post-new.php1,549 ▲2318.10 ▼5.51638.21 ▲4.6276.65 ▲25.94
Media Library /wp-admin/upload.php1,419 ▲164.18 ▼0.1299.11 ▲3.6245.11 ▼0.27

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 11× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/debug-assistant/public/index.php
    • > /wp-content/plugins/debug-assistant/public/wp-config-restore.php
    • > /wp-content/plugins/debug-assistant/index.php
    • > /wp-content/plugins/debug-assistant/views/index.php
    • > /wp-content/plugins/debug-assistant/assets/js/index.php
    • > /wp-content/plugins/debug-assistant/classes/ImltEnviroment.php
    • > /wp-content/plugins/debug-assistant/assets/images/index.php
    • > /wp-content/plugins/debug-assistant/classes/index.php
    • > /wp-content/plugins/debug-assistant/languages/index.php
    • > /wp-content/plugins/debug-assistant/assets/css/index.php
  • 22× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/debug-assistant/views/queries.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/debug-assistant/views/database.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/debug-assistant/views/advanced-settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/debug-assistant/views/crons.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/debug-assistant/debug-assistant.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/debug-assistant/views/header.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/debug-assistant/views/php-info-env.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/debug-assistant/views/system-report-env.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/debug-assistant/views/error-logs.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/debug-assistant/views/raw-editor.php:3

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 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: users, speed test, hooksactions, debug, database...

debug-assistant/debug-assistant.php 92% from 13 tests

The principal PHP file in "Debug Assistant" v. 1.6 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 290 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin84,547 lines of code in 648 files:
LanguageFilesBlank linesComment linesLines of code
SVG5150037,999
JavaScript664,3168,93924,065
CSS282,69965918,415
PHP376341573,561
HTML229507

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity19.23
▷ Minimum class complexity2.00
▷ Maximum class complexity49.00
Average method complexity3.89
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods82
▷ Static methods00.00%
▷ Public methods6579.27%
▷ Protected methods00.00%
▷ Private methods1720.73%
Functions11
▷ Named functions1090.91%
▷ Anonymous functions19.09%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin