Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.55ms] Passed 4 tests
This is a short check of server-side resources used by WPHobby WooCommerce Product Filter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.51 ▼2.64 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.69 ▼2.12 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 51.01 ▲3.65 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 82.41 ▼17.08 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.03 ▲4.59 |
Server storage [IO: ▲1.27MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WPHobby WooCommerce Product Filter
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲49 | 13.28 ▼1.34 | 1.77 ▼0.53 | 42.57 ▼0.02 |
Dashboard /wp-admin | 2,209 ▲21 | 4.86 ▼1.05 | 108.01 ▼2.85 | 42.76 ▼3.27 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.01 ▲0.01 | 38.43 ▲3.86 | 36.15 ▲2.78 |
Add New Post /wp-admin/post-new.php | 1,520 ▼19 | 17.50 ▼0.60 | 603.91 ▼67.09 | 54.91 ▲0.32 |
Media Library /wp-admin/upload.php | 1,397 ▲6 | 4.23 ▲0.05 | 99.75 ▲1.80 | 45.11 ▲3.46 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/wphobby-woocommerce-product-filter/includes/admin/sections/top.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/wphobby-woocommerce-product-filter/includes/admin/sections/tab-general.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wphobby-woocommerce-product-filter/includes/whpf_admin.php:15
- > 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
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 30 tag instead of maximum 10
wphobby-woocommerce-product-filter/wphobby-woo-product-filter.php 92% from 13 tests
The principal PHP file in "WPHobby WooCommerce Product Filter" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wphobby-woocommerce-product-filter.php" instead of "wphobby-woo-product-filter.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
No dangerous file extensions were detected4,837 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 1,882 | 44 | 4,386 |
PHP | 8 | 103 | 149 | 410 |
JavaScript | 2 | 9 | 3 | 27 |
SVG | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 9.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/admin/images/icon.png | 19.99KB | 0.88KB | ▼ 95.61% |