Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.61ms] Passed 4 tests
This is a short check of server-side resources used by Hopewiser Address Lookup
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.50 ▼0.56 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.86 ▼0.24 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 43.06 ▼1.02 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 90.18 ▼8.60 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.82 ▲0.22 |
Hopewiser /wp-admin/options-general.php?page=HPWPlugin | 3.28 | 32.55 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Hopewiser Address Lookup
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,934 ▲173 | 13.55 ▼1.00 | 10.09 ▲8.48 | 37.97 ▼2.83 |
Dashboard /wp-admin | 2,203 ▲28 | 5.56 ▼0.15 | 81.21 ▼17.76 | 35.89 ▼7.73 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.01 ▲0.04 | 33.95 ▼0.43 | 33.72 ▼2.42 |
Add New Post /wp-admin/post-new.php | 1,542 ▲14 | 18.20 ▼5.14 | 591.34 ▼2.48 | 69.96 ▲20.94 |
Media Library /wp-admin/upload.php | 1,418 ▲15 | 4.32 ▲0.21 | 104.28 ▼1.30 | 45.47 ▼2.82 |
Hopewiser /wp-admin/options-general.php?page=HPWPlugin | 839 | 1.92 | 25.56 | 27.85 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
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
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/hopewiser-address-lookup/includes/woocommerce/hpw-woo-autocomplete.php
- > /wp-content/plugins/hopewiser-address-lookup/includes/hpw-admin-menu-shortcode.php
- > /wp-content/plugins/hopewiser-address-lookup/includes/woocommerce/hpw-woo-intl-addrlookup.php
- 17× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/hopewiser-address-lookup/includes/hpw-admin-menu-forms.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function submit_button() in wp-content/plugins/hopewiser-address-lookup/includes/hpw-admin-menu-general.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/hopewiser-address-lookup/includes/woocommerce/hpw-woo-addresses.php:4
- > PHP Notice
Undefined variable: httpServer in wp-content/plugins/hopewiser-address-lookup/includes/woocommerce/hpw-woo-intl-addrlookup.php on line 73
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/hopewiser-address-lookup/includes/hpw-admin-menu-woocommerce.php:5
- > PHP Notice
Undefined variable: hpwOptions in wp-content/plugins/hopewiser-address-lookup/includes/woocommerce/hpw-woo-autocomplete.php on line 93
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/hopewiser-address-lookup/includes/gravity-forms/gravity-forms.php:57
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/hopewiser-address-lookup/includes/woocommerce/hpw-woo-autocomplete.php on line 93
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hopewiser-address-lookup/includes/contact-form-7/contact-form-7.php:63
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/hopewiser-address-lookup/includes/woocommerce/hpw-woo-intl-addrlookup.php on line 72
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 96% 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
9 plugin tags: address validation, postcode, address verification, autocomplete, address...
hopewiser-address-lookup/main.php 92% from 13 tests
This is the main PHP file of "Hopewiser Address Lookup" version 2.0.4, 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:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hopewiser-address-lookup.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,531 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 304 | 217 | 1,521 |
JavaScript | 6 | 0 | 6 | 6 |
CSS | 4 | 1 | 5 | 4 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 41 | |
▷ Named functions | 41 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin