84% dev-debug-tools

Code Review | Developer Debug Tools

WordPress plugin Developer Debug Tools scored84%from 54 tests.

About plugin

  • Plugin page: dev-debug-tools
  • Plugin version: 1.5.5
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Sep 16, 2022
  • Latest release: Nov 23, 2023
  • Number of updates: 41
  • Update frequency: every 10.6 days
  • Top authors: apos37 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active /2,247 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.75MB] [CPU: ▲3.17ms] 75% from 4 tests

Analyzing server-side resources used by Developer Debug Tools
Please take the time to fix the following items
  • CPU: The total CPU usage must kept under 500.00ms (currently 715.61ms on /wp-admin/admin.php?page=dev-debug-tools&tab=globalvars)
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.3043.54 ▼6.04
Dashboard /wp-admin4.27 ▲0.9263.08 ▲0.23
Posts /wp-admin/edit.php4.33 ▲0.9663.14 ▲12.62
Add New Post /wp-admin/post-new.php6.78 ▲0.8999.67 ▲5.87
Media Library /wp-admin/upload.php4.13 ▲0.9050.62 ▲16.47
Available Hooks /wp-admin/admin.php?page=dev-debug-tools&tab=hooks4.27751.57
Post Meta /wp-admin/admin.php?page=dev-debug-tools&tab=postmeta4.37690.11
Logs /wp-admin/admin.php?page=dev-debug-tools&tab=logs4.27680.66
Functions.php /wp-admin/admin.php?page=dev-debug-tools&tab=fx4.27683.31
Settings /wp-admin/admin.php?page=dev-debug-tools&tab=settings4.41694.76
Site Options /wp-admin/admin.php?page=dev-debug-tools&tab=siteoptions4.27705.40
User Meta /wp-admin/admin.php?page=dev-debug-tools&tab=usermeta4.44688.88
Cron Jobs /wp-admin/admin.php?page=dev-debug-tools&tab=crons4.27674.88
HTACCESS /wp-admin/admin.php?page=dev-debug-tools&tab=htaccess4.27682.32
Globals /wp-admin/admin.php?page=dev-debug-tools&tab=globalvars4.30715.61

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 88 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
ddtt_plugin_activated
ddtt_plugin_activated_by
theysaidso_admin_options
db_upgraded
ddtt_plugin_installed
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Developer Debug Tools
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,072 ▲31014.35 ▲0.091.51 ▼0.1537.23 ▼7.34
Dashboard /wp-admin2,381 ▲2015.63 ▲0.0197.13 ▼1.0147.19 ▲1.15
Posts /wp-admin/edit.php2,296 ▲1932.00 ▲0.0440.98 ▼1.8738.52 ▲3.76
Add New Post /wp-admin/post-new.php1,670 ▲13623.73 ▼1.36597.08 ▼7.1551.88 ▼13.37
Media Library /wp-admin/upload.php1,583 ▲1834.23 ▲0.05103.45 ▲7.1446.16 ▲5.04
Available Hooks /wp-admin/admin.php?page=dev-debug-tools&tab=hooks3,7131.6628.7590.46
Post Meta /wp-admin/admin.php?page=dev-debug-tools&tab=postmeta1,9691.6924.2040.20
Logs /wp-admin/admin.php?page=dev-debug-tools&tab=logs1,1161.6625.1738.20
Functions.php /wp-admin/admin.php?page=dev-debug-tools&tab=fx1,1391.6425.2738.75
Settings /wp-admin/admin.php?page=dev-debug-tools&tab=settings3,4161.9727.1561.79
Site Options /wp-admin/admin.php?page=dev-debug-tools&tab=siteoptions1,6211.6626.7553.83
User Meta /wp-admin/admin.php?page=dev-debug-tools&tab=usermeta2,6771.8229.9845.41
Cron Jobs /wp-admin/admin.php?page=dev-debug-tools&tab=crons1,3981.6527.3650.71
HTACCESS /wp-admin/admin.php?page=dev-debug-tools&tab=htaccess1,6521.6624.5158.35
Globals /wp-admin/admin.php?page=dev-debug-tools&tab=globalvars1,9931.8225.1249.10

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
  • The uninstall procedure has failed, leaving 8 options in the database
    • ddtt_plugin_activated
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • ddtt_plugin_activated_by

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
Please take a closer look at the following
  • 42× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ddtt_get() in wp-content/plugins/dev-debug-tools/includes/admin/header.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ddtt_get() in wp-content/plugins/dev-debug-tools/includes/admin/header.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/dev-debug-tools/includes/files/hooks/ddtt_ignore_pages_for_discord_notifications.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ddtt_get() in wp-content/plugins/dev-debug-tools/includes/admin/header.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ddtt_get() in wp-content/plugins/dev-debug-tools/includes/admin/header.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ddtt_get() in wp-content/plugins/dev-debug-tools/includes/admin/header.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/dev-debug-tools/includes/files/hooks/ddtt_quick_link_icon.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/dev-debug-tools/includes/files/hooks/ddtt_resource_links.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ddtt_start_timer() in wp-content/plugins/dev-debug-tools/includes/admin/option-functions.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/dev-debug-tools/includes/files/hooks/ddtt_debug_log_help_col.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: user meta, debug, developer, testing, htaccess...

dev-debug-tools/dev-debug-tools.php Passed 13 tests

This is the main PHP file of "Developer Debug Tools" version 1.5.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
52 characters long description:
WordPress debugging and testing tools for developers

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
Everything looks great! No dangerous files found in this plugin10,483 lines of code in 68 files:
LanguageFilesBlank linesComment linesLines of code
PHP652,5563,81010,257
JavaScript25159147
CSS10079

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity36.62
▷ Minimum class complexity1.00
▷ Maximum class complexity103.00
Average method complexity7.15
▷ Minimum method complexity1.00
▷ Maximum method complexity75.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods93
▷ Static methods44.30%
▷ Public methods93100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions96
▷ Named functions9093.75%
▷ Anonymous functions66.25%
Constants26
▷ Global constants26100.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
9 PNG files occupy 0.22MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/admin/img/text-area-resizer_wh_sm.png0.46KB0.31KB▼ 32.41%
includes/admin/img/admin-help-docs.png20.71KB4.29KB▼ 79.30%
includes/admin/img/text-area-resizer_wh_sm_trans.png0.36KB0.23KB▼ 36.26%
includes/admin/img/text-area-resizer-wh-large.png2.75KB0.83KB▼ 69.76%
includes/admin/img/discord.png158.33KB63.98KB▼ 59.59%