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: 6.3.1
  • 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,981 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please 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: ▼1.96MB] [CPU: ▼51.27ms] Passed 4 tests

Analyzing server-side resources used by Admin's Debug Tool
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.64 ▼34.67
Dashboard /wp-admin2.05 ▼1.265.11 ▼44.43
Posts /wp-admin/edit.php2.05 ▼1.317.07 ▼37.40
Add New Post /wp-admin/post-new.php2.05 ▼3.845.48 ▼88.56
Media Library /wp-admin/upload.php2.05 ▼1.185.25 ▼29.70
Admin's Debug Tool /wp-admin/tools.php?page=admindebugtool2.056.49

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
AdminsDebugTool
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Admin's Debug Tool
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.25 ▼1.134.96 ▲3.1442.31 ▼3.69
Dashboard /wp-admin2,213 ▲255.90 ▲1.0297.53 ▲0.4836.39 ▼5.57
Posts /wp-admin/edit.php2,093 ▲12.02 ▲0.0138.81 ▼2.2636.22 ▲1.36
Add New Post /wp-admin/post-new.php1,540 ▼222.48 ▲4.12656.68 ▲20.4653.53 ▲1.95
Media Library /wp-admin/upload.php1,389 ▼24.19 ▼0.00103.22 ▲5.3344.05 ▲1.28
Admin's Debug Tool /wp-admin/tools.php?page=admindebugtool9392.1523.7627.76

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
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
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • AdminsDebugTool

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
Please fix the following server-side errors
    • > 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 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
There were no browser issues found

Optimizations

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

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

The main file in "Admin's Debug Tool" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Name the main plugin file 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin380 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP112022380

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin