Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼2.97ms] Passed 4 tests
Analyzing server-side resources used by Store Locator for WordPress📍
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 39.46 ▲3.38 |
Dashboard /wp-admin | 3.43 ▲0.13 | 48.42 ▼1.55 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 44.06 ▼0.92 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.12 | 79.29 ▼8.34 |
Media Library /wp-admin/upload.php | 3.36 ▲0.12 | 35.61 ▼1.07 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Store Locator for WordPress📍
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,055 ▲309 | 14.44 ▼0.12 | 1.75 ▲0.26 | 43.58 ▲6.46 |
Dashboard /wp-admin | 2,461 ▲286 | 5.57 ▼0.16 | 84.55 ▼44.77 | 82.52 ▲42.78 |
Posts /wp-admin/edit.php | 2,366 ▲266 | 2.15 ▲0.18 | 37.42 ▼0.01 | 39.42 ▲4.69 |
Add New Post /wp-admin/post-new.php | 1,756 ▲230 | 24.05 ▲0.97 | 700.58 ▼7.08 | 93.81 ▲39.47 |
Media Library /wp-admin/upload.php | 1,669 ▲269 | 4.21 ▲0.09 | 101.79 ▼1.61 | 82.48 ▲37.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant STLR_DIR_URL - assumed 'STLR_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/storelocator/settings.php on line 27
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/storelocator/settings.php:34
- > PHP Warning
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)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: store locator, business locations, maps, store finder, map markers...
storelocator/storelocator.php 92% from 13 tests
The entry point to "Store Locator for WordPress📍" version 1.1.5 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 161 characters long)
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 detected738 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 172 | 64 | 625 |
CSS | 1 | 1 | 0 | 113 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
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 | 18 | |
▷ Named functions | 16 | 88.89% |
▷ Anonymous functions | 2 | 11.11% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
storelocator-logo.png | 18.79KB | 10.42KB | ▼ 44.56% |