Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.91ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Product Tabs
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.35 ▼0.61 |
Dashboard /wp-admin | 3.31 ▲0.00 | 42.25 ▼7.15 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.32 ▲0.05 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.85 ▼3.93 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.98 ▲0.41 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce Product Tabs
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.20 ▼1.18 | 1.76 ▲0.06 | 43.68 ▼4.56 |
Dashboard /wp-admin | 2,209 ▲24 | 5.86 ▲0.94 | 106.41 ▼6.67 | 42.68 ▼3.56 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.03 ▼0.00 | 40.71 ▲1.84 | 33.57 ▼3.75 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.22 ▼0.02 | 597.46 ▼82.72 | 62.64 ▲9.51 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.22 ▲0.05 | 96.07 ▼11.03 | 40.76 ▼4.16 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
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 everything seems fine, this is not an exhaustive test
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
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Walker_Category' not found in wp-content/plugins/woocommerce-product-tabs/includes/class-woocmmerce-product-tabs-product-category-walker.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function Nilambar\\Welcome\\add_action() in wp-content/plugins/woocommerce-product-tabs/vendor/ernilambar/wp-welcome/init.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-product-tabs/admin/admin.php:10
- > PHP Fatal error
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, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 22 tag instead of maximum 10
woocommerce-product-tabs/woocommerce-product-tabs.php 92% from 13 tests
Analyzing the main PHP file in "WooCommerce Product Tabs" version 2.0.23
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 173 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected2,850 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 761 | 1,658 | 2,639 |
JSON | 3 | 0 | 0 | 150 |
JavaScript | 2 | 11 | 0 | 52 |
CSS | 2 | 0 | 0 | 7 |
Markdown | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
An overview of 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.43 |
Average class complexity | 19.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 3.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 161 | |
▷ Static methods | 42 | 26.09% |
▷ Public methods | 139 | 86.34% |
▷ Protected methods | 10 | 6.21% |
▷ Private methods | 12 | 7.45% |
Functions | 12 | |
▷ Named functions | 8 | 66.67% |
▷ Anonymous functions | 4 | 33.33% |
Constants | 16 | |
▷ Global constants | 14 | 87.50% |
▷ Class constants | 2 | 12.50% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin