Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼3.56ms] Passed 4 tests
A check of server-side resources used by what3words Address Field
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 37.11 ▼3.65 |
Dashboard /wp-admin | 3.44 ▲0.14 | 47.22 ▼5.04 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 50.64 ▲3.01 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 94.18 ▼7.80 |
Media Library /wp-admin/upload.php | 3.37 ▲0.13 | 37.69 ▲2.27 |
Server storage [IO: ▲0.60MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
w3w_autosuggest_settings |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for what3words Address Field
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,965 ▲204 | 13.49 ▼0.89 | 10.06 ▲8.51 | 44.81 ▲4.61 |
Dashboard /wp-admin | 2,253 ▲73 | 5.66 ▼0.10 | 86.69 ▼6.38 | 43.33 ▲1.74 |
Posts /wp-admin/edit.php | 2,155 ▲55 | 2.00 ▲0.02 | 41.74 ▲7.25 | 36.95 ▼3.16 |
Add New Post /wp-admin/post-new.php | 1,564 ▲38 | 18.56 ▼4.72 | 628.11 ▼4.99 | 69.30 ▲13.57 |
Media Library /wp-admin/upload.php | 1,458 ▲58 | 4.24 ▲0.00 | 101.88 ▼4.30 | 45.00 ▲0.63 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- w3w_autosuggest_settings
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% from 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
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/3-word-address-validation-field/public/partials/w3w-autosuggest-checkout-page.php
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/3-word-address-validation-field/admin/partials/w3w-autosuggest-advanced.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/3-word-address-validation-field/admin/partials/w3w-autosuggest-admin-display.php:15
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/3-word-address-validation-field/admin/partials/w3w-autosuggest-settings.php:5
- > PHP Notice
Undefined variable: words in wp-content/plugins/3-word-address-validation-field/admin/partials/add-address-to-order-page.php on line 15
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/3-word-address-validation-field/admin/partials/add-admin-notice.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/3-word-address-validation-field/admin/partials/add-address-to-order-page.php:20
- > PHP Fatal error
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 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: search, searchbox, address, validation, autosuggest...
3-word-address-validation-field/w3w-autosuggest.php 85% from 13 tests
The main PHP file in "what3words Address Field" ver. 4.0.8 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("3-word-address-validation-field.php" instead of "w3w-autosuggest.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Success! There were no dangerous files found in this plugin2,024 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 247 | 631 | 1,295 |
JavaScript | 2 | 71 | 146 | 580 |
CSS | 4 | 16 | 20 | 77 |
SVG | 2 | 2 | 1 | 72 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 12.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 2 | 5.71% |
▷ Public methods | 29 | 82.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 17.14% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.14MB with 0.09MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/phone-mockup.png | 145.85KB | 55.19KB | ▼ 62.16% |