Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲5.03MB] [CPU: ▲24.76ms] 75% from 4 tests
A check of server-side resources used by WooCommerce Role Based Pricing by Meow Crew
Please have a look at the following items
- Extra RAM: The extra memory usage should kept under 5MB (currently 5.03MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.92 ▲5.45 | 64.62 ▲25.73 |
Dashboard /wp-admin | 8.94 ▲5.59 | 92.34 ▲30.79 |
Posts /wp-admin/edit.php | 8.94 ▲5.58 | 82.03 ▲36.12 |
Add New Post /wp-admin/post-new.php | 9.39 ▲3.50 | 116.01 ▲12.60 |
Media Library /wp-admin/upload.php | 8.94 ▲5.71 | 68.17 ▲29.90 |
Role and Customer Based Pricing for WooCommerce /wp-admin/admin.php?page=role-and-customer-based-pricing-for-woocommerce | 8.94 | 63.65 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 8.94 | 59.31 |
Server storage [IO: ▲3.77MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 283 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
fs_debug_mode |
widget_theysaidso_widget |
widget_recent-posts |
fs_active_plugins |
theysaidso_admin_options |
db_upgraded |
fs_accounts |
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce Role Based Pricing by Meow Crew
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲63 | 14.25 ▲0.00 | 1.47 ▼0.27 | 29.49 ▼14.33 |
Dashboard /wp-admin | 2,212 ▲31 | 5.52 ▼0.06 | 96.95 ▼20.88 | 48.92 ▲1.18 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 2.09 ▲0.14 | 45.11 ▲8.23 | 40.35 ▲5.29 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.05 ▼0.04 | 671.50 ▼116.45 | 49.65 ▼12.59 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.17 ▼0.05 | 99.49 ▼6.65 | 45.72 ▲4.40 |
Role and Customer Based Pricing for WooCommerce /wp-admin/admin.php?page=role-and-customer-based-pricing-for-woocommerce | 976 | 1.66 | 28.55 | 60.72 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,085 | 1.65 | 26.47 | 29.57 |
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
The following items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/role-and-customer-based-pricing-for-woocommerce/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 9 options in the database
- fs_debug_mode
- db_upgraded
- fs_accounts
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- fs_active_plugins
- widget_theysaidso_widget
- widget_recent-comments
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 26× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'MeowCrew\\RoleAndCustomerBasedPricing\\Settings\\Sections\\AbstractSection' not found in wp-content/plugins/role-and-customer-based-pricing-for-woocommerce/src/Settings/Sections/ImportExportSection.php:7
- > PHP Fatal error
Trait 'MeowCrew\\RoleAndCustomerBasedPricing\\Core\\ServiceContainerTrait' not found in wp-content/plugins/role-and-customer-based-pricing-for-woocommerce/src/Settings/CustomOptions/TemplateOption.php on line 6
- > PHP Fatal error
Trait 'MeowCrew\\RoleAndCustomerBasedPricing\\Core\\ServiceContainerTrait' not found in wp-content/plugins/role-and-customer-based-pricing-for-woocommerce/src/RoleManagement/RoleManagementPage.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'MeowCrew\\RoleAndCustomerBasedPricing\\Settings\\Sections\\AbstractSection' not found in wp-content/plugins/role-and-customer-based-pricing-for-woocommerce/src/Settings/Sections/PricingSection.php:7
- > PHP Fatal error
Trait 'MeowCrew\\RoleAndCustomerBasedPricing\\Core\\ServiceContainerTrait' not found in wp-content/plugins/role-and-customer-based-pricing-for-woocommerce/src/Services/NonLoggedUsersService.php on line 5
- > PHP Fatal error
Trait 'MeowCrew\\RoleAndCustomerBasedPricing\\Core\\ServiceContainerTrait' not found in wp-content/plugins/role-and-customer-based-pricing-for-woocommerce/src/Settings/Sections/AbstractSection.php on line 5
- > PHP Fatal error
Trait 'MeowCrew\\RoleAndCustomerBasedPricing\\Core\\ServiceContainerTrait' not found in wp-content/plugins/role-and-customer-based-pricing-for-woocommerce/src/Admin/ProductPage/RoleSpecificPricingTab.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'MeowCrew\\RoleAndCustomerBasedPricing\\Entity\\PricingRule' not found in wp-content/plugins/role-and-customer-based-pricing-for-woocommerce/src/Entity/GlobalPricingRule.php:7
- > PHP Fatal error
Uncaught Error: Class 'MeowCrew\\RoleAndCustomerBasedPricing\\RoleManagement\\Actions\\RoleManagementPageAction' not found in wp-content/plugins/role-and-customer-based-pricing-for-woocommerce/src/RoleManagement/Actions/NewRoleAction.php:5
- > PHP Fatal error
Trait 'MeowCrew\\RoleAndCustomerBasedPricing\\Core\\ServiceContainerTrait' not found in wp-content/plugins/role-and-customer-based-pricing-for-woocommerce/src/GlobalRoleSpecificPricing/CPT/Actions/SuspendAction.php on line 8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: wholesale, woocommerce, role based pricing, dynamic price, prices by user role
role-and-customer-based-pricing-for-woocommerce/role-and-customer-based-pricing-for-woocommerce.php 92% from 13 tests
The main file in "WooCommerce Role Based Pricing by Meow Crew" v. 1.5.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
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.2" instead of "5.0")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected43,693 lines of code in 225 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 192 | 9,653 | 18,269 | 38,084 |
PO File | 12 | 1,799 | 2,238 | 4,813 |
CSS | 14 | 81 | 17 | 396 |
JavaScript | 5 | 96 | 59 | 379 |
XML | 1 | 3 | 0 | 16 |
JSON | 1 | 0 | 0 | 5 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
It is recommended to 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.60 |
Average class complexity | 49.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 21 | |
Interfaces | 1 | |
Traits | 1 | |
Classes | 103 | |
▷ Abstract classes | 4 | 3.88% |
▷ Concrete classes | 99 | 96.12% |
▷ Final classes | 0 | 0.00% |
Methods | 1,573 | |
▷ Static methods | 236 | 15.00% |
▷ Public methods | 1,163 | 73.94% |
▷ Protected methods | 21 | 1.34% |
▷ Private methods | 389 | 24.73% |
Functions | 156 | |
▷ Named functions | 102 | 65.38% |
▷ Anonymous functions | 54 | 34.62% |
Constants | 171 | |
▷ Global constants | 99 | 57.89% |
▷ Class constants | 72 | 42.11% |
▷ Public constants | 72 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/role-and-customer-based-pricing-for-woocommerce.png | 38.00KB | 9.52KB | ▼ 74.96% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |