Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.67MB] [CPU: ▼173.83ms] Passed 4 tests
This is a short check of server-side resources used by Woocommerce Catalog
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.95 ▲0.11 | 40.24 ▲4.60 |
Dashboard /wp-admin | 2.98 ▼0.07 | 26.99 ▼19.09 |
Posts /wp-admin/edit.php | 2.98 ▼0.14 | 27.81 ▼29.51 |
Add New Post /wp-admin/post-new.php | 2.98 ▼2.45 | 31.59 ▼634.69 |
Media Library /wp-admin/upload.php | 2.98 ▼0.02 | 23.88 ▼12.01 |
Woocommerce Catalog Mode /wp-admin/options-general.php?page=woo_Catalog_settings | 2.98 | 28.54 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Woocommerce Catalog
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲71 | 15.82 ▲0.28 | 11.31 ▲2.81 | 51.95 ▲4.74 |
Dashboard /wp-admin | 2,997 ▲69 | 5.89 ▼0.05 | 156.82 ▲14.18 | 118.35 ▲3.28 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▼0.00 | 71.84 ▲3.72 | 95.01 ▲0.61 |
Add New Post /wp-admin/post-new.php | 1,618 ▼65 | 21.46 ▲3.24 | 281.81 ▼128.72 | 112.22 ▲6.35 |
Media Library /wp-admin/upload.php | 1,830 ▲20 | 5.04 ▲0.03 | 154.23 ▼20.92 | 130.88 ▲6.73 |
Woocommerce Catalog Mode /wp-admin/options-general.php?page=woo_Catalog_settings | 1,875 | 4.86 | 117.92 | 109.03 |
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
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/woocommerce-catalog/include/php/settings.php+188
Trying to get property 'name' of non-object
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=woo_Catalog_settings
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/woocommerce-catalog/include/php/settings.php+188
Trying to get property 'name' of non-object
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=woo_Catalog_settings
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/woocommerce-catalog/include/php/settings.php+189
Trying to get property 'term_id' of non-object
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/woocommerce-catalog/include/css/style.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/woocommerce-catalog/woocommerce_catalogue.php on line 34
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/woocommerce-catalog/woocommerce_catalogue.php:34
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=woo_Catalog_settings
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload,farbtastic&ver=5.8.1 1:31592 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/woocommerce-catalog/include/js/admin.js?ver=1.0.0:193:31)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload,farbtastic&ver=5.8.1:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload,farbtastic&ver=5.8.1:2:30340)" undefined
- > GET request to /wp-admin/options-general.php?page=woo_Catalog_settings
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload,farbtastic&ver=5.8.1 1:31702 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Contributors: The plugin contributors field is not present
- Screenshots: Please add images for these screenshots: #1 (The basic settings to get you started.), #2 (Customize the custom button as you like.)
woocommerce-catalog/woocommerce_catalogue.php 92% from 13 tests
The entry point to "Woocommerce Catalog" version 1.2.5 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("woocommerce-catalog.php" instead of "woocommerce_catalogue.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin386 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 48 | 65 | 190 |
PHP | 3 | 46 | 20 | 163 |
CSS | 2 | 12 | 0 | 33 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 3.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 95.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.17% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
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 |
include/icons/infinite.png | 4.60KB | 2.26KB | ▼ 50.84% |