84% debug

Code Review | Debug

WordPress plugin Debug scored84%from 54 tests.

About plugin

  • Plugin page: debug
  • Plugin version: 1.10
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.0
  • WordPress version: 6.3.1
  • First release: Apr 21, 2017
  • Latest release: Jun 28, 2022
  • Number of updates: 18
  • Update frequency: every 152.2 days
  • Top authors: soninow (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

3,000+ active /79,837 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.05MB] [CPU: ▼3.96ms] Passed 4 tests

Server-side resources used by Debug
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.23 ▼3.89
Dashboard /wp-admin3.36 ▲0.0553.70 ▲2.24
Posts /wp-admin/edit.php3.41 ▲0.0556.30 ▲5.68
Add New Post /wp-admin/post-new.php5.94 ▲0.0589.31 ▼16.45
Media Library /wp-admin/upload.php3.28 ▲0.0540.59 ▲2.28
Error Log /wp-admin/admin.php?page=debug3.2430.29
Settings /wp-admin/admin.php?page=debug_settings3.2634.09

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-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Debug
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲3014.26 ▼0.031.57 ▼0.3841.88 ▼5.33
Dashboard /wp-admin2,219 ▲395.48 ▼0.1992.54 ▲1.6038.83 ▼3.78
Posts /wp-admin/edit.php2,130 ▲302.01 ▼0.0340.62 ▲1.7735.73 ▼0.76
Add New Post /wp-admin/post-new.php1,548 ▲1723.73 ▲1.01709.62 ▲46.3358.78 ▼0.43
Media Library /wp-admin/upload.php1,424 ▲244.26 ▲0.0099.06 ▼5.8344.92 ▼0.30
Error Log /wp-admin/admin.php?page=debug8081.6731.4631.61
Settings /wp-admin/admin.php?page=debug_settings9382.0523.6730.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=debug_settings
    • > Notice in wp-content/plugins/debug/admin/setting.php+36
    Undefined variable: user_email

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 16 tag instead of maximum 10
Please take inspiration from this readme.txt

debug/debug.php 92% from 13 tests

The entry point to "Debug" version 1.10 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 213 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected346 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP52383346

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There were not PNG files found in your plugin