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.09MB] [CPU: ▼0.95ms] Passed 4 tests
An overview of server-side resources used by TyresAddict - Tyre Product Filter for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 41.65 ▲5.11 |
Dashboard /wp-admin | 3.40 ▲0.06 | 53.54 ▼7.27 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 49.41 ▲1.31 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 89.90 ▼2.95 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 41.00 ▲8.74 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_tyresaddict_woo_tyre_filter_wgt |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
tyresaddict-woo-tyre-product-filter-deferred-admin-notices |
theysaidso_admin_options |
Browser metrics Passed 4 tests
TyresAddict - Tyre Product Filter for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲55 | 14.04 ▼0.12 | 1.83 ▲0.10 | 41.41 ▼2.42 |
Dashboard /wp-admin | 2,195 ▲17 | 5.49 ▼0.19 | 93.30 ▼12.12 | 41.27 ▼0.05 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.02 | 36.22 ▲0.66 | 36.80 ▲1.77 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.29 ▲0.05 | 671.91 ▼7.35 | 59.99 ▲13.40 |
Media Library /wp-admin/upload.php | 1,424 ▲21 | 4.17 ▼0.03 | 99.92 ▼11.01 | 44.30 ▼2.32 |
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
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_tyresaddict_woo_tyre_filter_wgt
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- tyresaddict-woo-tyre-product-filter-deferred-admin-notices
- widget_recent-posts
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
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/tyresaddict-woo-tyre-product-filter/includes/FilterWidget.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/tyresaddict-woo-tyre-product-filter/templates/filter-white.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
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
Please fix the following attributes:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
tyresaddict-woo-tyre-product-filter/tyresaddict-woo-tyre-product-filter.php 92% from 13 tests
The main PHP file in "TyresAddict - Tyre Product Filter for WooCommerce" ver. 1.4.17 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 165 characters long)
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
No dangerous file extensions were detected988 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 283 | 262 | 647 |
PO File | 3 | 86 | 98 | 208 |
CSS | 1 | 11 | 0 | 78 |
JavaScript | 1 | 16 | 1 | 55 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 6.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 27 | 51.92% |
▷ Public methods | 47 | 90.38% |
▷ Protected methods | 1 | 1.92% |
▷ Private methods | 4 | 7.69% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 17 | 100.00% |
▷ Public constants | 17 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin