Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼141.57ms] Passed 4 tests
This is a short check of server-side resources used by AZEXO Store Locator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.22 ▲0.50 | 38.40 ▲15.39 |
Dashboard /wp-admin | 3.17 ▲0.12 | 39.42 ▼4.34 |
Posts /wp-admin/edit.php | 3.22 ▲0.11 | 44.03 ▲3.79 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.03 | 86.84 ▼566.37 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 33.84 ▲0.65 |
Server storage [IO: ▲2.37MB] [DB: ▲0.04MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 76 new files
Database: no new tables, 3 new options
New WordPress options |
---|
azt-settings |
azt-item-fields |
azt-demo-imported |
Browser metrics Passed 4 tests
Checking browser requirements for AZEXO Store Locator
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,946 ▲350 | 18.82 ▲3.28 | 62.14 ▲51.77 | 59.77 ▲9.63 |
Dashboard /wp-admin | 2,992 ▲55 | 6.00 ▲0.03 | 137.54 ▼9.36 | 45.00 ▼73.27 |
Posts /wp-admin/edit.php | 2,758 ▲19 | 2.71 ▼0.01 | 64.83 ▼1.63 | 41.69 ▼48.86 |
Add New Post /wp-admin/post-new.php | 1,519 ▼96 | 18.66 ▼2.74 | 384.85 ▲119.71 | 69.31 ▼39.88 |
Media Library /wp-admin/upload.php | 1,832 ▲25 | 5.01 ▼0.03 | 146.59 ▼0.93 | 72.84 ▼44.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.04MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 3 options in the database
- azt-demo-imported
- azt-item-fields
- azt-settings
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/azexo-store-locator/azexo-store-locator.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/azexo-store-locator/tgm/class-tgm-plugin-activation.php:2101
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azexo-store-locator/azh.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/azexo-store-locator/dashboard.php:2
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: store finder, store locator, locations, stores, braches
azexo-store-locator/azexo-store-locator.php 92% from 13 tests
"AZEXO Store Locator" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin37,878 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 3,776 | 8,623 | 19,740 |
LESS | 6 | 175 | 249 | 6,419 |
PO File | 17 | 1,449 | 1,993 | 4,842 |
PHP | 5 | 772 | 2,257 | 4,004 |
CSS | 5 | 36 | 17 | 1,247 |
Markdown | 4 | 185 | 0 | 778 |
JSON | 2 | 0 | 0 | 430 |
HTML | 1 | 0 | 0 | 418 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 73.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 204.00 |
Average method complexity | 4.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 58.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 185 | |
▷ Static methods | 6 | 3.24% |
▷ Public methods | 147 | 79.46% |
▷ Protected methods | 38 | 20.54% |
▷ Private methods | 0 | 0.00% |
Functions | 31 | |
▷ Named functions | 31 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 30 | |
▷ Global constants | 27 | 90.00% |
▷ Class constants | 3 | 10.00% |
▷ Public constants | 3 | 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
PNG images were not found in this plugin