84% debug-bar-transients

Code Review | Debug Bar Transients

WordPress plugin Debug Bar Transients scored84%from 54 tests.

About plugin

  • Plugin page: debug-bar-transients
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 6.3.1
  • First release: Apr 12, 2012
  • Latest release: Dec 7, 2016
  • Number of updates: 24
  • Update frequency: every 70.8 days
  • Top authors: ocean90 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /25,282 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.52ms] Passed 4 tests

A check of server-side resources used by Debug Bar Transients
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.50 ▲3.15
Dashboard /wp-admin3.31 ▲0.0148.79 ▼5.00
Posts /wp-admin/edit.php3.36 ▲0.0150.86 ▲2.83
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.50 ▼19.06
Media Library /wp-admin/upload.php3.24 ▲0.0138.37 ▲3.18

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Debug Bar Transients
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.35 ▲0.061.97 ▼0.0745.47 ▲0.10
Dashboard /wp-admin2,189 ▲155.64 ▲0.0693.60 ▲0.1239.23 ▲1.00
Posts /wp-admin/edit.php2,103 ▼01.97 ▼0.0143.42 ▲3.4835.27 ▲0.82
Add New Post /wp-admin/post-new.php1,526 ▼223.40 ▲0.18669.73 ▲51.3555.47 ▲2.65
Media Library /wp-admin/upload.php1,403 ▲94.13 ▼0.09101.23 ▼3.6244.18 ▲2.07

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 detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Debug_Bar_Panel' not found in wp-content/plugins/debug-bar-transients/class-debug-bar-transients.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: debug, transients, debug bar

debug-bar-transients/debug-bar-transients.php Passed 13 tests

"Debug Bar Transients" version 0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
64 characters long description:
Adds information about the WordPress Transient API to Debug Bar.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin432 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP279171316
CSS217083
JavaScript25533

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity2.88
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods637.50%
▷ Protected methods00.00%
▷ Private methods1062.50%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin