Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.28ms] Passed 4 tests
An overview of server-side resources used by WOOF by Category
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.33 ▼5.52 |
Dashboard /wp-admin | 3.31 ▲0.00 | 52.29 ▲2.32 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.68 ▲0.21 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.33 ▼18.46 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.22 ▼1.33 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WOOF by Category
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.74 ▲0.34 | 1.77 ▼0.10 | 43.28 ▲1.09 |
Dashboard /wp-admin | 2,209 ▲21 | 4.86 ▼1.00 | 111.23 ▲9.27 | 42.92 ▲0.23 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.06 ▲0.05 | 34.89 ▼6.70 | 33.37 ▼4.05 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.38 ▲0.35 | 640.22 ▼9.81 | 53.05 ▼18.39 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.21 ▲0.08 | 100.39 ▼6.82 | 44.26 ▼4.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
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 Passed 29 tests
readme.txt Passed 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
4 plugin tags: filter category, filter, woocommerce products filter, woocommerce
woof-by-category/woof-by-category.php Passed 13 tests
The main PHP script in "WOOF by Category" version 3.0.1 is automatically included on every request by WordPress
113 characters long description:
WooCommerce Product Filter (WOOF) extension to display set of filters depending on current product category page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,518 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 339 | 791 | 1,410 |
PO File | 1 | 16 | 17 | 54 |
CSS | 1 | 12 | 0 | 49 |
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.49 |
Average class complexity | 47.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 145.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 89 | |
▷ Static methods | 19 | 21.35% |
▷ Public methods | 59 | 66.29% |
▷ Protected methods | 11 | 12.36% |
▷ Private methods | 19 | 21.35% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 8 | |
▷ Global constants | 1 | 12.50% |
▷ Class constants | 7 | 87.50% |
▷ Public constants | 7 | 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