Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼12.73ms] Passed 4 tests
Analyzing server-side resources used by PostNL for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 42.26 ▼0.11 |
Dashboard /wp-admin | 3.43 ▲0.12 | 33.48 ▼15.81 |
Posts /wp-admin/edit.php | 3.50 ▲0.13 | 34.52 ▼17.47 |
Add New Post /wp-admin/post-new.php | 5.66 ▼0.24 | 71.92 ▼17.53 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 32.53 ▲0.52 |
Server storage [IO: ▲1.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 246 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
recovery_mode_email_last_sent |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
PostNL for WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,465 ▼1,297 | 12.39 ▼2.36 | 1.87 ▲0.13 | 42.68 ▼0.03 |
Dashboard /wp-admin | 857 ▼1,321 | 1.36 ▼4.36 | 14.77 ▼95.16 | 21.48 ▼25.23 |
Posts /wp-admin/edit.php | 868 ▼1,235 | 1.51 ▼0.46 | 6.68 ▼35.45 | 19.20 ▼19.39 |
Add New Post /wp-admin/post-new.php | 594 ▼932 | 1.71 ▼21.48 | 19.06 ▼598.81 | 7.65 ▼44.37 |
Media Library /wp-admin/upload.php | 753 ▼644 | 1.71 ▼2.48 | 19.84 ▼78.83 | 19.84 ▼21.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- recovery_mode_email_last_sent
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
The following issues need your attention
- 8× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/woo-postnl/vendor/setasign/fpdf/tutorial/tuto1.php
- > /wp-content/plugins/woo-postnl/vendor/setasign/fpdf/tutorial/tuto6.php
- > /wp-content/plugins/woo-postnl/vendor/setasign/fpdf/tutorial/tuto2.php
- > /wp-content/plugins/woo-postnl/vendor/setasign/fpdf/tutorial/makefont.php
- > /wp-content/plugins/woo-postnl/vendor/setasign/fpdf/tutorial/tuto3.php
- > /wp-content/plugins/woo-postnl/vendor/setasign/fpdf/tutorial/tuto5.php
- > /wp-content/plugins/woo-postnl/vendor/setasign/fpdf/tutorial/tuto4.php
- > /wp-content/plugins/woo-postnl/vendor/setasign/fpdf/tutorial/tuto7.php
- 33× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\Tfpdf\\FpdfTpl' not found in wp-content/plugins/woo-postnl/vendor/setasign/fpdi/src/Tfpdf/Fpdi.php:24
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/woo-postnl/vendor/setasign/fpdi/src/PdfParser/Type/PdfNumeric.php:16
- > PHP Fatal error
Uncaught Error: Interface 'setasign\\Fpdi\\PdfParser\\Filter\\FilterInterface' not found in wp-content/plugins/woo-postnl/vendor/setasign/fpdi/src/PdfParser/Filter/Flate.php:16
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\FpdiException' not found in wp-content/plugins/woo-postnl/vendor/setasign/fpdi/src/PdfParser/PdfParserException.php:18
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\Tcpdf\\Fpdi' not found in wp-content/plugins/woo-postnl/vendor/setasign/fpdi/src/TcpdfFpdi.php:20
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/woo-postnl/vendor/setasign/fpdi/src/PdfParser/Type/PdfIndirectObject.php:20
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/woo-postnl/vendor/setasign/fpdi/src/PdfParser/Type/PdfStream.php:27
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\FpdfTpl' not found in wp-content/plugins/woo-postnl/vendor/setasign/fpdi/src/Fpdi.php:23
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/woo-postnl/vendor/setasign/fpdi/src/PdfParser/Type/PdfHexString.php:18
- > PHP Fatal error
Uncaught Error: Class 'tFPDF' not found in wp-content/plugins/woo-postnl/vendor/setasign/fpdi/src/Tfpdf/FpdfTpl.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% 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:
- Screenshots: Please add an image for screenshot #5 (PostNL information on the order details page)
woo-postnl/postnl-for-woocommerce.php 77% from 13 tests
The main file in "PostNL for WooCommerce" v. 5.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Requires at least: The required version number must match the one declared in readme.txt ("4.6" instead of "4.0")
- Description: The description should be shorter than 140 characters (currently 209 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-postnl.php" instead of "postnl-for-woocommerce.php")
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
Everything looks great! No dangerous files found in this plugin18,599 lines of code in 204 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 126 | 2,497 | 6,075 | 13,815 |
HTML | 59 | 72 | 0 | 3,242 |
PO File | 1 | 238 | 249 | 510 |
JavaScript | 5 | 83 | 10 | 302 |
JSON | 4 | 0 | 0 | 269 |
CSS | 4 | 47 | 0 | 235 |
Markdown | 5 | 76 | 0 | 226 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 19.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 339.00 |
Average method complexity | 3.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 27 | |
Interfaces | 2 | |
Traits | 2 | |
Classes | 89 | |
▷ Abstract classes | 5 | 5.62% |
▷ Concrete classes | 84 | 94.38% |
▷ Final classes | 0 | 0.00% |
Methods | 762 | |
▷ Static methods | 115 | 15.09% |
▷ Public methods | 652 | 85.56% |
▷ Protected methods | 102 | 13.39% |
▷ Private methods | 8 | 1.05% |
Functions | 114 | |
▷ Named functions | 20 | 17.54% |
▷ Anonymous functions | 94 | 82.46% |
Constants | 55 | |
▷ Global constants | 16 | 29.09% |
▷ Class constants | 39 | 70.91% |
▷ Public constants | 39 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/post-download-label.png | 2.51KB | 1.72KB | ▼ 31.36% |
vendor/setasign/fpdf/tutorial/logo.png | 2.32KB | 2.26KB | ▼ 2.57% |
assets/images/postnl-logo.png | 28.61KB | 13.86KB | ▼ 51.54% |
assets/images/postnl-logo-40x40.png | 4.74KB | 2.01KB | ▼ 57.53% |