Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼173.97ms] Passed 4 tests
Server-side resources used by StoreRocket Store Locator
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.06 | 45.92 ▲4.64 |
Dashboard /wp-admin | 3.13 ▲0.07 | 39.27 ▼13.60 |
Posts /wp-admin/edit.php | 3.24 ▲0.13 | 54.40 ▲1.69 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.05 | 102.69 ▼681.95 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 37.81 ▼2.02 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
StoreRocket Store Locator: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,731 ▲135 | 15.80 ▲0.35 | 8.91 ▼5.90 | 50.65 ▼1.82 |
Dashboard /wp-admin | 3,012 ▲78 | 5.92 ▼0.03 | 146.81 ▼6.15 | 140.38 ▲20.92 |
Posts /wp-admin/edit.php | 2,809 ▲70 | 2.75 ▲0.03 | 79.48 ▲10.08 | 90.34 ▼7.96 |
Add New Post /wp-admin/post-new.php | 1,720 ▲37 | 18.06 ▲1.81 | 515.16 ▲102.37 | 117.98 ▼11.36 |
Media Library /wp-admin/upload.php | 1,875 ▲68 | 5.01 ▼0.02 | 152.50 ▼17.51 | 143.49 ▲15.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/storerocket-store-locator/trunk/includes/templates/public/embed-code.php
- > /wp-content/plugins/storerocket-store-locator/includes/templates/public/embed-code.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant WP_STOREROCKET_DIR_URL - assumed 'WP_STOREROCKET_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/storerocket-store-locator/trunk/includes/templates/admin/settings.php on line 25
- > PHP Warning
Use of undefined constant WP_STOREROCKET_DIR_URL - assumed 'WP_STOREROCKET_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/storerocket-store-locator/includes/templates/admin/settings.php on line 25
- > PHP Fatal error
Uncaught Error: Call to undefined function WPStoreRocket\\settings_fields() in wp-content/plugins/storerocket-store-locator/trunk/includes/templates/admin/settings.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function WPStoreRocket\\settings_fields() in wp-content/plugins/storerocket-store-locator/includes/templates/admin/settings.php:34
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Donate link: Invalid url: ""
- Screenshots: These screenshots lack descriptions #2, #3 in storerocket-store-locator/assets to your readme.txt
storerocket-store-locator/wp-storerocket.php 85% from 13 tests
The main file in "StoreRocket Store Locator" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("storerocket-store-locator.php" instead of "wp-storerocket.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected318 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 87 | 152 | 288 |
CSS | 1 | 2 | 0 | 18 |
JavaScript | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 2.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 8 | 19.05% |
▷ Public methods | 40 | 95.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.76% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
trunk/assets/img/storerocket_icon.png | 0.76KB | 0.79KB | 0.00% |
assets/img/storerocket_icon.png | 0.76KB | 0.79KB | 0.00% |