Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲1.14MB] [CPU: ▲2.78ms] Passed 4 tests
Analyzing server-side resources used by Hoo Companion
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.36 ▲0.90 | 45.39 ▲1.96 |
Dashboard /wp-admin | 4.54 ▲1.24 | 56.22 ▲5.67 |
Posts /wp-admin/edit.php | 4.60 ▲1.24 | 57.80 ▲9.13 |
Add New Post /wp-admin/post-new.php | 7.36 ▲1.47 | 99.03 ▼0.64 |
Media Library /wp-admin/upload.php | 4.40 ▲1.17 | 43.95 ▲4.13 |
Server storage [IO: ▲0.89MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 122 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Hoo Companion: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.34 ▼0.02 | 2.36 ▲0.63 | 47.35 ▲4.93 |
Dashboard /wp-admin | 2,198 ▲21 | 5.58 ▼0.14 | 83.40 ▼7.69 | 40.75 ▼2.78 |
Posts /wp-admin/edit.php | 2,129 ▲26 | 2.20 ▲0.17 | 44.51 ▲6.59 | 34.10 ▼0.91 |
Add New Post /wp-admin/post-new.php | 6,901 ▲5,375 | 26.37 ▲3.24 | 895.07 ▲193.19 | 45.80 ▼7.74 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.22 ▲0.05 | 98.11 ▼7.34 | 42.93 ▼4.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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
Please fix the following
- 30× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/hoo-companion/includes/metabox/butterbean/tmpl/control-checkboxes.php
- > /wp-content/plugins/hoo-companion/includes/metabox/butterbean/tmpl/control-parent.php
- > /wp-content/plugins/hoo-companion/hoo-companion.php
- > /wp-content/plugins/hoo-companion/includes/metabox/butterbean/tmpl/control-select-group.php
- > /wp-content/plugins/hoo-companion/includes/metabox/butterbean/tmpl/control-checkbox.php
- > /wp-content/plugins/hoo-companion/includes/metabox/butterbean/tmpl/section.php
- > /wp-content/plugins/hoo-companion/includes/metabox/butterbean/tmpl/control-color.php
- > /wp-content/plugins/hoo-companion/includes/metabox/butterbean/tmpl/control-textarea.php
- > /wp-content/plugins/hoo-companion/includes/metabox/controls/image/template.php
- > /wp-content/plugins/hoo-companion/includes/metabox/controls/select/template.php
- 48× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ButterBean_Control_Radio' not found in wp-content/plugins/hoo-companion/includes/metabox/butterbean/inc/controls/class-control-radio-image.php:20
- > PHP Fatal error
Uncaught Error: Class 'ButterBean_Control' not found in wp-content/plugins/hoo-companion/includes/metabox/butterbean/inc/controls/class-control-textarea.php:19
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/hoo-companion/includes/widgets/govideo/widget-header-slider.php:4
- > PHP Fatal error
Uncaught Error: Class 'ButterBean_Control' not found in wp-content/plugins/hoo-companion/includes/metabox/butterbean/inc/controls/class-control-color.php:20
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/hoo-companion/includes/importer/wordpress-importer.php on line 20
- > PHP Fatal error
Uncaught Error: Class 'ButterBean_Control' not found in wp-content/plugins/hoo-companion/includes/metabox/controls/editor/class-control-editor.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/hoo-companion/includes/widgets/singlepage/widget-base-section.php:4
- > PHP Fatal error
Uncaught Error: Class 'ButterBean_Control' not found in wp-content/plugins/hoo-companion/includes/metabox/butterbean/inc/controls/class-control-multi-avatars.php:21
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/hoo-companion/includes/widgets/widget-featured-slider.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/hoo-companion/includes/widgets/govideo/widget-section.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: page options
hoo-companion/hoo-companion.php 92% from 13 tests
The main file in "Hoo Companion" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected15,583 lines of code in 115 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 88 | 2,733 | 4,587 | 8,263 |
JavaScript | 14 | 1,695 | 806 | 5,985 |
CSS | 9 | 150 | 24 | 934 |
Markdown | 4 | 126 | 0 | 401 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 22.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 263.00 |
Average method complexity | 3.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 58 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 58 | 100.00% |
▷ Final classes | 2 | 3.45% |
Methods | 439 | |
▷ Static methods | 26 | 5.92% |
▷ Public methods | 377 | 85.88% |
▷ Protected methods | 35 | 7.97% |
▷ Private methods | 27 | 6.15% |
Functions | 32 | |
▷ Named functions | 32 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 8 | 80.00% |
▷ Class constants | 2 | 20.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin