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
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.16ms] Passed 4 tests
Analyzing server-side resources used by Taxonomy/Term and Role based Discounts for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.00 ▼5.19 |
Dashboard /wp-admin | 3.31 ▲0.01 | 42.87 ▼5.43 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.01 ▼0.34 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.03 ▼9.69 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.22 ▲2.65 |
Server storage [IO: ▲0.13MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Taxonomy/Term and Role based Discounts for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲76 | 13.30 ▼1.10 | 5.24 ▲3.48 | 35.68 ▼14.85 |
Dashboard /wp-admin | 2,217 ▲29 | 5.90 ▲0.98 | 106.12 ▲1.09 | 41.29 ▼1.99 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.01 ▲0.01 | 36.95 ▲1.06 | 33.01 ▼2.60 |
Add New Post /wp-admin/post-new.php | 1,549 ▲16 | 23.15 ▲0.18 | 627.81 ▼16.50 | 59.30 ▲5.56 |
Media Library /wp-admin/upload.php | 1,402 ▲20 | 4.21 ▲0.05 | 97.94 ▲1.52 | 43.10 ▼0.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
The SRP test was a success
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Tags: There are too many tags (26 tag instead of maximum 10)
taxonomy-discounts-woocommerce/taxonomy-discounts-woocommerce.php 92% from 13 tests
Analyzing the main PHP file in "Taxonomy/Term and Role based Discounts for WooCommerce" version 4.3
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 163 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,922 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 81 | 158 | 1,582 |
JavaScript | 1 | 13 | 21 | 251 |
CSS | 1 | 3 | 0 | 89 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of 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.73 |
Average class complexity | 464.00 |
▷ Minimum class complexity | 464.00 |
▷ Maximum class complexity | 464.00 |
Average method complexity | 11.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 75.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 3 | 6.82% |
▷ Public methods | 43 | 97.73% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.27% |
Functions | 9 | |
▷ Named functions | 6 | 66.67% |
▷ Anonymous functions | 3 | 33.33% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin