83% debugwp

Code Review | debugWP

WordPress plugin debugWP scored83%from 54 tests.

About plugin

  • Plugin page: debugwp
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5
  • WordPress version: 6.3.1
  • First release: Jan 25, 2013
  • Latest release: Jan 28, 2013
  • Number of updates: 15
  • Update frequency: every 0.3 days
  • Top authors: soap_media (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,908 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼7.39ms] Passed 4 tests

Analyzing server-side resources used by debugWP
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0236.77 ▼1.77
Dashboard /wp-admin3.32 ▼0.0343.11 ▼17.27
Posts /wp-admin/edit.php3.37 ▲0.0144.85 ▼0.88
Add New Post /wp-admin/post-new.php5.90 ▲0.0178.98 ▼9.61
Media Library /wp-admin/upload.php3.24 ▲0.0133.71 ▼0.92

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for debugWP
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,063 ▲30213.42 ▼1.138.59 ▲6.8942.07 ▲1.84
Dashboard /wp-admin2,192 ▲185.62 ▲0.0981.94 ▼1.7238.34 ▼3.83
Posts /wp-admin/edit.php2,100 ▼02.02 ▼0.0132.64 ▼3.0532.23 ▼5.15
Add New Post /wp-admin/post-new.php1,526 ▼923.23 ▲4.84672.14 ▲32.1461.70 ▼1.75
Media Library /wp-admin/upload.php1,400 ▼34.16 ▼0.0894.04 ▼10.7444.28 ▼0.11

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function timer_stop() in wp-content/plugins/debugwp/debug_bar/debug_bar.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/debugwp/debugWP.php:20
    • > PHP Notice
      Trying to get property 'num_queries' of non-object in wp-content/plugins/debugwp/debug_bar/debug_bar.php on line 19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === debugwp === )
You can look at the official readme.txt

debugwp/debugWP.php 92% from 13 tests

Analyzing the main PHP file in "debugWP" version 0.1.0
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("debugwp.php" instead of "debugWP.php")

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
Everything looks great! No dangerous files found in this plugin178 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP34816139
CSS15033
JavaScript1135
Markdown1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
debug_bar/images/admin-bar-sprite.png3.91KB2.56KB▼ 34.43%