Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼6.36ms] Passed 4 tests
Server-side resources used by WCAPF - WooCommerce Ajax Product Filter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.07 ▼5.00 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.47 ▼11.49 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.30 ▲1.14 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.05 ▼10.06 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.39 ▲1.10 |
Server storage [IO: ▲1.98MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 90 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WCAPF - WooCommerce Ajax Product Filter
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.38 ▼1.00 | 4.56 ▲2.95 | 43.86 ▲0.84 |
Dashboard /wp-admin | 2,209 ▲21 | 4.87 ▼1.01 | 101.41 ▼2.55 | 39.93 ▼3.27 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.00 ▲0.02 | 39.30 ▲1.97 | 34.85 ▲0.00 |
Add New Post /wp-admin/post-new.php | 1,546 ▲18 | 18.28 ▼0.01 | 632.16 ▼19.93 | 71.01 ▲8.84 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.21 ▼0.01 | 95.15 ▼5.13 | 43.85 ▲0.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/wc-ajax-product-filter/wc-ajax-product-filter.php+323
Trying to access array offset on value of type bool
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% 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
Almost there! Just fix the following items
- 48× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wc-ajax-product-filter/templates/search-box.php:29
- > PHP Fatal error
Uncaught Error: Class 'WCAPF_Helper' not found in wp-content/plugins/wc-ajax-product-filter/templates/active-filters.php:21
- > PHP Fatal error
Uncaught Error: Class 'WCAPF_Filter_Type' not found in wp-content/plugins/wc-ajax-product-filter/includes/filter-types/class-wcapf-filter-type-post-meta.php:16
- > PHP Warning
Use of undefined constant WCAPF_PLUGIN_DIR - assumed 'WCAPF_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wc-ajax-product-filter/includes/wcapf-dependencies.php on line 8
- > PHP Notice
Undefined variable: display_values_as in wp-content/plugins/wc-ajax-product-filter/templates/range.php on line 69
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-ajax-product-filter/includes/hooks/class-wcapf-hooks.php:405
- > PHP Notice
Undefined variable: min_value in wp-content/plugins/wc-ajax-product-filter/templates/range.php on line 62
- > PHP Fatal error
Uncaught Error: Class 'WCAPF_Filter_Type' not found in wp-content/plugins/wc-ajax-product-filter/includes/filter-types/class-wcapf-filter-type-taxonomy.php:16
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wc-ajax-product-filter/includes/widgets/class-wcapf-filter-widget.php:16
- > PHP Notice
Undefined variable: range_max_value in wp-content/plugins/wc-ajax-product-filter/templates/range.php on line 61
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: Too many tags (22 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wc-ajax-product-filter/wc-ajax-product-filter.php Passed 13 tests
"WCAPF - WooCommerce Ajax Product Filter" version 4.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
58 characters long description:
A plugin to filter WooCommerce products with AJAX request.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected14,469 lines of code in 83 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 47 | 2,281 | 3,034 | 7,473 |
JavaScript | 14 | 303 | 591 | 4,549 |
CSS | 11 | 343 | 69 | 2,191 |
SVG | 9 | 0 | 0 | 175 |
HTML | 1 | 16 | 0 | 76 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
A brief analysis 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.35 |
Average class complexity | 31.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 138.00 |
Average method complexity | 3.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 33 | |
▷ Abstract classes | 1 | 3.03% |
▷ Concrete classes | 32 | 96.97% |
▷ Final classes | 0 | 0.00% |
Methods | 371 | |
▷ Static methods | 107 | 28.84% |
▷ Public methods | 215 | 57.95% |
▷ Protected methods | 44 | 11.86% |
▷ Private methods | 112 | 30.19% |
Functions | 8 | |
▷ Named functions | 4 | 50.00% |
▷ Anonymous functions | 4 | 50.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin