69% dodebug

Code Review | DoDebug

WordPress plugin DoDebug scored69%from 54 tests.

About plugin

  • Plugin page: dodebug
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3
  • WordPress version: 6.3.1
  • First release: Jan 22, 2020
  • Latest release: Sep 21, 2020
  • Number of updates: 3
  • Update frequency: every 81.0 days
  • Top authors: wpdo5ea (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /444 total downloads

Benchmarks

Plugin footprint 47% 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.25MB] [CPU: ▼1.25ms] Passed 4 tests

A check of server-side resources used by DoDebug
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2639.37 ▼0.73
Dashboard /wp-admin3.55 ▲0.2554.37 ▲5.66
Posts /wp-admin/edit.php3.67 ▲0.3146.61 ▲2.95
Add New Post /wp-admin/post-new.php6.13 ▲0.2583.67 ▼11.34
Media Library /wp-admin/upload.php3.48 ▲0.2538.52 ▲4.11
DoDebug /wp-admin/options-general.php?page=dodebug3.4936.21

Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Please try to fix the following items
  • The plugin illegally modified 1 file (9.47KB) outside of "wp-content/plugins/dodebug/" and "wp-content/uploads/"
    • (new file) wp-content/debug.log
Filesystem: 19 new files
Database: no new tables, 17 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
dodebug.log_size
dodebug.filter_exc
dodebug.debug
dodebug.admin_ip
dodebug.adv
dodebug.log_filter
theysaidso_admin_options
db_upgraded
...

Browser metrics Passed 4 tests

DoDebug: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.34 ▲0.062.05 ▲0.4844.03 ▲2.61
Dashboard /wp-admin2,202 ▲245.63 ▼0.0285.20 ▼18.9439.24 ▼2.69
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0735.26 ▼2.3134.51 ▼1.59
Add New Post /wp-admin/post-new.php1,531 ▼623.05 ▲4.66668.57 ▲10.7458.37 ▼15.00
Media Library /wp-admin/upload.php1,407 ▲134.17 ▲0.0195.52 ▼4.6643.32 ▲2.75
DoDebug /wp-admin/options-general.php?page=dodebug1,0481.9923.7136.88

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin cannot be uninstalled
    • > Error in wp-content/plugins/dodebug/src/util.cls.php+243
    Uncaught Error: Call to undefined method dodebug\Util::version_check() in wp-content/plugins/dodebug/src/util.cls.php:243
    Stack trace:
    #0 wp-includes/class-wp-hook.php(310): dodebug\Util::uninstall()
    #1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 wp-admin/includes/plugin.php(1269): do_action()
    #4 wp-admin/includes/plugin.php(960): uninstall_plugin()
  • The plugin did not uninstall correctly, leaving 19 files (0.20MB) in the plugin directory
    • (new file) dodebug.php
    • (new file) src/f.cls.php
    • (new file) src/admin.cls.php
    • (new file) src/data.cls.php
    • (new file) lib/php-compatibility.func.php
    • (new file) readme.txt
    • (new file) src/conf.cls.php
    • (new file) src/core.cls.php
    • (new file) lang/dodebug.pot
    • (new file) autoload.php
    • ...
  • Zombie WordPress options were found after uninstall: 18 options
    • db_upgraded
    • dodebug.log_cookie
    • dodebug._ver
    • dodebug.filter_partial_exc
    • dodebug.adv
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • dodebug.admin_ip
    • dodebug.filter_exc
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Plugin Settings) image not found
The official readme.txt is a good inspiration

dodebug/dodebug.php Passed 13 tests

"DoDebug" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
46 characters long description:
Just a debug tool for theme/plugin developers.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,723 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP163245221,723

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity22.17
▷ Minimum class complexity2.00
▷ Maximum class complexity62.00
Average method complexity4.34
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes12
▷ Abstract classes18.33%
▷ Concrete classes1191.67%
▷ Final classes00.00%
Methods76
▷ Static methods5065.79%
▷ Public methods6180.26%
▷ Protected methods45.26%
▷ Private methods1114.47%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants28
▷ Global constants2175.00%
▷ Class constants725.00%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.14MB with 0.10MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
wp_assets/screenshot-1.png139.11KB40.10KB▼ 71.17%