Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.43MB] [CPU: ▼104.91ms] Passed 4 tests
Analyzing server-side resources used by Ibtana - Ecommerce Product Addons
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.97 ▲1.50 | 52.70 ▲15.39 |
Dashboard /wp-admin | 4.76 ▲1.33 | 52.52 ▼453.76 |
Posts /wp-admin/edit.php | 4.81 ▲1.45 | 58.84 ▲6.30 |
Add New Post /wp-admin/post-new.php | 7.48 ▲1.59 | 105.30 ▲18.08 |
Media Library /wp-admin/upload.php | 4.68 ▲1.45 | 46.62 ▲12.43 |
Get Started /wp-admin/tools.php?page=ibtanaecommerceproductaddons-setup | 4.65 | 44.35 |
Install Plugins /wp-admin/plugins.php?page=iepa-tgmpa-install-plugins | 4.79 | 39.77 |
Server storage [IO: ▲8.40MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 244 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ibtana - Ecommerce Product Addons
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,971 ▲210 | 14.15 ▼0.16 | 9.96 ▲8.31 | 40.40 ▲1.72 |
Dashboard /wp-admin | 2,243 ▲66 | 5.80 ▲0.15 | 88.39 ▲4.12 | 42.28 ▲4.84 |
Posts /wp-admin/edit.php | 2,151 ▲48 | 2.41 ▲0.43 | 43.55 ▲7.53 | 36.09 ▲0.12 |
Add New Post /wp-admin/post-new.php | 1,700 ▲174 | 24.16 ▲0.61 | 635.55 ▼31.03 | 37.06 ▼10.12 |
Media Library /wp-admin/upload.php | 1,448 ▲48 | 4.49 ▲0.22 | 124.84 ▲13.94 | 56.47 ▲10.36 |
Get Started /wp-admin/tools.php?page=ibtanaecommerceproductaddons-setup | 1,095 | 2.11 | 43.64 | 80.08 |
Install Plugins /wp-admin/plugins.php?page=iepa-tgmpa-install-plugins | 1,064 | 2.05 | 27.21 | 29.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 38× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/ibtana-ecommerce-product-addons/addons/ibtana-mega-menu/inc/backend/save_settings.php
- > /wp-content/plugins/ibtana-ecommerce-product-addons/addons/ibtana-mega-menu/inc/admin/menu_settings_class.php
- > /wp-content/plugins/ibtana-ecommerce-product-addons/addons/ibtana-mega-menu/inc/backend/menu_settings/top_menu/mega_menu_settings.php
- > /wp-content/plugins/ibtana-ecommerce-product-addons/addons/ibtana-mega-menu/inc/backend/menu_settings/top_menu/megamenu_settings.php
- > /wp-content/plugins/ibtana-ecommerce-product-addons/addons/ibtana-mega-menu/inc/backend/metabox_field/add_metabox_field.php
- > /wp-content/plugins/ibtana-ecommerce-product-addons/addons/ibtana-mega-menu/inc/backend/activation.php
- > /wp-content/plugins/ibtana-ecommerce-product-addons/inc/tpl/admin-template-picker.php
- > /wp-content/plugins/ibtana-ecommerce-product-addons/addons/ibtana-mega-menu/inc/backend/menu_settings/top_menu/custom_styling.php
- > /wp-content/plugins/ibtana-ecommerce-product-addons/addons/ibtana-mega-menu/inc/admin/class-dynamic-css.php
- > /wp-content/plugins/ibtana-ecommerce-product-addons/addons/ibtana-mega-menu/inc/backend/iepa_mm_search_shortcode.php
- 36× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_get_product() in wp-content/plugins/ibtana-ecommerce-product-addons/inc/tpl/iepa-single-product.php:3
- > PHP Fatal error
Uncaught Error: Class 'Ibtana_Visual_Editor_Menu_Creator' not found in wp-content/plugins/ibtana-ecommerce-product-addons/iepa_submenu.php:5
- > PHP Notice
Undefined variable: content in wp-content/plugins/ibtana-ecommerce-product-addons/addons/ibtana-mega-menu/inc/frontend/generated_css/custom_theme_css.php on line 207
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/ibtana-ecommerce-product-addons/addons/ibtana-mega-menu/inc/frontend/generated_css/dynamic_css.php:133
- > PHP Notice
Undefined variable: content in wp-content/plugins/ibtana-ecommerce-product-addons/addons/ibtana-mega-menu/inc/frontend/generated_css/dynamic_css.php on line 81
- > PHP Fatal error
Uncaught Error: Call to undefined function get_registered_nav_menus() in wp-content/plugins/ibtana-ecommerce-product-addons/addons/ibtana-mega-menu/inc/frontend/generated_css/extra_css.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/ibtana-ecommerce-product-addons/addons/ibtana-mega-menu/inc/frontend/generated_css/custom_theme_css.php:214
- > PHP Notice
Undefined variable: orientation in wp-content/plugins/ibtana-ecommerce-product-addons/addons/ibtana-mega-menu/inc/frontend/generated_css/dynamic_css.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/ibtana-ecommerce-product-addons/IEPA_Whizzie/iepa_tgmpa/iepa-class-tgm-plugin-activation.php:2109
- > PHP Notice
Undefined variable: location_key in wp-content/plugins/ibtana-ecommerce-product-addons/addons/ibtana-mega-menu/inc/frontend/generated_css/dynamic_css.php on line 2
- > PHP Fatal error
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 on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: These screenshots need descriptions #5, #6, #7, #8 in ibtana-ecommerce-product-addons/assets to your readme.txt
ibtana-ecommerce-product-addons/plugin.php 69% from 13 tests
The principal PHP file in "Ibtana - Ecommerce Product Addons" v. 0.4.5.5 is loaded by WordPress automatically on each request
You should first fix the following items:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "5.2")
- Description: The description should be shorter than 140 characters (currently 425 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ibtana-ecommerce-product-addons.php" instead of "plugin.php")
Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin74,595 lines of code in 175 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 93 | 3,963 | 3,680 | 27,287 |
CSS | 38 | 3,030 | 1,473 | 23,330 |
JavaScript | 36 | 2,910 | 2,380 | 17,712 |
SVG | 8 | 0 | 12 | 6,266 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 328)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 64.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 374.00 |
Average method complexity | 7.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 328.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 48 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 48 | 100.00% |
▷ Final classes | 5 | 10.42% |
Methods | 447 | |
▷ Static methods | 95 | 21.25% |
▷ Public methods | 417 | 93.29% |
▷ Protected methods | 23 | 5.15% |
▷ Private methods | 7 | 1.57% |
Functions | 13 | |
▷ Named functions | 7 | 53.85% |
▷ Anonymous functions | 6 | 46.15% |
Constants | 37 | |
▷ Global constants | 34 | 91.89% |
▷ Class constants | 3 | 8.11% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
37 PNG files occupy 0.90MB with 0.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
IEPA_Whizzie/assets/img/ibtana-mega-menu-display-image.png | 131.12KB | 48.48KB | ▼ 63.03% |
IEPA_Whizzie/assets/img/ibtana-ecommerce-product-addon-display-image.png | 58.90KB | 22.86KB | ▼ 61.19% |
addons/ibtana-mega-menu/images/mega_menu_images/flyout-right.PNG | 2.68KB | 2.19KB | ▼ 18.50% |
addons/ibtana-mega-menu/images/widget-images/postlayout5.PNG | 70.01KB | 18.54KB | ▼ 73.52% |
addons/ibtana-mega-menu/css/images/loading_background.png | 0.13KB | 0.15KB | 0.00% |