Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲1.05MB] [CPU: ▼5.10ms] Passed 4 tests
An overview of server-side resources used by Woocommerce Custom Tabs
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.44 ▲0.98 | 44.55 ▲0.97 |
Dashboard /wp-admin | 4.33 ▲1.03 | 53.68 ▲5.07 |
Posts /wp-admin/edit.php | 4.45 ▲1.09 | 55.49 ▼3.06 |
Add New Post /wp-admin/post-new.php | 7.02 ▲1.13 | 88.73 ▼23.39 |
Media Library /wp-admin/upload.php | 4.34 ▲1.11 | 45.38 ▲9.98 |
WooCommerce Custom Tabs /wp-admin/options-general.php?page=woocommerce_custom_tabs | 4.20 | 37.37 |
Server storage [IO: ▲7.39MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 264 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
acf_version |
recovery_mode_email_last_sent |
theysaidso_admin_options |
widget_recent-posts |
wct_general_settings |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Woocommerce Custom Tabs
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲76 | 14.37 ▲0.17 | 2.14 ▲0.24 | 44.75 ▼2.93 |
Dashboard /wp-admin | 2,206 ▲26 | 5.62 ▼0.08 | 94.79 ▲1.80 | 41.37 ▼11.10 |
Posts /wp-admin/edit.php | 2,105 ▲2 | 2.01 ▲0.05 | 34.26 ▼7.13 | 34.27 ▼4.97 |
Add New Post /wp-admin/post-new.php | 6,660 ▲5,134 | 27.75 ▲4.59 | 1,031.65 ▲310.92 | 38.79 ▼18.10 |
Media Library /wp-admin/upload.php | 1,943 ▲543 | 8.14 ▲3.96 | 207.18 ▲98.41 | 48.45 ▼1.53 |
WooCommerce Custom Tabs /wp-admin/options-general.php?page=woocommerce_custom_tabs | 689 | 1.12 | 7.51 | 17.49 |
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 were found after uninstall: 9 options
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- recovery_mode_email_last_sent
- wct_general_settings
- widget_recent-posts
- acf_version
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=woocommerce_custom_tabs
- > Error in wp-content/plugins/woocommerce-custom-tabs/wct-admin-page.php+124
Uncaught Error: Call to undefined function showAdminMessage() in wp-content/plugins/woocommerce-custom-tabs/wct-admin-page.php:124
Stack trace:
#0 wp-includes/class-wp-hook.php(310): WCT_Admin_Page->add_options_page_callback()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/admin.php(259): do_action()
#4 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#5 {main}
thrown
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
Almost there! Just fix the following items
- 80× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/woocommerce-custom-tabs/advanced-custom-fields/includes/admin/views/html-location-rule.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function acf_idify() in wp-content/plugins/woocommerce-custom-tabs/advanced-custom-fields/includes/admin/views/field-group-field.php:5
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/woocommerce-custom-tabs/advanced-custom-fields/includes/fields/class-acf-field-email.php:5
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/woocommerce-custom-tabs/advanced-custom-fields/includes/fields/class-acf-field-google-map.php:5
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/woocommerce-custom-tabs/advanced-custom-fields/includes/fields/class-acf-field-wysiwyg.php:5
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/woocommerce-custom-tabs/advanced-custom-fields/includes/fields/class-acf-field-oembed.php:5
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/woocommerce-custom-tabs/advanced-custom-fields/includes/fields/class-acf-field-accordion.php:5
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/woocommerce-custom-tabs/advanced-custom-fields/includes/fields/class-acf-field-textarea.php:5
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/woocommerce-custom-tabs/advanced-custom-fields/includes/fields/class-acf-field-group.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function acf_register_store() in wp-content/plugins/woocommerce-custom-tabs/advanced-custom-fields/includes/acf-value-functions.php:4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
4 plugin tags: custom tab, woocommerce product tabs, product tab, woocommerce
woocommerce-custom-tabs/woocommerce-custom-tabs.php 92% from 13 tests
"Woocommerce Custom Tabs" version 1.0.29's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 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
Success! There were no dangerous files found in this plugin90,189 lines of code in 203 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 34 | 23,340 | 38,173 | 49,276 |
JavaScript | 13 | 6,711 | 6,577 | 22,234 |
PHP | 139 | 11,261 | 18,080 | 16,833 |
CSS | 13 | 210 | 61 | 1,650 |
JSON | 1 | 0 | 0 | 124 |
Markdown | 2 | 30 | 0 | 42 |
SVG | 1 | 18 | 0 | 30 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 12.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 108 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 108 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 728 | |
▷ Static methods | 6 | 0.82% |
▷ Public methods | 727 | 99.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.14% |
Functions | 422 | |
▷ Named functions | 422 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 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
14 compressed PNG files occupy 0.23MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
advanced-custom-fields/assets/inc/datepicker/images/ui-bg_highlight-soft_0_ffffff_1x100.png | 0.08KB | 0.08KB | 0.00% |
advanced-custom-fields/assets/inc/select2/3/select2.png | 0.51KB | 0.99KB | 0.00% |
images/WCT_product_box_RIGHT_PRO_v1_235x235.png | 57.59KB | 18.53KB | ▼ 67.81% |
advanced-custom-fields/assets/inc/datepicker/images/ui-icons_ffffff_256x240.png | 3.68KB | 4.17KB | 0.00% |
advanced-custom-fields/assets/inc/datepicker/images/ui-icons_DDDDDD_256x240.png | 3.68KB | 4.17KB | 0.00% |