90% debug-bar-query-count-alert

Code Review | Debug Bar Query Count Alert

WordPress plugin Debug Bar Query Count Alert scored90%from 54 tests.

About plugin

  • Plugin page: debug-bar-query-c...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Feb 2, 2014
  • Latest release: Feb 2, 2014
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: mboynes (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,883 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.01MB] [CPU: ▼3.57ms] Passed 4 tests

A check of server-side resources used by Debug Bar Query Count Alert
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0141.48 ▼7.44
Dashboard /wp-admin3.36 ▲0.0147.13 ▼0.89
Posts /wp-admin/edit.php3.41 ▲0.0148.48 ▲0.69
Add New Post /wp-admin/post-new.php5.94 ▲0.0184.81 ▼4.58
Media Library /wp-admin/upload.php3.28 ▲0.0133.69 ▼1.36

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Debug Bar Query Count Alert
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.21 ▼1.224.88 ▲2.4743.41 ▼7.51
Dashboard /wp-admin2,206 ▲215.84 ▼0.02100.11 ▼5.7038.20 ▼4.42
Posts /wp-admin/edit.php2,086 ▼32.01 ▲0.0136.24 ▲2.2734.50 ▼2.45
Add New Post /wp-admin/post-new.php1,534 ▼023.28 ▲0.24652.98 ▼40.1156.66 ▼4.90
Media Library /wp-admin/upload.php1,388 ▼04.30 ▲0.05108.76 ▲3.5143.37 ▼3.06

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP 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)
Everything seems fine on the user side

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
5 plugin tags: performance, developer, debug, mysql, debug-bar

debug-bar-query-count-alert/debug-bar-query-count-alert.php Passed 13 tests

The main file in "Debug Bar Query Count Alert" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
106 characters long description:
A simple add-on for the Debug Bar plugin to replace the button text with the database query count and time

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin49 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1275549

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected