79% wp-debug-robot

Code Review | WP Debug Robot

WordPress plugin WP Debug Robot scored79%from 54 tests.

About plugin

  • Plugin page: wp-debug-robot
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.1-3.4.2
  • WordPress version: 6.3.1
  • First release: Sep 18, 2012
  • Latest release: Mar 4, 2014
  • Number of updates: 5
  • Update frequency: every 106.8 days
  • Top authors: borkweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,561 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.39ms] Passed 4 tests

Server-side resources used by WP Debug Robot
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0339.65 ▼3.41
Dashboard /wp-admin3.36 ▲0.0545.65 ▼6.68
Posts /wp-admin/edit.php3.47 ▲0.1249.99 ▼0.43
Add New Post /wp-admin/post-new.php5.94 ▲0.0591.84 ▼0.57
Media Library /wp-admin/upload.php3.28 ▲0.0534.56 ▼2.88
Debug Robot /wp-admin/options-general.php?page=debug-robot3.2227.54

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WP Debug Robot
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.56 ▼1.001.60 ▼0.1840.33 ▼1.10
Dashboard /wp-admin2,210 ▲225.79 ▼0.1097.46 ▼15.3237.22 ▼10.40
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0240.15 ▲2.7134.43 ▲2.85
Add New Post /wp-admin/post-new.php1,545 ▲3118.65 ▲1.13593.80 ▼87.8555.03 ▼0.38
Media Library /wp-admin/upload.php1,392 ▲44.25 ▲0.00100.06 ▼12.9844.68 ▼4.62
Debug Robot /wp-admin/options-general.php?page=debug-robot8312.0324.3536.37

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=debug-robot
    • > 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=debug-robot
    • > 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
The following issues need your attention
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-debug-robot/wp-debug-robot.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'DebugRobot_BaseRobot' not found in wp-content/plugins/wp-debug-robot/lib/class-debugrobot-jsonrobot.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'DebugRobot_RobotInterface' not found in wp-content/plugins/wp-debug-robot/lib/class-debugrobot-baserobot.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'DebugRobot_RobotInterface' not found in wp-content/plugins/wp-debug-robot/lib/class-debugrobot-dummy.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: udp, robot, debugging, debug

wp-debug-robot/wp-debug-robot.php Passed 13 tests

Analyzing the main PHP file in "WP Debug Robot" version 1.0
74 characters long description:
Send debug output via UDP packets to a nodejs jabber bot that will IM you.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected204 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP75642204

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity2.83
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.39
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods32
▷ Static methods412.50%
▷ Public methods32100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin