Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/byconsoleorderinvoice/pdfgenerator/tcpdf.php+2914
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▲4.81MB] [CPU: ▼39.65ms] Passed 4 tests
Server-side resources used by Another PDF invoices and Packing slips addon for WC
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.79 ▲5.33 | 21.27 ▼25.03 |
Dashboard /wp-admin | 8.81 ▲5.51 | 23.46 ▼23.81 |
Posts /wp-admin/edit.php | 8.81 ▲5.46 | 23.19 ▼23.86 |
Add New Post /wp-admin/post-new.php | 8.81 ▲2.93 | 20.72 ▼85.90 |
Media Library /wp-admin/upload.php | 8.81 ▲5.58 | 20.96 ▼12.70 |
Store Address /wp-admin/admin.php?page=ByconsoleOrderInvoice_add_store_address_setting | 8.81 | 20.28 |
BYC Order Invoice /wp-admin/admin.php?page=byconsoleorderinvoice_general_settings | 8.81 | 24.92 |
Server storage [IO: ▲4.23MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 135 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
bycorderinvoice_pdf_invoice_button_behaviour |
widget_recent-posts |
bycorderinvoice_invoice_date_format |
bycorderinvoice_invoice_generation |
widget_recent-comments |
can_compress_scripts |
bycorderinvoice_print_delivery_or_pickup_date_and_time |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Another PDF invoices and Packing slips addon for WC
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲103 | 13.16 ▼1.45 | 1.97 ▲0.18 | 37.76 ▼6.65 |
Dashboard /wp-admin | 2,227 ▲45 | 4.98 ▲0.12 | 110.29 ▲5.46 | 41.19 ▼4.22 |
Posts /wp-admin/edit.php | 2,127 ▲38 | 2.32 ▲0.32 | 44.17 ▲0.52 | 33.59 ▼2.78 |
Add New Post /wp-admin/post-new.php | 1,540 ▲7 | 23.10 ▼0.04 | 650.79 ▼45.05 | 36.84 ▼24.50 |
Media Library /wp-admin/upload.php | 1,425 ▲34 | 4.21 ▲0.03 | 102.44 ▲7.68 | 43.40 ▲0.74 |
Store Address /wp-admin/admin.php?page=ByconsoleOrderInvoice_add_store_address_setting | 852 | 1.88 | 35.07 | 28.39 |
BYC Order Invoice /wp-admin/admin.php?page=byconsoleorderinvoice_general_settings | 919 | 1.92 | 24.63 | 29.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/byconsoleorderinvoice/pdfgenerator/tcpdf.php+2914
Array and string offset access syntax with curly braces is deprecated
- Zombie WordPress options were found after uninstall: 10 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- bycorderinvoice_invoice_generation
- bycorderinvoice_print_delivery_or_pickup_date_and_time
- can_compress_scripts
- widget_recent-comments
- bycorderinvoice_pdf_invoice_button_behaviour
- bycorderinvoice_invoice_date_format
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 102 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=byconsoleorderinvoice_general_settings
- > Deprecated in wp-content/plugins/byconsoleorderinvoice/pdfgenerator/tcpdf.php+26250
Array and string offset access syntax with curly braces is deprecated
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=byconsoleorderinvoice_general_settings
- > Warning in wp-content/plugins/byconsoleorderinvoice/pdfgenerator/tcpdf.php+19902
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=byconsoleorderinvoice_general_settings
- > Notice in wp-content/plugins/byconsoleorderinvoice/byconsoleorderinvoice.php+2022
Trying to get property 'version' of non-object
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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/byconsoleorderinvoice/pdfgenerator/tcpdf.php on line 19902
- > PHP Warning
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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (25 tag instead of maximum 10)
byconsoleorderinvoice/byconsoleorderinvoice.php 85% from 13 tests
The main PHP script in "Another PDF invoices and Packing slips addon for WC" version 1.0.1 is automatically included on every request by WordPress
The following require your attention:
- Domain Path: The domain path folder does not exist ("/languages")
- Description: Please keep the plugin description shorter than 140 characters (currently 369 characters long)
Code Analysis 0% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Please fix the following items
- Do not include executable or dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/byconsoleorderinvoice/pdfgenerator/tcpdf.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 114 | 2,299 | 11,381 | 143,938 |
JavaScript | 1 | 2 | 0 | 25 |
PHP code 0% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 4,839)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 466)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 454.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,839.00 |
Average method complexity | 10.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 466.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 578 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 292 | 50.52% |
▷ Protected methods | 286 | 49.48% |
▷ Private methods | 0 | 0.00% |
Functions | 29 | |
▷ Named functions | 29 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 101 | |
▷ Global constants | 101 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/bycinvoice_create_shipping_slip20x20.png | 1.63KB | 0.87KB | ▼ 46.59% |
images/bycinvoice_create_invoice20x20.png | 1.64KB | 0.88KB | ▼ 46.64% |
images/bycinvoice_view_shipping_slip20x20.png | 1.55KB | 0.71KB | ▼ 54.33% |
images/bycinvoice_view_invoice20x20.png | 1.35KB | 0.73KB | ▼ 45.66% |