Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.44ms] Passed 4 tests
Analyzing server-side resources used by Hunk Companion
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.44 ▼6.49 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.53 ▼2.14 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.81 ▲4.89 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.98 ▼7.56 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.19 ▲2.42 |
Server storage [IO: ▲7.55MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 369 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Hunk Companion
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,857 ▲122 | 13.30 ▼1.08 | 5.23 ▲3.16 | 38.03 ▼10.35 |
Dashboard /wp-admin | 2,266 ▲78 | 5.80 ▲0.93 | 103.24 ▼10.35 | 82.58 ▲42.59 |
Posts /wp-admin/edit.php | 2,148 ▲59 | 2.02 ▲0.04 | 38.08 ▲0.58 | 39.92 ▲4.32 |
Add New Post /wp-admin/post-new.php | 1,567 ▲33 | 20.97 ▼2.36 | 603.63 ▼80.11 | 45.05 ▼9.06 |
Media Library /wp-admin/upload.php | 1,442 ▲57 | 4.24 ▲0.05 | 103.55 ▼4.96 | 87.45 ▲40.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/hunk-companion/open-shop/customizer/repeater/icon-picker/icons.php
- > /wp-content/plugins/hunk-companion/notify/notify-html.php
- > /wp-content/plugins/hunk-companion/top-store/customizer/repeater/icon-picker/icons.php
- > /wp-content/plugins/hunk-companion/open-mart/customizer/repeater/icon-picker/icons.php
- 129× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/hunk-companion/open-shop/open-shop-front-page/front-ribbon.php:2
- > PHP Fatal error
Uncaught Error: Call to a member function add_setting() on null in wp-content/plugins/hunk-companion/open-mart/customizer/frontpage/top-slider.php:2
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/hunk-companion/th-shop-mania/product-simple-addon/product-simple-addon.php:7
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/hunk-companion/open-shop/customizer/frontpage/banner.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hunk-companion/portfoliolite/widgets/testimonial-widget.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/hunk-companion/top-store/top-store-front-page/front-productlist.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hunk-companion/th-shop-mania/product-simple-addon/ajx.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/hunk-companion/open-shop/open-shop-front-page/front-banner.php:2
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/hunk-companion/open-mart/customizer/frontpage/category-tab.php on line 16
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/hunk-companion/open-shop/customizer/frontpage/category-slider.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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 to be fixed:
- Screenshots: Please add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-2.png)
hunk-companion/hunk-companion.php 92% from 13 tests
The main PHP script in "Hunk Companion" version 1.7.5 is automatically included on every request by WordPress
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 152 characters long)
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
There were no executable files found in this plugin79,569 lines of code in 289 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 197 | 2,827 | 3,546 | 25,539 |
XML | 2 | 26 | 52 | 19,781 |
JavaScript | 57 | 3,392 | 4,386 | 19,586 |
CSS | 23 | 864 | 225 | 11,161 |
SVG | 7 | 1 | 1 | 2,848 |
Sass | 3 | 60 | 30 | 654 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 23.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 262.00 |
Average method complexity | 4.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 53 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 53 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 349 | |
▷ Static methods | 51 | 14.61% |
▷ Public methods | 247 | 70.77% |
▷ Protected methods | 56 | 16.05% |
▷ Private methods | 46 | 13.18% |
Functions | 186 | |
▷ Named functions | 186 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 29 | |
▷ Global constants | 27 | 93.10% |
▷ Class constants | 2 | 6.90% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
32 PNG files occupy 0.56MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
import/assets/logo/pixline.png | 1.97KB | 1.83KB | ▼ 7.09% |
import/assets/image/pagelayer.png | 2.08KB | 1.27KB | ▼ 39.13% |
almaira-shop/demo/images/almaira-boxed.png | 26.98KB | 28.47KB | 0.00% |
gogolite/images/logo-4.png | 6.73KB | 3.52KB | ▼ 47.77% |
gogolite/images/about.png | 278.36KB | 87.89KB | ▼ 68.42% |