Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Error in wp-content/plugins/debug-functions-time/library_wp.php+2677
Uncaught Error: Class 'WP_Plugins_List_Table' not found in wp-content/plugins/debug-functions-time/library_wp.php:2677
Stack trace:
#0 wp-content/plugins/debug-functions-time/library_wp.php(2611): Puvox\wp_plugin->is_not_bulk_activation()
#1 wp-includes/class-wp-hook.php(312): Puvox\wp_plugin->Puvox\{closure}()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/includes/plugin.php(720): do_action()
Server metrics [RAM: ▲2.26MB] [CPU: ▲10.25ms] Passed 4 tests
This is a short check of server-side resources used by Find Slow Functions & Actions & Filters & Hooks (Debug Bar)
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.77 ▲2.31 | 55.71 ▲13.13 |
Dashboard /wp-admin | 5.59 ▲2.24 | 65.66 ▲2.57 |
Posts /wp-admin/edit.php | 5.64 ▲2.28 | 66.96 ▲19.65 |
Add New Post /wp-admin/post-new.php | 8.11 ▲2.22 | 95.01 ▲5.64 |
Media Library /wp-admin/upload.php | 6.90 ▲3.67 | 59.92 ▲25.08 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Please try to fix the following items
- There were 3 files (35.26KB) illegally modified outside of "wp-content/plugins/debug-functions-time/" and "wp-content/uploads/"
- (modified) wp-config.php
- (modified) wp-includes/class-wp-hook.php
- (new file) wp-includes/class-wp-hook.php__DFTwp_BACKUP__1696824619.bak
Filesystem: 6 new files
Database: 1 new table, no new options
New tables |
---|
wp_debug_functions_time__errors_log |
Browser metrics Passed 4 tests
Checking browser requirements for Find Slow Functions & Actions & Filters & Hooks (Debug Bar)
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,872 ▲126 | 13.31 ▼1.12 | 1.88 ▲0.17 | 62.56 ▲18.64 |
Dashboard /wp-admin | 2,278 ▲87 | 4.87 ▼0.03 | 111.63 ▲2.55 | 54.68 ▲12.19 |
Posts /wp-admin/edit.php | 2,164 ▲75 | 2.01 ▼0.02 | 41.08 ▲6.87 | 42.79 ▲7.06 |
Add New Post /wp-admin/post-new.php | 1,603 ▲83 | 20.83 ▼2.27 | 714.26 ▲18.12 | 64.30 ▲9.69 |
Media Library /wp-admin/upload.php | 14,060 ▲12,675 | 4.28 ▲0.05 | 98.12 ▼4.77 | 100.20 ▲56.86 |
Uninstaller [IO: ▲0.43MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The plugin did not uninstall correctly, leaving 6 files (0.40MB) in the plugin directory
- (new file) library_wp.php
- (new file) languages/.empty
- (new file) index.php
- (new file) readme.txt
- (new file) wp-loader-addition.php
- (new file) library.php
- Zombie tables were found after uninstall: 1 table
- wp_debug_functions_time__errors_log
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'Puvox\\library' not found in wp-content/plugins/debug-functions-time/library_wp.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function DebugFunctionsTimeMain\\is_admin() in wp-content/plugins/debug-functions-time/index.php:40
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/debug-functions-time/index.php on line 462
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/debug-functions-time/index.php on line 462
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Contributors: The plugin contributors field is missing
debug-functions-time/index.php 85% from 13 tests
The main PHP file in "Find Slow Functions & Actions & Filters & Hooks (Debug Bar)" ver. 1.41 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 169 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("debug-functions-time.php" instead of "index.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin3,936 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 1,397 | 5,166 | 3,936 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 1,076)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 294.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 1,076.00 |
Average method complexity | 2.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 866 | |
▷ Static methods | 102 | 11.78% |
▷ Public methods | 857 | 98.96% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 1.04% |
Functions | 95 | |
▷ Named functions | 6 | 6.32% |
▷ Anonymous functions | 89 | 93.68% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
PNG images were not found in this plugin