Benchmarks
Plugin footprint 65% 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: ▲5.09MB] [CPU: ▲21.26ms] 75% from 4 tests
A check of server-side resources used by Custom Tabs for Products WooCommerce
Please fix the following
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.09MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.00 ▲5.54 | 77.47 ▲36.92 |
Dashboard /wp-admin | 9.02 ▲5.68 | 78.41 ▲13.06 |
Posts /wp-admin/edit.php | 9.02 ▲5.67 | 82.25 ▲27.43 |
Add New Post /wp-admin/post-new.php | 9.35 ▲3.46 | 126.00 ▲10.57 |
Media Library /wp-admin/upload.php | 9.02 ▲5.80 | 71.25 ▲33.97 |
Freemius Debug [v.2.5.3] /wp-admin/admin.php?page=freemius | 9.02 | 62.19 |
Server storage [IO: ▲3.40MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 199 new files
Database: no new tables, 10 new options
New WordPress options |
---|
fs_accounts |
fs_debug_mode |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
fs_gdpr |
widget_recent-comments |
db_upgraded |
fs_active_plugins |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Custom Tabs for Products WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲74 | 14.35 ▲0.18 | 2.14 ▲0.61 | 30.37 ▼20.55 |
Dashboard /wp-admin | 2,241 ▲64 | 5.50 ▼0.13 | 98.14 ▲2.87 | 47.03 ▲4.26 |
Posts /wp-admin/edit.php | 2,150 ▲50 | 2.17 ▲0.15 | 41.65 ▼4.80 | 39.33 ▲0.46 |
Add New Post /wp-admin/post-new.php | 1,557 ▲31 | 23.00 ▼0.55 | 662.26 ▼12.82 | 50.35 ▼7.04 |
Media Library /wp-admin/upload.php | 1,449 ▲52 | 4.25 ▲0.04 | 96.90 ▼0.72 | 43.79 ▼3.70 |
Freemius Debug [v.2.5.3] /wp-admin/admin.php?page=freemius | 1,085 | 1.69 | 24.47 | 29.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/custom-tabs-for-products-woocommerce/freemius/includes/class-freemius.php+8772
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 10 options in the database
- fs_gdpr
- theysaidso_admin_options
- fs_debug_mode
- fs_active_plugins
- fs_accounts
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests Passed 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 everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files
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 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: tag, wc, custom tab, product tab, tab...
custom-tabs-for-products-woocommerce/custom-tabs-for-products-woocommerce.php 92% from 13 tests
"Custom Tabs for Products WooCommerce" version 1.0.0'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:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin34,708 lines of code in 150 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 131 | 8,009 | 17,143 | 33,884 |
JavaScript | 4 | 34 | 59 | 409 |
Markdown | 1 | 68 | 0 | 214 |
CSS | 14 | 0 | 0 | 201 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
It is recommended to fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,089)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 86.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,089.00 |
Average method complexity | 4.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 53 | |
▷ Abstract classes | 2 | 3.77% |
▷ Concrete classes | 51 | 96.23% |
▷ Final classes | 1 | 1.96% |
Methods | 1,280 | |
▷ Static methods | 197 | 15.39% |
▷ Public methods | 898 | 70.16% |
▷ Protected methods | 17 | 1.33% |
▷ Private methods | 365 | 28.52% |
Functions | 96 | |
▷ Named functions | 96 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 149 | |
▷ Global constants | 102 | 68.46% |
▷ Class constants | 47 | 31.54% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/wc-conditional-checkout.png | 23.88KB | 9.63KB | ▼ 59.67% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/gpt3-ai-content-generator.png | 23.88KB | 9.63KB | ▼ 59.67% |
freemius/assets/img/wc-custom-tabs.png | 23.88KB | 9.63KB | ▼ 59.67% |