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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.97ms] Passed 4 tests
Analyzing server-side resources used by YITH WooCommerce Tab Manager
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 36.85 ▼3.95 |
Dashboard /wp-admin | 3.33 ▼0.02 | 43.40 ▼15.21 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.37 ▲2.12 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 91.69 ▼2.13 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.46 ▲1.40 |
Server storage [IO: ▲3.63MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 321 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for YITH WooCommerce Tab Manager
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲24 | 14.07 ▼0.28 | 1.97 ▲0.02 | 41.48 ▼0.39 |
Dashboard /wp-admin | 2,201 ▲20 | 5.57 ▼0.13 | 88.62 ▼16.78 | 38.46 ▼2.09 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.97 ▲0.02 | 35.80 ▼1.43 | 34.56 ▼0.95 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.15 ▲0.18 | 612.44 ▲18.57 | 45.48 ▼17.23 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.21 ▼0.12 | 101.72 ▼2.57 | 42.47 ▼1.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% 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 50% from 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
Almost there! Just fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/yith-woocommerce-tab-manager/templates/admin/premium.php:112
- > PHP Fatal error
Uncaught Error: Call to undefined function wpautop() in wp-content/plugins/yith-woocommerce-tab-manager/templates/default.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/yith-woocommerce-tab-manager/includes/metabox/tab-metabox.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 20 tag instead of maximum 10
- Screenshots: A description for screenshot #3 is required in yith-woocommerce-tab-manager/assets to your readme.txt
- Screenshots: Screenshot #5 (Product Page: my first extra tab in frontend) image missing
yith-woocommerce-tab-manager/init.php 77% from 13 tests
The primary PHP file in "YITH WooCommerce Tab Manager" version 1.29.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 216 characters long)
- Requires at least: Required version must match the one declared in readme.txt ("6.2" instead of "8.1")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("yith-woocommerce-tab-manager.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin41,105 lines of code in 252 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 172 | 2,747 | 5,547 | 15,368 |
JavaScript | 45 | 1,304 | 822 | 9,237 |
CSS | 19 | 1,672 | 244 | 9,222 |
PO File | 6 | 1,566 | 1,920 | 4,307 |
SVG | 8 | 0 | 1 | 2,926 |
XML | 2 | 12 | 9 | 45 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 40.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 336.00 |
Average method complexity | 3.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 31 | |
▷ Abstract classes | 1 | 3.23% |
▷ Concrete classes | 30 | 96.77% |
▷ Final classes | 0 | 0.00% |
Methods | 395 | |
▷ Static methods | 53 | 13.42% |
▷ Public methods | 319 | 80.76% |
▷ Protected methods | 56 | 14.18% |
▷ Private methods | 20 | 5.06% |
Functions | 142 | |
▷ Named functions | 134 | 94.37% |
▷ Anonymous functions | 8 | 5.63% |
Constants | 17 | |
▷ Global constants | 16 | 94.12% |
▷ Class constants | 1 | 5.88% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
48 PNG files occupy 0.41MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugin-fw/assets/css/jquery-ui/images/ui-icons_888888_256x240.png | 3.69KB | 4.18KB | 0.00% |
plugin-fw/assets/images/licence-error.png | 1.61KB | 0.94KB | ▼ 41.62% |
assets/images/04.png | 67.03KB | 23.76KB | ▼ 64.56% |
plugin-fw/assets/images/ui-icons_454545_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
assets/images/02-bg.png | 7.18KB | 3.67KB | ▼ 48.86% |