84% debug-info

Code Review | Debug Info

WordPress plugin Debug Info scored84%from 54 tests.

About plugin

  • Plugin page: debug-info
  • Plugin version: 1.3.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 7, 2014
  • Latest release: Mar 30, 2023
  • Number of updates: 42
  • Update frequency: every 79.5 days
  • Top authors: scott.deluzio (92.86%)ampmode (9.52%)

Code review

54 tests

User reviews

8 reviews

Install metrics

6,000+ active /88,475 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Debug Info
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.66 ▼7.61
Dashboard /wp-admin3.33 ▲0.0344.49 ▼1.83
Posts /wp-admin/edit.php3.38 ▲0.0245.58 ▼1.20
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.37 ▲0.25
Media Library /wp-admin/upload.php3.25 ▲0.0238.87 ▲8.30
Debug Info /wp-admin/tools.php?page=debug-info3.4333.54

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Debug Info
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.72 ▼0.591.63 ▼0.2239.64 ▼6.91
Dashboard /wp-admin2,210 ▲314.85 ▼0.11108.36 ▼5.2238.28 ▼7.09
Posts /wp-admin/edit.php2,093 ▲12.03 ▲0.0338.79 ▲0.9736.69 ▲1.18
Add New Post /wp-admin/post-new.php1,523 ▼1023.22 ▲0.06669.70 ▲50.1450.15 ▼0.37
Media Library /wp-admin/upload.php1,395 ▲74.12 ▼0.07106.36 ▲10.1744.32 ▲0.21
Debug Info /wp-admin/tools.php?page=debug-info6,2621.9027.2625.85

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 2× 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-info/debug-info.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/debug-info/options.php:11

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 undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: theme, version, admin, memory, database...

debug-info/debug-info.php Passed 13 tests

Analyzing the main PHP file in "Debug Info" version 1.3.10
97 characters long description:
A plugin to display your server's PHP info and WordPress environment data for debugging purposes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected315 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PO File26266190
PHP22230125

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin