Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.03ms] Passed 4 tests
Analyzing server-side resources used by PostNL Address Validation for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.85 ▼0.71 |
Dashboard /wp-admin | 3.34 ▲0.04 | 47.88 ▲0.47 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 42.03 ▼2.35 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 80.26 ▼17.53 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 39.67 ▲5.79 |
Server storage [IO: ▲0.66MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for PostNL Address Validation for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲31 | 14.35 ▼0.00 | 1.76 ▲0.17 | 43.17 ▲3.43 |
Dashboard /wp-admin | 2,201 ▲20 | 5.62 ▼0.04 | 98.00 ▼1.44 | 44.84 ▲2.66 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 2.02 ▲0.08 | 36.23 ▲0.59 | 35.25 ▼2.92 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 17.97 ▼4.69 | 617.47 ▼30.53 | 73.54 ▲19.30 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.19 ▼0.03 | 98.30 ▼10.16 | 42.91 ▼3.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'PostNL\\AddressValidation\\API\\AbstractAPI' not found in wp-content/plugins/postnl-address-validation-for-woocommerce/include/classes/PostNL/AddressValidation/API/PostNLAPI.php:14
- > PHP Fatal error
Uncaught Error: Class 'PostNL\\AddressValidation\\API\\AbstractAPI' not found in wp-content/plugins/postnl-address-validation-for-woocommerce/languages/include/classes/PostNL/AddressValidation/API/PostNLAPI.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: postnl, address validation, woocommerce, delivery
postnl-address-validation-for-woocommerce/postnl-wc-address-validation.php 77% from 13 tests
The main PHP file in "PostNL Address Validation for WooCommerce" ver. 1.0.8 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: The description should be shorter than 140 characters (currently 176 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("postnl-address-validation-for-woocommerce.php" instead of "postnl-wc-address-validation.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,859 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 311 | 553 | 1,305 |
JavaScript | 3 | 65 | 193 | 373 |
PO File | 1 | 48 | 63 | 136 |
JSON | 2 | 2 | 0 | 44 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 13.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 2.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 2 | 14.29% |
▷ Concrete classes | 12 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 131 | |
▷ Static methods | 9 | 6.87% |
▷ Public methods | 128 | 97.71% |
▷ Protected methods | 2 | 1.53% |
▷ Private methods | 1 | 0.76% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.15MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1..png | 37.26KB | 28.33KB | ▼ 23.98% |
assets/screenshot-4..png | 29.70KB | 18.03KB | ▼ 39.30% |
assets/screenshot-3..png | 42.34KB | 31.90KB | ▼ 24.66% |
assets/screenshot-2.png | 40.04KB | 29.99KB | ▼ 25.11% |