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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 43.47 ▲2.18 |
Dashboard /wp-admin | 3.31 ▼0.04 | 51.70 ▼17.44 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.86 ▼2.69 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.37 ▼8.88 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.28 ▼0.00 | 1.86 ▼0.05 | 45.21 ▲2.31 |
Dashboard /wp-admin | 2,195 ▲21 | 5.49 ▼0.04 | 86.57 ▼5.05 | 37.40 ▼5.45 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.94 ▼0.03 | 34.46 ▼5.60 | 35.74 ▲0.15 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.18 ▼0.25 | 701.31 ▲25.75 | 54.40 ▲4.04 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.20 ▼0.07 | 98.58 ▼1.47 | 44.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
- > PHP Warning
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 ===
)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 27 | 37 | 123 |
JSON | 1 | 0 | 0 | 27 |
CSS | 1 | 4 | 0 | 23 |
Bourne Shell | 1 | 4 | 0 | 16 |
Markdown | 2 | 6 | 0 | 15 |
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 code | 0.22 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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