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
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼5.69ms] Passed 4 tests
Server-side resources used by Custom Product Tabs For WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.87 ▲1.37 |
Dashboard /wp-admin | 3.31 ▼0.03 | 45.14 ▼12.45 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.70 ▼5.17 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 90.90 ▼4.77 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.33 ▼0.38 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Custom Product Tabs For WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.27 ▼0.01 | 1.70 ▲0.07 | 43.78 ▲4.98 |
Dashboard /wp-admin | 2,192 ▲15 | 5.53 ▼0.10 | 92.24 ▼5.51 | 38.88 ▼5.09 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.97 ▼0.00 | 40.90 ▲1.13 | 40.95 ▲2.66 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.07 ▲0.06 | 612.29 ▼20.58 | 46.71 ▼16.54 |
Media Library /wp-admin/upload.php | 1,391 ▼9 | 4.21 ▲0.02 | 101.96 ▲2.62 | 43.63 ▲1.06 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 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)
Even though no errors were found, this is by no means 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
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wb-custom-product-tabs-for-woocommerce/admin/partials/wb-custom-product-tabs-for-woocommerce-admin-display.php
- > /wp-content/plugins/wb-custom-product-tabs-for-woocommerce/public/partials/wb-custom-product-tabs-for-woocommerce-public-display.php
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 is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: You are using too many tags: 28 tag instead of maximum 10
wb-custom-product-tabs-for-woocommerce/wb-custom-product-tabs-for-woocommerce.php 92% from 13 tests
The main file in "Custom Product Tabs For WooCommerce" v. 1.1.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("3.0.1" instead of "3.0.0")
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
Success! There were no dangerous files found in this plugin1,384 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 229 | 707 | 984 |
JavaScript | 2 | 45 | 0 | 338 |
CSS | 2 | 3 | 8 | 46 |
XML | 1 | 0 | 0 | 16 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 8.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 10 | 18.18% |
▷ Public methods | 46 | 83.64% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 16.36% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
No PNG files were detected