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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼4.04ms] Passed 4 tests
This is a short check of server-side resources used by Category and Product Woocommerce Tabs
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 36.77 ▼5.49 |
Dashboard /wp-admin | 3.40 ▲0.10 | 47.73 ▲0.14 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 47.33 ▲0.14 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 91.63 ▼10.93 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 36.12 ▲3.55 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_wccategorytab |
Browser metrics Passed 4 tests
Checking browser requirements for Category and Product Woocommerce Tabs
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,900 ▲165 | 13.77 ▼0.79 | 8.21 ▲6.46 | 40.61 ▼11.87 |
Dashboard /wp-admin | 2,213 ▲25 | 5.90 ▲0.02 | 110.64 ▼3.59 | 42.73 ▼2.37 |
Posts /wp-admin/edit.php | 2,099 ▲10 | 2.03 ▼0.03 | 40.55 ▲2.82 | 40.43 ▲4.98 |
Add New Post /wp-admin/post-new.php | 1,530 ▼4 | 18.52 ▼4.56 | 603.88 ▼2.18 | 55.85 ▲3.52 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.24 ▲0.03 | 95.81 ▼5.18 | 42.13 ▼2.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_wccategorytab
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 30 tag instead of maximum 10
category-and-product-woocommerce-tabs/plugin.php 92% from 13 tests
"Category and Product Woocommerce Tabs" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("category-and-product-woocommerce-tabs.php" instead of "plugin.php")
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
There were no executable files found in this plugin1,710 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 219 | 384 | 1,192 |
JavaScript | 2 | 40 | 0 | 232 |
PO File | 1 | 73 | 0 | 164 |
CSS | 2 | 9 | 8 | 122 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 12.33 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 1 | 33.33% |
▷ Concrete classes | 2 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 96.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 16 | 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
7 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/view.png | 1.80KB | 1.14KB | ▼ 36.27% |
assets/images/right-icon.png | 0.36KB | 0.44KB | 0.00% |
assets/images/view-more.png | 0.36KB | 0.33KB | ▼ 7.14% |
assets/images/cart.png | 0.48KB | 0.47KB | ▼ 1.84% |
assets/images/searchicon.png | 0.80KB | 0.82KB | 0.00% |