Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.65ms] Passed 4 tests
Server-side resources used by GLS Netherlands Shipping for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.50 ▼8.18 |
Dashboard /wp-admin | 3.32 ▼0.02 | 54.64 ▼5.48 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 49.00 ▼3.53 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 86.60 ▼17.42 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.18 ▲1.40 |
Server storage [IO: ▲0.92MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 231 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for GLS Netherlands Shipping for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.28 ▼0.02 | 1.80 ▼0.28 | 44.63 ▼0.54 |
Dashboard /wp-admin | 2,198 ▲18 | 5.66 ▼0.06 | 84.50 ▼9.17 | 39.09 ▼2.24 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.01 ▼0.05 | 38.54 ▼3.18 | 33.42 ▼5.36 |
Add New Post /wp-admin/post-new.php | 1,546 ▲14 | 23.50 ▲0.24 | 686.36 ▲59.48 | 47.71 ▼2.91 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.11 ▼0.13 | 106.93 ▲1.47 | 45.57 ▼2.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 50% 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 8× PHP files output text when accessed directly:
- > /wp-content/plugins/gls-woocommerce/vendor/setasign/fpdf/tutorial/tuto5.php
- > /wp-content/plugins/gls-woocommerce/vendor/setasign/fpdf/tutorial/tuto3.php
- > /wp-content/plugins/gls-woocommerce/vendor/setasign/fpdf/tutorial/tuto1.php
- > /wp-content/plugins/gls-woocommerce/vendor/setasign/fpdf/tutorial/makefont.php
- > /wp-content/plugins/gls-woocommerce/vendor/setasign/fpdf/tutorial/tuto6.php
- > /wp-content/plugins/gls-woocommerce/vendor/setasign/fpdf/tutorial/tuto2.php
- > /wp-content/plugins/gls-woocommerce/vendor/setasign/fpdf/tutorial/tuto4.php
- > /wp-content/plugins/gls-woocommerce/vendor/setasign/fpdf/tutorial/tuto7.php
- 48× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\FpdiException' not found in wp-content/plugins/gls-woocommerce/vendor/setasign/fpdi/src/PdfReader/PdfReaderException.php:19
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/gls-woocommerce/vendor/setasign/fpdf/makefont/ttfparser.php on line 382
- > PHP Fatal error
Uncaught Error: Class 'GLS_Delivery_Option' not found in wp-content/plugins/gls-woocommerce/includes/options/class-gls-option-s9.php:33
- > PHP Fatal error
Uncaught Error: Class 'WC_Frontend_Scripts' not found in wp-content/plugins/gls-woocommerce/includes/class-gls-frontend-scripts.php:33
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/gls-woocommerce/vendor/setasign/fpdi/src/PdfParser/Type/PdfString.php:19
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Filter\\FilterException' not found in wp-content/plugins/gls-woocommerce/vendor/setasign/fpdi/src/PdfParser/Filter/Ascii85Exception.php:17
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\CrossReference\\AbstractReader' not found in wp-content/plugins/gls-woocommerce/vendor/setasign/fpdi/src/PdfParser/CrossReference/FixedReader.php:23
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/gls-woocommerce/vendor/setasign/fpdi/src/PdfParser/Type/PdfNumeric.php:17
- > PHP Fatal error
Uncaught Error: Class 'GLS_Delivery_Option' not found in wp-content/plugins/gls-woocommerce/includes/options/class-gls-option-t17.php:33
- > PHP Fatal error
Uncaught Error: Interface 'GlsApiCallInterface' not found in wp-content/plugins/gls-woocommerce/includes/api/class-gls-api-get-delivery-options.php:33
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: netherlands, label, woocommerce, checkout, pdf...
gls-woocommerce/gls-woocommerce.php 85% from 13 tests
The main PHP file in "GLS Netherlands Shipping for WooCommerce" ver. 1.5.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.6" instead of "3.8.1")
- Description: Please don't use more than 140 characters for the plugin description (currently 161 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected14,563 lines of code in 194 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 116 | 1,678 | 4,871 | 9,661 |
HTML | 59 | 72 | 0 | 3,240 |
JavaScript | 2 | 93 | 97 | 447 |
PO File | 1 | 154 | 174 | 405 |
CSS | 6 | 73 | 49 | 325 |
JSON | 5 | 0 | 0 | 260 |
Markdown | 4 | 71 | 0 | 211 |
SVG | 1 | 0 | 1 | 14 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 15.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 337.00 |
Average method complexity | 3.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 3 | |
Traits | 2 | |
Classes | 86 | |
▷ Abstract classes | 3 | 3.49% |
▷ Concrete classes | 83 | 96.51% |
▷ Final classes | 1 | 1.20% |
Methods | 550 | |
▷ Static methods | 94 | 17.09% |
▷ Public methods | 432 | 78.55% |
▷ Protected methods | 77 | 14.00% |
▷ Private methods | 41 | 7.45% |
Functions | 29 | |
▷ Named functions | 21 | 72.41% |
▷ Anonymous functions | 8 | 27.59% |
Constants | 70 | |
▷ Global constants | 5 | 7.14% |
▷ Class constants | 65 | 92.86% |
▷ Public constants | 65 | 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
3 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/gls-logo.png | 3.15KB | 1.66KB | ▼ 47.32% |
vendor/setasign/fpdf/tutorial/logo.png | 2.32KB | 2.26KB | ▼ 2.57% |
assets/images/tig-logo.png | 10.54KB | 7.40KB | ▼ 29.79% |