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.01MB] [CPU: ▼149.01ms] Passed 4 tests
Analyzing server-side resources used by what3words Address Field
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.75 ▼0.09 | 16.19 ▼6.15 |
Dashboard /wp-admin | 3.08 ▲0.02 | 32.05 ▼3.33 |
Posts /wp-admin/edit.php | 3.17 ▲0.06 | 29.76 ▲0.52 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 69.22 ▼587.09 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 24.00 ▲2.27 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 35 new files
Database: no new tables, 1 new option
New WordPress options |
---|
w3w_autosuggest_settings |
Browser metrics Passed 4 tests
An overview of browser requirements for what3words Address Field
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,878 ▲251 | 16.44 ▲0.81 | 8.90 ▲3.67 | 75.82 ▲3.03 |
Dashboard /wp-admin | 2,993 ▲97 | 6.05 ▼0.10 | 120.19 ▼10.86 | 170.33 ▼2.86 |
Posts /wp-admin/edit.php | 2,804 ▲98 | 3.26 ▲0.01 | 62.14 ▼3.21 | 135.55 ▲4.44 |
Add New Post /wp-admin/post-new.php | 3,737 ▲2 | 18.71 ▲0.03 | 455.10 ▲25.14 | 158.49 ▼3.44 |
Media Library /wp-admin/upload.php | 1,813 ▲61 | 5.54 ▼0.01 | 164.19 ▲20.36 | 186.51 ▲5.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 1 option in the database
- w3w_autosuggest_settings
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/3-word-address-validation-field/public/partials/w3w-autosuggest-checkout-page.php
- 6× PHP files trigger errors when accessed directly with GET requests:
- > 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
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 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/w3w-autosuggest-advanced.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: autosuggest, address, 3 word address, three word address, w3w...
3-word-address-validation-field/w3w-autosuggest.php 85% from 13 tests
The primary PHP file in "what3words Address Field" version 4.0.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("3-word-address-validation-field.php" instead of "w3w-autosuggest.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,761 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 240 | 620 | 1,244 |
JavaScript | 2 | 48 | 60 | 368 |
CSS | 4 | 16 | 20 | 77 |
SVG | 2 | 2 | 1 | 72 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 11.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 3.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.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 | 34 | |
▷ Static methods | 2 | 5.88% |
▷ Public methods | 28 | 82.35% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 17.65% |
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
PNG files should be compressed to save space and minimize bandwidth usage
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% |