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.01MB] [CPU: ▼2.98ms] Passed 4 tests
Analyzing server-side resources used by Woocommerce Custom Tab Lite
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.53 ▲3.48 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.03 ▼6.00 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.52 ▼5.18 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 88.51 ▼2.75 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 35.86 ▲2.01 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Woocommerce Custom Tab Lite
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.19 ▼1.20 | 1.68 ▲0.01 | 43.11 ▲3.96 |
Dashboard /wp-admin | 2,210 ▲19 | 4.86 ▼0.01 | 107.61 ▲5.76 | 43.19 ▲1.22 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.01 ▲0.01 | 39.99 ▼3.28 | 36.16 ▼2.06 |
Add New Post /wp-admin/post-new.php | 1,546 ▲18 | 18.45 ▲0.15 | 588.61 ▼47.83 | 63.53 ▲9.33 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.20 ▼0.07 | 95.16 ▼5.43 | 43.05 ▼1.87 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 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
Please fix the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/woocommerce-custom-tab-lite/all_tabs.php
- > /wp-content/plugins/woocommerce-custom-tab-lite/all-plugin.php
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/woocommerce-custom-tab-lite/libs/tgm/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/woocommerce-custom-tab-lite/libs/tgm/class-tgm-plugin-activation.php:2109
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/woocommerce-custom-tab-lite/wp_table.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woocommerce-custom-tab-lite/tabs.php:95
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/woocommerce-custom-tab-lite/wp_table.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/woocommerce-custom-tab-lite/wctm_premium.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/woocommerce-custom-tab-lite/libs/tgm/class-tgm-plugin-activation.php:2109
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/woocommerce-custom-tab-lite/wp_table.php on line 9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #2, #3, #4, #5, #6 in woocommerce-custom-tab-lite/assets to your readme.txt
woocommerce-custom-tab-lite/woocommerce_custom_tab_manager.php 85% from 13 tests
The entry point to "Woocommerce Custom Tab Lite" version 1.4.4 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woocommerce-custom-tab-lite.php" instead of "woocommerce_custom_tab_manager.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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,480 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 679 | 1,699 | 2,461 |
JavaScript | 1 | 12 | 0 | 19 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 44.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 4.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.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 | 110 | |
▷ Static methods | 5 | 4.55% |
▷ Public methods | 87 | 79.09% |
▷ Protected methods | 23 | 20.91% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
13 PNG files occupy 0.25MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/image-frame-odd.png | 0.90KB | 0.81KB | ▼ 10.31% |
images/logo-wp.png | 1.20KB | 0.57KB | ▼ 52.72% |
images/premium-btn.png | 5.72KB | 5.28KB | ▼ 7.69% |
images/Product_Specific.png | 38.66KB | 13.73KB | ▼ 64.48% |
images/category_tab_option.png | 43.00KB | 13.01KB | ▼ 69.76% |