84% debugpress

Code Review | DebugPress: Popup debugger for WordPress

WordPress plugin DebugPress: Popup debugger for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: debugpress
  • Plugin version: 3.5.1
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.4
  • WordPress version: 6.3.1
  • First release: Sep 17, 2020
  • Latest release: Nov 18, 2023
  • Number of updates: 67
  • Update frequency: every 17.3 days
  • Top authors: GDragoN (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

70+ active /7,106 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.80MB] [CPU: ▲0.94ms] Passed 4 tests

This is a short check of server-side resources used by DebugPress: Popup debugger for WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.11 ▲0.6444.78 ▲0.30
Dashboard /wp-admin4.15 ▲0.8554.05 ▲8.14
Posts /wp-admin/edit.php4.26 ▲0.9152.02 ▲6.42
Add New Post /wp-admin/post-new.php6.75 ▲0.8686.46 ▼11.08
Media Library /wp-admin/upload.php4.07 ▲0.8443.49 ▲10.44
DebugPress Info /wp-admin/tools.php?page=debugpress-info8.7163.25
DebugPress /wp-admin/options-general.php?page=debugpress4.0536.84

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 242 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for DebugPress: Popup debugger for WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4014.29 ▲0.011.74 ▲0.0144.15 ▼1.43
Dashboard /wp-admin2,210 ▲305.59 ▼0.1198.64 ▼3.6840.55 ▼3.44
Posts /wp-admin/edit.php2,109 ▲61.98 ▲0.0337.07 ▼2.8531.87 ▼1.72
Add New Post /wp-admin/post-new.php1,537 ▲823.34 ▲0.07657.83 ▼52.3765.91 ▲9.31
Media Library /wp-admin/upload.php1,415 ▲124.27 ▲0.0497.40 ▼7.2441.13 ▼4.27
DebugPress Info /wp-admin/tools.php?page=debugpress-info8441.9625.0532.38
DebugPress /wp-admin/options-general.php?page=debugpress1,4401.6829.8839.49

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • 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
Even though no errors were found, this is by no means an exhaustive test

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
  • 119× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Kint\\Zval\\Value' not found in wp-content/plugins/debugpress/vendor/kint/kint-php/kint/src/Zval/ResourceValue.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'Dev4Press\\Plugin\\DebugPress\\Panel\\DebugLog' not found in wp-content/plugins/debugpress/forms/panels/debuglog.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Dev4Press\\Plugin\\DebugPress\\Panel\\HTTP' not found in wp-content/plugins/debugpress/forms/panels/http.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/debugpress/forms/tools/info.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Dev4Press\\Plugin\\DebugPress\\Panel\\Constants' not found in wp-content/plugins/debugpress/forms/panels/constants.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Kint\\Zval\\Representation\\Representation' not found in wp-content/plugins/debugpress/vendor/kint/kint-php/kint/src/Zval/Representation/SourceRepresentation.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'Kint\\Renderer\\Rich\\AbstractPlugin' not found in wp-content/plugins/debugpress/vendor/kint/kint-php/kint/src/Renderer/Rich/ClosurePlugin.php:34
    • > PHP Fatal error
      Uncaught Error: Class 'Dev4Press\\Plugin\\DebugPress\\Display\\Loader' not found in wp-content/plugins/debugpress/forms/display.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Kint\\Parser\\AbstractPlugin' not found in wp-content/plugins/debugpress/vendor/kint/kint-php/kint/src/Parser/JsonPlugin.php:33
    • > PHP Fatal error
      Uncaught Error: Class 'Kint\\Kint' not found in wp-content/plugins/debugpress/vendor/kint/kint-php/kint/init_helpers.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #1, #10, #11, #12, #13, #14, #2, #3, #4, #5, #6, #7, #8, #9 in debugpress/assets to your readme.txt
The official readme.txt might help

debugpress/debugpress.php 92% from 13 tests

"DebugPress: Popup debugger for WordPress" version 3.5.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 175 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin19,207 lines of code in 231 files:
LanguageFilesBlank linesComment linesLines of code
PHP1873,8133,80415,101
Sass1928231,491
CSS1279121,439
JavaScript1023415969
JSON200150
Markdown123057

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity16.53
▷ Minimum class complexity1.00
▷ Maximum class complexity165.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity78.00
Code structure
Namespaces15
Interfaces8
Traits1
Classes131
▷ Abstract classes53.82%
▷ Concrete classes12696.18%
▷ Final classes10.79%
Methods817
▷ Static methods19423.75%
▷ Public methods71387.27%
▷ Protected methods526.36%
▷ Private methods526.36%
Functions30
▷ Named functions2996.67%
▷ Anonymous functions13.33%
Constants71
▷ Global constants2332.39%
▷ Class constants4867.61%
▷ Public constants48100.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
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
logos/buy_me_a_coffee.png7.73KB7.79KB0.00%
logos/dev4press_logo_400.png1.97KB1.98KB0.00%
logos/debugpress_logo_400.png4.90KB4.94KB0.00%