10% wp-dbug

Code Review | wp-dBug

WordPress plugin wp-dBug scored10%from 54 tests.

About plugin

  • Plugin page: wp-dbug
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-3.5
  • WordPress version: 6.3.1
  • First release: Jun 24, 2010
  • Latest release: Jan 19, 2013
  • Number of updates: 6
  • Update frequency: every 156.8 days
  • Top authors: vhauri (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active /2,517 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
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/wp-dbug/class-dbug.php+51
    Methods with the same name as their class will not be constructors in a future version of PHP; dBug has a deprecated constructor

Server metrics [RAM: ▼1.82MB] [CPU: ▼59.57ms] Passed 4 tests

A check of server-side resources used by wp-dBug
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.18 ▼1.285.65 ▼37.65
Dashboard /wp-admin2.20 ▼1.157.42 ▼66.99
Posts /wp-admin/edit.php2.20 ▼1.166.02 ▼48.87
Add New Post /wp-admin/post-new.php2.20 ▼3.696.43 ▼84.77
Media Library /wp-admin/upload.php2.20 ▼1.036.24 ▼31.52

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

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

Browser metrics Passed 4 tests

wp-dBug: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.35 ▲0.171.65 ▼0.0343.46 ▼0.46
Dashboard /wp-admin2,195 ▲185.48 ▼0.1982.83 ▼9.2041.30 ▲1.77
Posts /wp-admin/edit.php2,103 ▲31.99 ▼0.0140.45 ▲3.3435.48 ▼1.92
Add New Post /wp-admin/post-new.php1,526 ▼023.29 ▲0.02636.59 ▲9.2450.84 ▲1.07
Media Library /wp-admin/upload.php1,403 ▼04.18 ▼0.06101.36 ▼3.3344.38 ▲0.62

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
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/wp-dbug/class-dbug.php+51
    Methods with the same name as their class will not be constructors in a future version of PHP; dBug has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

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 everything seems fine, this is not 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
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Debug_Bar_Panel' not found in wp-content/plugins/wp-dbug/class-wp-dbug-debug-bar-panel.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-dbug/class-wp-dbug.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 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
4 plugin tags: debug, debugger, dbug, var_dump

wp-dbug/wp-dbug.php Passed 13 tests

"wp-dBug" version 0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
103 characters long description:
Plugin implements the awesome dBug class created by Kwaku Otchere for use in WordPress plugin debugging

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
Good job! No executable or dangerous file extensions detected490 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP496131468
Markdown110022

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity25.00
▷ Minimum class complexity2.00
▷ Maximum class complexity67.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods30
▷ Static methods00.00%
▷ Public methods30100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin