Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼3.44ms] Passed 4 tests
Analyzing server-side resources used by Handy Addons for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 44.51 ▲3.79 |
Dashboard /wp-admin | 3.44 ▲0.14 | 46.46 ▲2.05 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 49.52 ▼1.22 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 86.12 ▼17.44 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 34.97 ▲2.84 |
Server storage [IO: ▲6.30MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 632 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
handy-addons_install_time |
widget_theysaidso_widget |
widget_recent-comments |
handy-addons_version |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Handy Addons for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,889 ▲143 | 13.30 ▼1.36 | 1.72 ▲0.01 | 44.86 ▲1.21 |
Dashboard /wp-admin | 2,295 ▲107 | 4.95 ▲0.01 | 112.46 ▼0.16 | 45.07 ▲2.93 |
Posts /wp-admin/edit.php | 2,129 ▲40 | 2.07 ▼0.03 | 40.51 ▲0.81 | 36.58 ▲3.47 |
Add New Post /wp-admin/post-new.php | 1,552 ▲38 | 23.13 ▲5.64 | 649.11 ▲0.43 | 51.34 ▲0.32 |
Media Library /wp-admin/upload.php | 1,422 ▲31 | 4.30 ▲0.07 | 119.57 ▲24.72 | 42.63 ▲0.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 8 options in the database
- can_compress_scripts
- theysaidso_admin_options
- handy-addons_install_time
- widget_recent-posts
- db_upgraded
- handy-addons_version
- widget_theysaidso_widget
- widget_recent-comments
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 | 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
Almost there! Just fix the following items
- 235× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/handy-addons/vendor/mpdf/mpdf/src/Tag/Hr.php:7
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/handy-addons/vendor/setasign/fpdi/src/PdfParser/Type/PdfString.php:18
- > PHP Fatal error
Uncaught Error: Class 'Codexpert\\Handy_Addons\\Helper' not found in wp-content/plugins/handy-addons/modules/order-filter/views/filter-inputs.php:23
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/handy-addons/modules/pdf-invoice/views/invoice-templates/template-2.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'DeepCopy\\TypeFilter\\Spl\\SplDoublyLinkedListFilter' not found in wp-content/plugins/handy-addons/vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/Spl/SplDoublyLinkedList.php:8
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\BlockTag' not found in wp-content/plugins/handy-addons/vendor/mpdf/mpdf/src/Tag/Header.php:5
- > PHP Warning
require_once(lib/byte_safe_strings.php): failed to open stream: No such file or directory in wp-content/plugins/handy-addons/vendor/paragonie/random_compat/psalm-autoload.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/handy-addons/vendor/mpdf/mpdf/src/Tag/Bookmark.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/handy-addons/vendor/mpdf/mpdf/src/Tag/WatermarkText.php:5
- > PHP Fatal error
Uncaught Error: Interface 'DeepCopy\\Filter\\Filter' not found in wp-content/plugins/handy-addons/vendor/myclabs/deep-copy/src/DeepCopy/Filter/KeepFilter.php:5
- > 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 93% 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: pdf invoice, woocommerce extensions, order filter, checkout editor, product brands...
handy-addons/handy-addons.php 85% from 13 tests
The main PHP file in "Handy Addons for WooCommerce" ver. 0.9 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Git Repository: Please do not include Git repositories in your plugin
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis 95% 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 plugin84,961 lines of code in 489 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 421 | 12,196 | 12,297 | 79,963 |
CSS | 20 | 160 | 63 | 2,631 |
Markdown | 10 | 385 | 0 | 1,182 |
JSON | 16 | 3 | 0 | 586 |
JavaScript | 12 | 55 | 14 | 404 |
YAML | 6 | 36 | 4 | 117 |
XML | 3 | 10 | 0 | 75 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 0% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 7,024)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 460)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 56.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7,024.00 |
Average method complexity | 12.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 460.00 |
Code structure | ||
---|---|---|
Namespaces | 49 | |
Interfaces | 10 | |
Traits | 6 | |
Classes | 311 | |
▷ Abstract classes | 11 | 3.54% |
▷ Concrete classes | 300 | 96.46% |
▷ Final classes | 14 | 4.67% |
Methods | 1,600 | |
▷ Static methods | 136 | 8.50% |
▷ Public methods | 1,408 | 88.00% |
▷ Protected methods | 57 | 3.56% |
▷ Private methods | 135 | 8.44% |
Functions | 47 | |
▷ Named functions | 19 | 40.43% |
▷ Anonymous functions | 28 | 59.57% |
Constants | 432 | |
▷ Global constants | 10 | 2.31% |
▷ Class constants | 422 | 97.69% |
▷ Public constants | 422 | 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
6 PNG files occupy 0.17MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/codexpert/plugin/src/assets/img/checked.png | 18.81KB | 9.90KB | ▼ 47.36% |
vendor/codexpert/plugin/src/assets/img/survey.png | 7.31KB | 3.08KB | ▼ 57.88% |
modules/pdf-invoice/assets/preview/template-1.png | 56.10KB | 58.01KB | 0.00% |
modules/pdf-invoice/assets/preview/template-2-o.png | 33.94KB | 15.35KB | ▼ 54.76% |
modules/pdf-invoice/assets/preview/template-3.png | 20.15KB | 16.51KB | ▼ 18.04% |