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: ▼4.94ms] Passed 4 tests
Analyzing server-side resources used by ELEX WooCommerce Address Validation & Google Address Autocomplete Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.91 ▼0.01 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.68 ▼0.21 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.07 ▼5.77 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 81.44 ▼13.76 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 36.75 ▲1.12 |
Server storage [IO: ▲1.16MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ELEX WooCommerce Address Validation & Google Address Autocomplete Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲74 | 14.27 ▼0.08 | 1.65 ▼0.09 | 40.09 ▲0.12 |
Dashboard /wp-admin | 2,205 ▲25 | 5.62 ▲0.01 | 84.61 ▼3.87 | 39.93 ▲4.10 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 1.99 ▼0.00 | 36.07 ▼3.11 | 34.60 ▲0.33 |
Add New Post /wp-admin/post-new.php | 1,436 ▼99 | 22.34 ▲4.26 | 563.44 ▼56.13 | 31.84 ▼32.63 |
Media Library /wp-admin/upload.php | 1,404 ▲10 | 4.13 ▼0.06 | 93.82 ▼5.38 | 45.30 ▲0.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/address-validation-address-auto-complete/review_and_troubleshoot_notify/resources/logo.php
- > /wp-content/plugins/address-validation-address-auto-complete/includes/html-wf-device-address-validation.php
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined variable: device in wp-content/plugins/address-validation-address-auto-complete/includes/html-wf-device-address-validation.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/address-validation-address-auto-complete/includes/market.php:111
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/address-validation-address-auto-complete/review_and_troubleshoot_notify/resources/troubleshoot.php:57
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/address-validation-address-auto-complete/includes/api/easypost-api.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/address-validation-address-auto-complete/review_and_troubleshoot_notify/resources/review.php:56
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Donate link: Invalid URI ("")
address-validation-address-auto-complete/class-wf-address-autocomplete-validation.php 77% from 13 tests
The entry point to "ELEX WooCommerce Address Validation & Google Address Autocomplete Plugin" version 1.7.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("address-validation-address-auto-complete.php" instead of "class-wf-address-autocomplete-validation.php")
- Plugin Name: Keep the plugin name shorter than 70 characters (currently 85 characters long)
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.0.1" instead of "2.6.0")
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
Success! There were no dangerous files found in this plugin13,115 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 10 | 6 | 9,483 |
PHP | 12 | 192 | 250 | 1,785 |
PO File | 2 | 266 | 298 | 950 |
JavaScript | 2 | 62 | 72 | 897 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 2 | 4.88% |
▷ Public methods | 41 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 5 | 71.43% |
▷ Anonymous functions | 2 | 28.57% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.67MB with 0.50MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assests/img/easy_post.png | 138.94KB | 38.02KB | ▼ 72.63% |
assests/img/address_validation.png | 92.01KB | 25.03KB | ▼ 72.79% |
assests/img/wsdesk.png | 161.93KB | 43.90KB | ▼ 72.89% |
assests/img/dhl.png | 60.09KB | 12.00KB | ▼ 80.03% |
assests/img/dynamic_pricing.png | 90.78KB | 22.92KB | ▼ 74.75% |