Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼12.11ms] Passed 4 tests
Analyzing server-side resources used by GazChap's WooCommerce getAddress.io Postcode Lookup
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 36.72 ▲0.34 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.77 ▼15.99 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 41.38 ▼7.05 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 78.64 ▼23.28 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.41 ▼2.12 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for GazChap's WooCommerce getAddress.io Postcode Lookup
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲18 | 14.17 ▼0.09 | 1.79 ▼0.09 | 39.53 ▲0.55 |
Dashboard /wp-admin | 2,195 ▲18 | 5.50 ▼0.17 | 79.47 ▼5.26 | 37.13 ▼5.45 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.05 | 35.00 ▼4.39 | 31.83 ▼2.20 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.54 ▲0.59 | 687.55 ▲50.23 | 53.20 ▼1.46 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.10 ▼0.10 | 99.24 ▲1.19 | 45.52 ▲0.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: ecommerce, address lookup, woocommerce, postcode lookup, wales...
gazchaps-woocommerce-getaddress-io/index.php 77% from 13 tests
This is the main PHP file of "GazChap's WooCommerce getAddress.io Postcode Lookup" version 3.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.8.0" instead of "3.0.0")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gazchaps-woocommerce-getaddress-io.php" instead of "index.php")
- Domain Path: The domain path folder does not exist ("/lang")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected693 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 136 | 56 | 691 |
JavaScript | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 11.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 17 | 35.42% |
▷ Public methods | 44 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 8.33% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 8 | |
▷ Global constants | 2 | 25.00% |
▷ Class constants | 6 | 75.00% |
▷ Public constants | 6 | 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
There were not PNG files found in your plugin