Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲5.11MB] [CPU: ▲26.24ms] 75% from 4 tests
A check of server-side resources used by Product Layouts for Woocommerce ( Product Gallery, Product Showcase, Layout Design, Category Tabs, Product Slider, Product Grid, Product Table )
It is recommended to improve the following
- Extra RAM: Extra memory usage should kept under 5MB (currently 5.11MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.94 ▲5.48 | 63.60 ▲18.65 |
Dashboard /wp-admin | 8.96 ▲5.62 | 84.40 ▲23.49 |
Posts /wp-admin/edit.php | 8.96 ▲5.60 | 81.63 ▲35.43 |
Add New Post /wp-admin/post-new.php | 9.62 ▲3.74 | 120.01 ▲27.37 |
Media Library /wp-admin/upload.php | 8.96 ▲5.73 | 77.07 ▲43.86 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 8.96 | 57.42 |
Server storage [IO: ▲7.29MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 355 new files
Database: 1 new table, 12 new options
New tables |
---|
wp_wpte_product_layout_style |
New WordPress options |
---|
db_upgraded |
fs_debug_mode |
WPTE_wpl_installed |
fs_accounts |
WPTE_wpl_version |
can_compress_scripts |
theysaidso_admin_options |
WPTE_wpl_activation_redirect |
widget_theysaidso_widget |
fs_active_plugins |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Product Layouts for Woocommerce ( Product Gallery, Product Showcase, Layout Design, Category Tabs, Product Slider, Product Grid, Product Table )
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,051 ▲304 | 14.57 ▲0.23 | 1.68 ▼0.54 | 31.13 ▼20.83 |
Dashboard /wp-admin | 2,436 ▲258 | 5.54 ▼0.15 | 96.46 ▼11.12 | 65.50 ▲17.91 |
Posts /wp-admin/edit.php | 2,318 ▲218 | 2.11 ▲0.10 | 39.06 ▼0.87 | 39.15 ▲2.20 |
Add New Post /wp-admin/post-new.php | 1,470 ▼56 | 18.03 ▼5.01 | 641.31 ▼1.88 | 44.02 ▼15.25 |
Media Library /wp-admin/upload.php | 1,681 ▲278 | 4.25 ▲0.06 | 99.59 ▲0.77 | 84.09 ▲41.85 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,262 | 1.65 | 28.30 | 29.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/product-layouts/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- The uninstall procedure failed, leaving 1 table in the database
- wp_wpte_product_layout_style
- The uninstall procedure has failed, leaving 12 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- WPTE_wpl_version
- widget_recent-posts
- WPTE_wpl_installed
- fs_accounts
- fs_active_plugins
- WPTE_wpl_activation_redirect
- fs_debug_mode
- ...
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 54× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WPTE_PRODUCT_LAYOUT\\Includes\\Admin\\Pages\\Create' not found in wp-content/plugins/product-layouts/Layouts/Caption/Caption.php:11
- > PHP Fatal error
Uncaught Error: Class 'WPTE_PRODUCT_LAYOUT\\Includes\\Admin\\Pages\\AdminRender' not found in wp-content/plugins/product-layouts/Layouts/Table/Layout.php:11
- > PHP Fatal error
Uncaught Error: Class 'WPTE_PRODUCT_LAYOUT\\Layouts\\General\\Layout' not found in wp-content/plugins/product-layouts/Layouts/General/Backend/Layout2.php:11
- > PHP Fatal error
Uncaught Error: Class 'WPTE_PRODUCT_LAYOUT\\Layouts\\General\\Layout' not found in wp-content/plugins/product-layouts/Layouts/General/Backend/Layout6.php:11
- > PHP Fatal error
Trait 'WPTE_PRODUCT_LAYOUT\\Includes\\Admin\\Pages\\AdminTopMenu' not found in wp-content/plugins/product-layouts/Includes/Admin/Menu.php on line 10
- > PHP Warning
require(ABSPATHwp-admin/includes/class-wp-links-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/product-layouts/Includes/Admin/Pages/Layout_list/Layouts_List.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'WPTE_PRODUCT_LAYOUT\\Includes\\Admin\\Pages\\Create' not found in wp-content/plugins/product-layouts/Layouts/Call_to_action/Call_to_action.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/product-layouts/Includes/functions.php:252
- > PHP Fatal error
Uncaught Error: Class 'WPTE_PRODUCT_LAYOUT\\Layouts\\Caption\\Layout' not found in wp-content/plugins/product-layouts/Layouts/Caption/Backend/Layout3.php:11
- > PHP Fatal error
Uncaught Error: Class 'WPTE_PRODUCT_LAYOUT\\Includes\\Admin\\Pages\\AdminRender' not found in wp-content/plugins/product-layouts/Layouts/Carousel/Layout.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #4, #5, #6, #7 in product-layouts/assets to your readme.txt
product-layouts/product-layouts.php 92% from 13 tests
This is the main PHP file of "Product Layouts for Woocommerce ( Product Gallery, Product Showcase, Layout Design, Category Tabs, Product Slider, Product Grid, Product Table )" version 1.1.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- 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 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected73,111 lines of code in 300 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 231 | 11,187 | 20,860 | 60,280 |
JavaScript | 21 | 929 | 776 | 6,062 |
CSS | 31 | 543 | 186 | 5,250 |
SVG | 15 | 178 | 11 | 1,300 |
Markdown | 1 | 68 | 0 | 214 |
JSON | 1 | 0 | 0 | 5 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 40.51 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 36 | |
Interfaces | 1 | |
Traits | 3 | |
Classes | 153 | |
▷ Abstract classes | 3 | 1.96% |
▷ Concrete classes | 150 | 98.04% |
▷ Final classes | 2 | 1.33% |
Methods | 1,713 | |
▷ Static methods | 216 | 12.61% |
▷ Public methods | 1,251 | 73.03% |
▷ Protected methods | 75 | 4.38% |
▷ Private methods | 387 | 22.59% |
Functions | 133 | |
▷ Named functions | 131 | 98.50% |
▷ Anonymous functions | 2 | 1.50% |
Constants | 189 | |
▷ Global constants | 107 | 56.61% |
▷ Class constants | 82 | 43.39% |
▷ Public constants | 82 | 100.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
7 PNG files occupy 0.41MB with 0.17MB 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% |
Image/layouts/tabs/tab_1.png | 10.40KB | 5.85KB | ▼ 43.79% |
Image/wpte-offer.png | 4.91KB | 5.00KB | 0.00% |
freemius/assets/img/product-layouts.png | 52.89KB | 15.63KB | ▼ 70.45% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |