Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/additional-order-costs-for-woocommerce/includes/class-aoc-wc-activator.php+28
Use of undefined constant self - assumed 'self' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▲0.62MB] [CPU: ▼286.65ms] Passed 4 tests
Server-side resources used by Additional Order Costs for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.94 ▲0.42 | 57.74 ▲5.03 |
Dashboard /wp-admin | 4.16 ▲0.75 | 39.36 ▲7.12 |
Posts /wp-admin/edit.php | 4.35 ▲0.70 | 41.68 ▲5.75 |
Add New Post /wp-admin/post-new.php | 7.60 ▲0.62 | 96.87 ▼1,162.81 |
Media Library /wp-admin/upload.php | 4.04 ▲0.74 | 29.78 ▲5.43 |
Additional Order Costs Options /wp-admin/admin.php?page=aoc_wc_options | 4.33 | 29.71 |
Server storage [IO: ▲2.90MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 360 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Additional Order Costs for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,810 ▲66 | 16.07 ▲0.44 | 5.92 ▼0.28 | 3.50 ▲1.01 |
Dashboard /wp-admin | 2,910 ▲49 | 6.24 ▲0.04 | 118.49 ▼15.35 | 160.34 ▼2.85 |
Posts /wp-admin/edit.php | 2,703 ▲18 | 3.27 ▲0.03 | 66.17 ▲2.55 | 140.58 ▲0.38 |
Add New Post /wp-admin/post-new.php | 1,682 ▼78 | 19.15 ▼3.52 | 377.54 ▼25.21 | 151.66 ▲0.41 |
Media Library /wp-admin/upload.php | 1,713 ▲18 | 5.57 ▲0.06 | 144.84 ▲4.64 | 188.29 ▲0.13 |
Additional Order Costs Options /wp-admin/admin.php?page=aoc_wc_options | 1,063 | 2.45 | 56.96 | 115.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 75% from 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)
Everything seems fine, however this is by no means 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
Please take a closer look at the following
- 39× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/additional-order-costs-for-woocommerce/cmb2/includes/types/CMB2_Type_Taxonomy_Radio.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller' not found in wp-content/plugins/additional-order-costs-for-woocommerce/cmb2/includes/rest-api/CMB2_REST_Controller_Boxes.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/additional-order-costs-for-woocommerce/cmb2/includes/types/CMB2_Type_Radio.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/additional-order-costs-for-woocommerce/cmb2/includes/types/CMB2_Type_Taxonomy_Select.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/additional-order-costs-for-woocommerce/cmb2/includes/types/CMB2_Type_Checkbox.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup' not found in wp-content/plugins/additional-order-costs-for-woocommerce/cmb2/includes/CMB2_Options_Hookup.php:14
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/additional-order-costs-for-woocommerce/cmb2/includes/types/CMB2_Type_Oembed.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/additional-order-costs-for-woocommerce/cmb2/example-functions.php:105
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/additional-order-costs-for-woocommerce/cmb2/includes/types/CMB2_Type_Counter_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller_Boxes' not found in wp-content/plugins/additional-order-costs-for-woocommerce/cmb2/includes/rest-api/CMB2_REST_Controller_Fields.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: additional costs, reporting, order costs, woocommerce costs
additional-order-costs-for-woocommerce/additional-order-costs-for-woocommerce.php 92% from 13 tests
The principal PHP file in "Additional Order Costs for WooCommerce" v. 1.0.3 is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 150 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected46,955 lines of code in 214 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 71 | 2,297 | 6,816 | 7,735 |
CSS | 13 | 250 | 1,190 | 4,545 |
JavaScript | 8 | 400 | 603 | 1,676 |
Markdown | 2 | 219 | 0 | 676 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 17.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 3.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 78 | |
▷ Abstract classes | 9 | 11.54% |
▷ Concrete classes | 69 | 88.46% |
▷ Final classes | 0 | 0.00% |
Methods | 577 | |
▷ Static methods | 102 | 17.68% |
▷ Public methods | 480 | 83.19% |
▷ Protected methods | 90 | 15.60% |
▷ Private methods | 7 | 1.21% |
Functions | 41 | |
▷ Named functions | 41 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 10 | 62.50% |
▷ Class constants | 6 | 37.50% |
▷ Public constants | 6 | 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
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
cmb2/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
cmb2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |