Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲1.65MB] [CPU: ▲7.09ms] Passed 4 tests
A check of server-side resources used by HootKit
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.08 ▲1.62 | 62.62 ▲22.55 |
Dashboard /wp-admin | 4.97 ▲1.63 | 64.30 ▼2.27 |
Posts /wp-admin/edit.php | 5.02 ▲1.67 | 60.81 ▲8.64 |
Add New Post /wp-admin/post-new.php | 7.58 ▲1.69 | 107.55 ▼0.57 |
Media Library /wp-admin/upload.php | 4.90 ▲1.67 | 57.63 ▲22.69 |
HootKit /wp-admin/options-general.php?page=hootkit | 4.87 | 41.89 |
Server storage [IO: ▲4.17MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 156 new files
Database: no new tables, 19 new options
New WordPress options |
---|
widget_hootkit-posts-grid |
widget_hootkit-cta |
widget_theysaidso_widget |
widget_hootkit-posts-blocks |
theysaidso_admin_options |
widget_hootkit-content-grid |
widget_recent-posts |
widget_hootkit-posts-list |
widget_hootkit-icon |
widget_hootkit-content-blocks |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for HootKit
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,927 ▲166 | 14.05 ▼0.20 | 9.12 ▲7.21 | 45.94 ▲5.29 |
Dashboard /wp-admin | 2,244 ▲38 | 5.08 ▼0.92 | 108.19 ▲2.97 | 42.53 ▼4.77 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 2.29 ▲0.27 | 37.36 ▲0.09 | 33.42 ▼2.98 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.29 ▲5.75 | 688.69 ▲4.60 | 36.04 ▼14.91 |
Media Library /wp-admin/upload.php | 1,426 ▲29 | 4.40 ▲0.17 | 108.52 ▲3.57 | 48.75 ▲8.47 |
HootKit /wp-admin/options-general.php?page=hootkit | 1,131 | 1.88 | 29.75 | 37.03 |
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: 19 options
- widget_hootkit-slider-postimage
- widget_hootkit-posts-grid
- widget_hootkit-content-grid
- widget_hootkit-announce
- widget_hootkit-posts-blocks
- theysaidso_admin_options
- widget_hootkit-slider-image
- widget_hootkit-icon
- widget_hootkit-cover-image
- db_upgraded
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 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
Please fix the following
- 40× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: background in wp-content/plugins/hootkit/widgets/products-ticker/view.php on line 18
- > PHP Notice
Undefined variable: background in wp-content/plugins/hootkit/widgets/ticker-posts/view.php on line 18
- > PHP Notice
Undefined variable: columns in wp-content/plugins/hootkit/widgets/post-list/view.php on line 3
- > PHP Notice
Undefined variable: columns in wp-content/plugins/hootkit/widgets/product-list/view.php on line 3
- > PHP Notice
Undefined variable: background in wp-content/plugins/hootkit/widgets/ticker-posts/view.php on line 7
- > PHP Notice
Undefined variable: slider_template in wp-content/plugins/hootkit/widgets/postcarousel/view-setup.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function hootkit_widget_borderclass() in wp-content/plugins/hootkit/widgets/content-posts-blocks/view.php:3
- > PHP Notice
Undefined variable: columns in wp-content/plugins/hootkit/widgets/post-grid/view.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function WC() in wp-content/plugins/hootkit/widgets/products-carticon/view.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_cart() in wp-content/plugins/hootkit/misc/fly-cart/view.php:3
- > PHP Notice
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 is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: widgets, wphoot, demo content, slider
hootkit/hootkit.php Passed 13 tests
The main PHP script in "HootKit" version 2.0.13 is automatically included on every request by WordPress
67 characters long description:
HootKit is a great companion plugin for WordPress themes by wpHoot.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin35,533 lines of code in 113 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 82 | 1,442 | 2,393 | 13,325 |
SVG | 5 | 0 | 0 | 9,556 |
JavaScript | 15 | 1,341 | 495 | 6,535 |
CSS | 11 | 1,602 | 146 | 6,117 |
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.62 |
Average class complexity | 15.11 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 182.00 |
Average method complexity | 5.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 76.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 44 | |
▷ Abstract classes | 1 | 2.27% |
▷ Concrete classes | 43 | 97.73% |
▷ Final classes | 0 | 0.00% |
Methods | 143 | |
▷ Static methods | 26 | 18.18% |
▷ Public methods | 137 | 95.80% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 4.20% |
Functions | 82 | |
▷ Named functions | 82 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
21 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/content-block-style-5.png | 1.66KB | 0.65KB | ▼ 60.81% |
assets/images/posts-list-style-3.png | 1.06KB | 0.12KB | ▼ 88.32% |
assets/images/content-block-style-4.png | 1.30KB | 0.34KB | ▼ 73.64% |
assets/images/postlistcarousel-style-1.png | 1.07KB | 0.13KB | ▼ 88.30% |
assets/images/slider-style-1.png | 1.85KB | 0.60KB | ▼ 67.56% |