10% admins-debug-tool

Code Review | Admin's Debug Tool

WordPress plugin Admin's Debug Tool scored 10% from 54 tests.

About plugin

  • Plugin page: admins-debug-tool
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2.3
  • WordPress version: 5.9.2
  • First release: Oct 11, 2012
  • Latest release: Aug 8, 2015
  • Number of updates: 5
  • Update frequency: every 208.2 days
  • Top authors: pantsonhead (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,700 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/admins-debug-tool/admins_debug_tool.php+10
    Non-static method AdminDebugTool::instance() should not be called statically

Server metrics [RAM: ▼2.53MB] [CPU: ▼346.95ms] Passed 4 tests

A check of server-side resources used by Admin's Debug Tool
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /1.84 ▼1.684.59 ▼48.01
Dashboard /wp-admin1.86 ▼1.553.99 ▼30.98
Posts /wp-admin/edit.php1.86 ▼1.783.48 ▼35.70
Add New Post /wp-admin/post-new.php1.86 ▼5.113.93 ▼1,273.09
Media Library /wp-admin/upload.php1.86 ▼1.444.36 ▼19.22
Admin's Debug Tool /wp-admin/tools.php?page=admindebugtool1.863.34

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options
AdminsDebugTool

Browser metrics Passed 4 tests

A check of browser resources used by Admin's Debug Tool
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,771 ▲1715.94 ▼0.086.43 ▲0.226.15 ▲3.64
Dashboard /wp-admin2,897 ▲366.15 ▼0.00118.79 ▼14.29154.79 ▼8.97
Posts /wp-admin/edit.php2,693 ▼13.25 ▲0.0163.15 ▼0.67136.92 ▼8.86
Add New Post /wp-admin/post-new.php1,614 ▼4720.08 ▲4.54415.95 ▲2.00202.26 ▲42.99
Media Library /wp-admin/upload.php1,703 ▲55.47 ▼0.04156.63 ▲13.80188.86 ▲0.88
Admin's Debug Tool /wp-admin/tools.php?page=admindebugtool1,2082.5457.84127.00

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/admins-debug-tool/admins_debug_tool.php+10
    Non-static method AdminDebugTool::instance() should not be called statically
  • The uninstall procedure has failed, leaving 1 option in the database
    • AdminsDebugTool

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/tools.php?page=admindebugtool
    • > Deprecated in wp-content/plugins/admins-debug-tool/admins_debug_tool.php+10
    Non-static method AdminDebugTool::instance() should not be called statically
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=admindebugtool
    • > Notice in wp-content/plugins/admins-debug-tool/admins_debug_tool.php+217
    Trying to access array offset on value of type null

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/admins-debug-tool/admins_debug_tool.php on line 217
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admins-debug-tool/admins_debug_tool.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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
10 plugin tags: plugin, execution, wp_debug, hooks, timer...

admins-debug-tool/admins_debug_tool.php 92% from 13 tests

This is the main PHP file of "Admin's Debug Tool" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("admins-debug-tool.php" instead of "admins_debug_tool.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected380 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP112022380

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity70.00
▷ Minimum class complexity70.00
▷ Maximum class complexity70.00
Average method complexity4.83
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods1372.22%
▷ Protected methods00.00%
▷ Private methods527.78%
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 were not PNG files found in your plugin