78% simple-debug-info-panel

Code Review | Simple Debug Info Panel

WordPress plugin Simple Debug Info Panel scored 78% from 54 tests.

About plugin

  • Plugin page: simple-debug-info...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.2
  • WordPress version: 6.3.1
  • First release: Apr 10, 2015
  • Latest release: Mar 18, 2023
  • Number of updates: 16
  • Update frequency: every 181.2 days
  • Top authors: senff (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 2,157 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.17ms] Passed 4 tests

Analyzing server-side resources used by Simple Debug Info Panel
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.09 ▲2.10
Dashboard /wp-admin3.31 ▲0.0148.12 ▼2.83
Posts /wp-admin/edit.php3.36 ▲0.0145.54 ▲0.75
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.73 ▼12.06
Media Library /wp-admin/upload.php3.24 ▲0.0136.58 ▲1.46
Simple Debug Info Panel /wp-admin/options-general.php?page=simpledebugmenu3.2530.45

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
simple_debug_options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Simple Debug Info Panel: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,099 ▲36413.65 ▼0.7517.53 ▲15.7563.57 ▲14.87
Dashboard /wp-admin2,210 ▲255.85 ▼0.00100.47 ▼18.9947.11 ▲2.19
Posts /wp-admin/edit.php2,093 ▲41.98 ▼0.0436.91 ▼1.6632.05 ▼3.28
Add New Post /wp-admin/post-new.php1,540 ▲723.14 ▼0.04703.92 ▲120.3163.91 ▲14.07
Media Library /wp-admin/upload.php1,392 ▲14.19 ▼0.0294.91 ▼1.6940.42 ▼1.95
Simple Debug Info Panel /wp-admin/options-general.php?page=simpledebugmenu1,1821.7323.5332.90

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/simple-debug-info-panel/simple-debug-info-panel.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-debug-info-panel/assets/faq.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-debug-info-panel/assets/plugin-info.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: simple, panel, info, templates, debug

simple-debug-info-panel/simple-debug-info-panel.php 92% from 13 tests

This is the main PHP file of "Simple Debug Info Panel" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 165 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin746 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP511842437
CSS2424186
JavaScript230772
Markdown129051

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
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%
Functions9
▷ Named functions9100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/arrow.png1.25KB0.46KB▼ 63.71%