Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼146.82ms] Passed 4 tests
An overview of server-side resources used by Hide Categories and Products for Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.04 | 30.60 ▲3.18 |
Dashboard /wp-admin | 3.10 ▲0.03 | 29.48 ▼7.04 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 37.46 ▲7.16 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.02 | 68.76 ▼585.91 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 23.95 ▲2.50 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Hide Categories and Products for Woocommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,666 ▲65 | 15.65 ▼0.40 | 4.92 ▼0.72 | 74.52 ▼5.13 |
Dashboard /wp-admin | 2,933 ▲37 | 6.13 ▼0.04 | 114.58 ▼17.18 | 167.44 ▼2.93 |
Posts /wp-admin/edit.php | 2,737 ▼3 | 3.06 ▼0.18 | 68.67 ▲6.15 | 170.49 ▲34.09 |
Add New Post /wp-admin/post-new.php | 3,735 ▼11 | 18.66 ▼0.06 | 454.67 ▲28.79 | 164.52 ▲0.74 |
Media Library /wp-admin/upload.php | 1,752 ▼0 | 5.55 ▲0.03 | 143.97 ▼2.10 | 186.41 ▲4.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
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
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hide-categories-products-woocommerce/hide-categories-products-wc.php:28
- > 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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: woocommerce, categories, storefront, hide, product
hide-categories-products-woocommerce/hide-categories-products-wc.php 85% from 13 tests
This is the main PHP file of "Hide Categories and Products for Woocommerce" version 1.2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Requires at least: Required version does not match the one declared in readme.txt ("4.9.7" instead of "3.0.0")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hide-categories-products-woocommerce.php" instead of "hide-categories-products-wc.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,299 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 1 | 1 | 1,060 |
PHP | 1 | 27 | 71 | 182 |
PO File | 1 | 4 | 4 | 26 |
JavaScript | 1 | 5 | 0 | 17 |
CSS | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.16MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 3.09KB | 1.99KB | ▼ 35.51% |
assets/icon-256x256.png | 7.07KB | 4.00KB | ▼ 43.46% |
assets/banner-1544x500.png | 21.71KB | 8.94KB | ▼ 58.83% |
assets/screenshot-1.png | 126.25KB | 49.89KB | ▼ 60.49% |
assets/banner-772x250.png | 9.11KB | 4.34KB | ▼ 52.36% |