84% debug-bar-timber

Code Review | Timber Debug Bar

WordPress plugin Timber Debug Bar scored84%from 54 tests.

About plugin

  • Plugin page: debug-bar-timber
  • Plugin version: 1.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.8.1
  • WordPress version: 6.3.1
  • First release: Oct 26, 2013
  • Latest release: Sep 24, 2021
  • Number of updates: 24
  • Update frequency: every 120.5 days
  • Top authors: manzwebdesigns (58.33%)jarednova (45.83%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /58,986 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Analyzing server-side resources used by Timber Debug Bar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.47 ▲2.18
Dashboard /wp-admin3.31 ▼0.0451.70 ▼17.44
Posts /wp-admin/edit.php3.36 ▲0.0052.86 ▼2.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.37 ▼8.88
Media Library /wp-admin/upload.php3.23 ▲0.0037.70 ▲1.41

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Timber Debug Bar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.28 ▼0.001.86 ▼0.0545.21 ▲2.31
Dashboard /wp-admin2,195 ▲215.49 ▼0.0486.57 ▼5.0537.40 ▼5.45
Posts /wp-admin/edit.php2,097 ▼31.94 ▼0.0334.46 ▼5.6035.74 ▲0.15
Add New Post /wp-admin/post-new.php1,526 ▼023.18 ▼0.25701.31 ▲25.7554.40 ▲4.04
Media Library /wp-admin/upload.php1,400 ▲34.20 ▼0.0798.58 ▼1.4744.22 ▲0.20

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      include(vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/debug-bar-timber/class-debug-bar-timber.php on line 5
    • > PHP Warning
      include(): Failed opening 'vendor/autoload.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/debug-bar-timber/class-debug-bar-timber.php on line 5
    • > PHP Fatal error
      Uncaught Error: Class 'Debug_Bar_Panel' not found in wp-content/plugins/debug-bar-timber/class-debug-bar-timber.php:10

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 97% 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 your attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === debug-bar-timber === )
The official readme.txt might help

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

The primary PHP file in "Timber Debug Bar" version 1.1.6 is used by WordPress to initiate all plugin functionality
67 characters long description:
Adds Timber render to the debug bar. Requires the debug bar plugin.

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
Good job! No executable or dangerous file extensions detected204 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP22737123
JSON10027
CSS14023
Bourne Shell14016
Markdown26015

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions125.00%
▷ Anonymous functions375.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
There were not PNG files found in your plugin