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: ▲0.17MB] [CPU: ▼2.96ms] Passed 4 tests
Analyzing server-side resources used by HM Product Catalog
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 40.34 ▲2.35 |
Dashboard /wp-admin | 3.47 ▲0.16 | 46.89 ▼1.88 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 53.46 ▲0.73 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.19 | 84.66 ▼13.04 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 33.89 ▲3.07 |
Product Categories /wp-admin/edit-tags.php?taxonomy=product_category&post_type=products | 3.38 | 33.76 |
Help & Usage /wp-admin/admin.php?page=wphpc-get-help | 3.36 | 30.49 |
Product Catalogs /wp-admin/edit-tags.php?taxonomy=product_catalog&post_type=products | 3.38 | 30.87 |
Add New /wp-admin/post-new.php?post_type=products | 3.53 | 54.45 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=products | 3.39 | 41.31 |
General Settings /wp-admin/admin.php?page=wphpc-settings-section | 3.41 | 32.73 |
All Products /wp-admin/edit.php?post_type=products | 3.43 | 38.06 |
Server storage [IO: ▲0.58MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for HM Product Catalog
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,868 ▲133 | 13.21 ▼1.47 | 1.67 ▼0.12 | 39.77 ▼1.86 |
Dashboard /wp-admin | 2,274 ▲86 | 4.93 ▲0.05 | 108.26 ▼6.82 | 63.54 ▲21.27 |
Posts /wp-admin/edit.php | 2,151 ▲59 | 2.02 ▲0.01 | 39.66 ▼0.87 | 35.64 ▲1.75 |
Add New Post /wp-admin/post-new.php | 1,577 ▲49 | 23.40 ▲5.33 | 736.59 ▲129.77 | 52.05 ▼1.20 |
Media Library /wp-admin/upload.php | 1,453 ▲62 | 4.22 ▼0.14 | 94.26 ▼10.46 | 78.23 ▲34.06 |
Product Categories /wp-admin/edit-tags.php?taxonomy=product_category&post_type=products | 1,327 | 2.14 | 26.49 | 35.90 |
Help & Usage /wp-admin/admin.php?page=wphpc-get-help | 1,052 | 5.91 | 102.41 | 56.67 |
Product Catalogs /wp-admin/edit-tags.php?taxonomy=product_catalog&post_type=products | 1,324 | 2.27 | 28.78 | 25.90 |
Add New /wp-admin/post-new.php?post_type=products | 3,044 | 9.23 | 209.31 | 137.11 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=products | 1,369 | 2.14 | 25.18 | 32.03 |
General Settings /wp-admin/admin.php?page=wphpc-settings-section | 1,706 | 6.18 | 133.48 | 33.71 |
All Products /wp-admin/edit.php?post_type=products | 1,198 | 1.96 | 31.84 | 27.81 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wphpc-settings-section
- > Notice in wp-content/plugins/hm-product-catalog/admin/view/wphpc-admin-settings.php+106
Trying to access array offset on value of type bool
SRP 0% 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/hm-product-catalog/admin/view/partial/admin-sidebar.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/hm-product-catalog/front/view/single.php:6
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wphpc-settings-section
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wphpc-settings-section
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: affiliate, store, amazon affiliates, amazon, catalog
hm-product-catalog/hm-product-catalog.php Passed 13 tests
Analyzing the main PHP file in "HM Product Catalog" version 1.7.2
85 characters long description:
Product Showcase & Affiliat Plugin for WordPress to display products in your webpage.
Code Analysis Passed 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 plugin15,723 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 2,338 | 1,553 | 12,339 |
CSS | 4 | 142 | 62 | 1,800 |
PHP | 14 | 154 | 62 | 1,584 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 8.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 27 | 87.10% |
▷ Protected methods | 1 | 3.23% |
▷ Private methods | 3 | 9.68% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/hmplugin-icon.png | 3.12KB | 0.61KB | ▼ 80.38% |