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.19MB] [CPU: ▼1.83ms] Passed 4 tests
This is a short check of server-side resources used by Hmu - Woocommerce ajax filter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 47.68 ▲5.79 |
Dashboard /wp-admin | 3.54 ▲0.24 | 51.90 ▼3.25 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 56.38 ▼0.45 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 101.32 ▼6.91 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 37.70 ▲3.31 |
Server storage [IO: ▲6.46MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 385 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Hmu - Woocommerce ajax filter
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲47 | 14.38 ▲0.10 | 2.49 ▲0.79 | 45.24 ▲4.36 |
Dashboard /wp-admin | 2,210 ▲33 | 5.58 ▼0.05 | 88.82 ▼6.18 | 40.81 ▼1.71 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 1.97 ▼0.01 | 48.32 ▲13.09 | 37.42 ▲5.03 |
Add New Post /wp-admin/post-new.php | 1,538 ▲7 | 23.39 ▲0.30 | 643.57 ▼50.16 | 58.35 ▲1.39 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.23 ▲0.03 | 95.93 ▼13.54 | 40.12 ▼6.65 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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 items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/hook-me-up-ajax-filter/vendor/automattic/woocommerce/tests/bootstrap.php
- 15× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'HmuWAF\\Base\\BaseController' not found in wp-content/plugins/hook-me-up-ajax-filter/inc/Api/Callbacks/FieldsCallbacks.php:18
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/hook-me-up-ajax-filter/vendor/automattic/woocommerce/tests/WooCommerce/Tests/HttpClient/OAuthTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'HmuWAF\\Base\\BaseController' not found in wp-content/plugins/hook-me-up-ajax-filter/inc/Pages/Fields.php:23
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/hook-me-up-ajax-filter/vendor/automattic/woocommerce/tests/WooCommerce/Tests/ClientTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'HmuWAF\\Base\\BaseController' not found in wp-content/plugins/hook-me-up-ajax-filter/inc/Filter/HmuAllTaxonomies.php:19
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/hook-me-up-ajax-filter/vendor/automattic/woocommerce/tests/WooCommerce/Tests/HttpClient/ResponseTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'HmuWAF\\Base\\BaseController' not found in wp-content/plugins/hook-me-up-ajax-filter/inc/Filter/HmuAjax.php:19
- > PHP Fatal error
Uncaught Error: Class 'HmuWAF\\Base\\BaseController' not found in wp-content/plugins/hook-me-up-ajax-filter/inc/Base/SettingsLinks.php:17
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/hook-me-up-ajax-filter/vendor/automattic/woocommerce/tests/WooCommerce/Tests/HttpClient/HttpClientExceptionTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'HmuWAF\\Base\\BaseController' not found in wp-content/plugins/hook-me-up-ajax-filter/template/dashboard.php:4
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: filter, categories, woocommerce, taxonomies
hook-me-up-ajax-filter/hmu-ajax-filter.php 69% from 13 tests
The main PHP file in "Hmu - Woocommerce ajax filter" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Git Repository: There should be no Git repositories present in your plugin
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hook-me-up-ajax-filter.php" instead of "hmu-ajax-filter.php")
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected3,212 lines of code in 377 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 39 | 519 | 1,043 | 2,128 |
JavaScript | 326 | 109 | 51 | 648 |
Markdown | 2 | 66 | 0 | 165 |
CSS | 3 | 8 | 3 | 121 |
JSON | 3 | 0 | 0 | 105 |
XML | 2 | 1 | 0 | 26 |
YAML | 2 | 6 | 0 | 19 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 6.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 31 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 31 | 100.00% |
▷ Final classes | 1 | 3.23% |
Methods | 167 | |
▷ Static methods | 11 | 6.59% |
▷ Public methods | 145 | 86.83% |
▷ Protected methods | 21 | 12.57% |
▷ Private methods | 1 | 0.60% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 7 | |
▷ Global constants | 1 | 14.29% |
▷ Class constants | 6 | 85.71% |
▷ Public constants | 6 | 100.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
There are no PNG files in this plugin