Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.33ms] Passed 4 tests
This is a short check of server-side resources used by WC Filter By Multiple Tax
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.19 ▼11.56 |
Dashboard /wp-admin | 3.33 ▲0.02 | 52.63 ▼1.27 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.30 ▼3.05 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 91.67 ▼13.43 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.10 ▼0.78 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WC Filter By Multiple Tax
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲21 | 14.34 ▼0.01 | 1.68 ▼0.53 | 43.22 ▼1.90 |
Dashboard /wp-admin | 2,213 ▲36 | 5.60 ▲0.01 | 93.91 ▲5.81 | 41.73 ▼1.65 |
Posts /wp-admin/edit.php | 2,122 ▲22 | 2.02 ▲0.00 | 37.00 ▼0.27 | 38.18 ▼0.82 |
Add New Post /wp-admin/post-new.php | 1,546 ▲17 | 23.14 ▼0.50 | 686.42 ▲23.31 | 51.44 ▼3.73 |
Media Library /wp-admin/upload.php | 1,415 ▲12 | 4.25 ▲0.10 | 97.05 ▼4.32 | 45.26 ▲1.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-filter-by-multiple-tax/includes/_frontend_enqueue.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-filter-by-multiple-tax/includes/_admin_enqueue.php:23
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wc-filter-by-multiple-tax/includes/abstracts/abstract-wc-widget.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6 in wc-filter-by-multiple-tax/assets to your readme.txt
wc-filter-by-multiple-tax/wc-filter-by-multiple-tax.php 92% from 13 tests
The principal PHP file in "WC Filter By Multiple Tax" v. 1.1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected2,860 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 561 | 430 | 1,765 |
LESS | 4 | 43 | 30 | 648 |
JavaScript | 2 | 113 | 7 | 318 |
PO File | 1 | 50 | 50 | 127 |
CSS | 2 | 0 | 0 | 2 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 242)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.69 |
Average class complexity | 66.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 274.00 |
Average method complexity | 11.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 242.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 1 | 20.00% |
▷ Concrete classes | 4 | 80.00% |
▷ Final classes | 1 | 25.00% |
Methods | 31 | |
▷ Static methods | 2 | 6.45% |
▷ Public methods | 27 | 87.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 12.90% |
Functions | 30 | |
▷ Named functions | 30 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
No PNG images were found in this plugin