90% debug-this

Code Review | Debug This

WordPress plugin Debug This scored90%from 54 tests.

About plugin

  • Plugin page: debug-this
  • Plugin version: 0.6.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: Dec 27, 2012
  • Latest release: Aug 9, 2023
  • Number of updates: 113
  • Update frequency: every 34.3 days
  • Top authors: misternifty (55.75%)cdillon27 (27.43%)machothemes (9.73%)raldea89 (6.19%)giucu91 (3.54%)

Code review

54 tests

User reviews

17 reviews

Install metrics

4,000+ active /138,228 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.07MB] [CPU: ▼4.86ms] Passed 4 tests

This is a short check of server-side resources used by Debug This
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.89 ▲0.4346.32 ▲3.71
Dashboard /wp-admin3.36 ▲0.0655.39 ▼1.92
Posts /wp-admin/edit.php3.48 ▲0.1251.28 ▲0.35
Add New Post /wp-admin/post-new.php5.94 ▲0.0686.74 ▼18.83
Media Library /wp-admin/upload.php3.29 ▲0.0635.39 ▲0.97

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Debug This
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,210 ▲43913.57 ▼0.877.08 ▲5.2441.29 ▼3.02
Dashboard /wp-admin2,203 ▲125.91 ▲1.01108.66 ▼0.7542.08 ▲2.51
Posts /wp-admin/edit.php2,089 ▼01.99 ▲0.0333.41 ▼4.9634.04 ▼1.94
Add New Post /wp-admin/post-new.php1,537 ▲1823.29 ▲0.16667.01 ▲5.2254.09 ▼0.29
Media Library /wp-admin/upload.php1,391 ▲34.20 ▲0.0794.83 ▼5.4942.23 ▼2.29

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

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
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: print_r, debug, query, var_dump, queries...

debug-this/debug-this.php Passed 13 tests

The primary PHP file in "Debug This" version 0.6.4 is used by WordPress to initiate all plugin functionality
69 characters long description:
Peek under the hood with sixty debugging reports just one click away.

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
No dangerous file extensions were detected2,053 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP3297751,521
PO File1198200434
CSS118688
JavaScript21010

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity68.00
▷ Minimum class complexity42.00
▷ Maximum class complexity94.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods85
▷ Static methods33.53%
▷ Public methods7891.76%
▷ Protected methods78.24%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin