Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼0.97ms] Passed 4 tests
A check of server-side resources used by Advanced Dynamic Pricing for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 38.53 ▼0.44 |
Dashboard /wp-admin | 3.39 ▲0.08 | 50.89 ▲0.20 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 44.05 ▼3.38 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 90.57 ▲2.94 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.02 ▼0.26 |
Server storage [IO: ▲3.41MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 588 new files
Database: 4 new tables, 6 new options
New tables |
---|
wp_wdp_order_items |
wp_wdp_rules |
wp_wdp_persistent_rules_cache |
wp_wdp_orders |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Advanced Dynamic Pricing for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.70 ▲0.35 | 1.67 ▼0.02 | 42.33 ▼2.22 |
Dashboard /wp-admin | 2,206 ▲32 | 5.54 ▼0.11 | 83.58 ▼13.26 | 37.70 ▼7.35 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 1.98 ▼0.05 | 33.04 ▼7.97 | 35.54 ▲1.63 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.54 ▲0.25 | 630.47 ▼1.70 | 55.26 ▼2.24 |
Media Library /wp-admin/upload.php | 1,414 ▲14 | 4.17 ▼0.01 | 98.39 ▲5.75 | 43.89 ▲4.09 |
Uninstaller [IO: ▲3.41MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the followingThe uninstall procedure failed, leaving 4 tables in the database The uninstall procedure has failed, leaving 6 options in the database
- Incomplete uninstall procedure, leaving 588 files (3.41MB) in the plugin directory
- (new file) BaseVersion/Includes/AdminExtensions/AdminPage/AdminTabInterface.php
- (new file) BaseVersion/Includes/AdminExtensions/AdminPage/Paginator.php
- (new file) BaseVersion/Includes/AdminExtensions/AdminPage/Tabs/Compatibility.php
- (new file) BaseVersion/Includes/AdminExtensions/AdminNotice.php
- (new file) BaseVersion/Includes/AdminExtensions/AdminPage/Tabs/Help.php
- (new file) BaseVersion/Includes/AdminExtensions/AdminPage/AdminPageFilterTitles.php
- (new file) BaseVersion/Includes/AdminExtensions/AdminPage/Tabs/Options.php
- (new file) BaseVersion/Includes/AdminExtensions/AdminPage.php
- (new file) BaseVersion/Includes/AdminExtensions/AdminPage/Tabs/Collections.php
- (new file) AutoLoader.php
- ...
- wp_wdp_persistent_rules_cache
- wp_wdp_rules
- wp_wdp_order_items
- wp_wdp_orders
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 44× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ADP\\Settings\\Abstracts\\OriginOption' not found in wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/Settings/Varieties/SelectiveOption/SelectiveOption.php:11
- > PHP Fatal error
Uncaught Error: Interface 'ADP\\BaseVersion\\Includes\\CartProcessor\\CartCouponsProcessorMerge\\MergeCoupon\\IMergeCoupon' not found in wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/BaseVersion/Includes/CartProcessor/CartCouponsProcessorMerge/MergeCoupon/RuleTriggerCoupon.php:5
- > PHP Fatal error
Uncaught Error: Class 'ADP\\BaseVersion\\Includes\\Enums\\BaseEnum' not found in wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/BaseVersion/Includes/Enums/GiftChoiceMethodEnum.php:10
- > PHP Fatal error
Uncaught Error: Interface 'ADP\\BaseVersion\\Includes\\Database\\Repository\\OrderItemRepositoryInterface' not found in wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/BaseVersion/Includes/Database/Repository/OrderItemRepository.php:7
- > PHP Fatal error
Uncaught Error: Class 'ADP\\BaseVersion\\Includes\\Enums\\BaseEnum' not found in wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/BaseVersion/Includes/Enums/AutoAddChoiceTypeEnum.php:9
- > PHP Fatal error
Uncaught Error: Interface 'ADP\\BaseVersion\\Includes\\Core\\ICartCalculator' not found in wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/BaseVersion/Includes/Core/CartCalculatorPersistent.php:11
- > PHP Fatal error
Uncaught Error: Interface 'ADP\\BaseVersion\\Includes\\Core\\Cart\\Coupon\\AdpCouponInterface' not found in wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/BaseVersion/Includes/Core/Cart/Coupon/CouponRuleTrigger.php:5
- > PHP Fatal error
Uncaught Error: Interface 'ADP\\BaseVersion\\Includes\\CartProcessor\\CartCouponsProcessorMerge\\MergeCoupon\\IMergeCoupon' not found in wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/BaseVersion/Includes/CartProcessor/CartCouponsProcessorMerge/MergeCoupon/CartItemCoupon.php:8
- > PHP Fatal error
Uncaught Error: Class 'ADP\\BaseVersion\\Includes\\Core\\Rule\\CartCondition\\Impl\\AbstractCondition' not found in wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/BaseVersion/Includes/Core/Rule/CartCondition/Impl/ProductCategoriesAll.php:9
- > PHP Fatal error
Uncaught Error: Class 'ADP\\BaseVersion\\Includes\\Core\\Rule\\CartCondition\\Impl\\AbstractCondition' not found in wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/BaseVersion/Includes/Core/Rule/CartCondition/Impl/ProductAttributesAll.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: dynamic pricing, deals, discounts, pricing deals, woocommerce...
advanced-dynamic-pricing-for-woocommerce/advanced-dynamic-pricing-for-woocommerce.php 92% from 13 tests
This is the main PHP file of "Advanced Dynamic Pricing for WooCommerce" version 4.5.3, 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:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.8" instead of "3.6")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin67,477 lines of code in 576 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 528 | 11,909 | 13,172 | 50,115 |
JavaScript | 16 | 3,394 | 923 | 14,873 |
CSS | 13 | 365 | 132 | 1,842 |
Sass | 1 | 104 | 0 | 538 |
SVG | 18 | 0 | 0 | 109 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 14.41 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 239.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 78.00 |
Code structure | ||
---|---|---|
Namespaces | 86 | |
Interfaces | 46 | |
Traits | 2 | |
Classes | 379 | |
▷ Abstract classes | 8 | 2.11% |
▷ Concrete classes | 371 | 97.89% |
▷ Final classes | 0 | 0.00% |
Methods | 3,617 | |
▷ Static methods | 396 | 10.95% |
▷ Public methods | 3,157 | 87.28% |
▷ Protected methods | 396 | 10.95% |
▷ Private methods | 64 | 1.77% |
Functions | 201 | |
▷ Named functions | 2 | 1.00% |
▷ Anonymous functions | 199 | 99.00% |
Constants | 580 | |
▷ Global constants | 10 | 1.72% |
▷ Class constants | 570 | 98.28% |
▷ Public constants | 569 | 99.82% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
BaseVersion/assets/jquery-ui/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
BaseVersion/assets/jquery-ui/images/ui-icons_444444_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
BaseVersion/assets/jquery-ui/images/ui-icons_777777_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
BaseVersion/assets/jquery-ui/images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |
BaseVersion/assets/jquery-ui/images/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |