84% dp-debug-menu

Code Review | DP Debug Menu

WordPress plugin DP Debug Menu scored84%from 54 tests.

About plugin

  • Plugin page: dp-debug-menu
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.6.1
  • WordPress version: 6.3.1
  • First release: Jun 12, 2013
  • Latest release: Feb 10, 2021
  • Number of updates: 14
  • Update frequency: every 203.9 days
  • Top authors: de-ce (78.57%)Dream Production (28.57%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /2,769 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.01MB] [CPU: ▼1.10ms] Passed 4 tests

An overview of server-side resources used by DP Debug Menu
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.32 ▼3.83
Dashboard /wp-admin3.31 ▲0.0149.40 ▲0.67
Posts /wp-admin/edit.php3.36 ▲0.0045.35 ▼2.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0195.34 ▲4.80
Media Library /wp-admin/upload.php3.23 ▲0.0037.74 ▲1.27

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for DP Debug Menu
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲8813.20 ▼1.184.39 ▲2.6841.72 ▼9.45
Dashboard /wp-admin2,206 ▲185.84 ▼0.02104.78 ▼9.4138.50 ▼6.14
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0335.93 ▼3.8533.51 ▼0.57
Add New Post /wp-admin/post-new.php1,542 ▲918.59 ▼4.85659.70 ▼19.9149.44 ▼6.10
Media Library /wp-admin/upload.php1,391 ▲64.20 ▼0.0196.68 ▼9.1541.31 ▼3.30

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× 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/dp-debug-menu/dp-debug-menu.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: debug, time, template, debugger, queries...

dp-debug-menu/dp-debug-menu.php 92% from 13 tests

The main PHP script in "DP Debug Menu" version 1.0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 143 characters long)

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
Success! There were no dangerous files found in this plugin101 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1174363
PO File18838

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected