Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- Install procedure had errors
- > Warning in wp-content/plugins/fs-store-locator/fssl-store-locator.php+15
include(wp-content/plugins/fs-store-locator\includes\fssl-admin-function.php): failed to open stream: No such file or directory
Server metrics [RAM: ▼1.93MB] [CPU: ▼46.50ms] Passed 4 tests
Server-side resources used by Store Locator
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.41 | 4.63 ▼32.33 |
Dashboard /wp-admin | 2.08 ▼1.23 | 5.69 ▼37.54 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 6.96 ▼36.83 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 6.64 ▼79.30 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 4.94 ▼31.95 |
Server storage [IO: ▲1.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Store Locator
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,765 ▲30 | 14.45 ▲0.15 | 1.74 ▲0.05 | 50.95 ▲14.42 |
Dashboard /wp-admin | 2,193 ▲4 | 5.77 ▲0.86 | 96.57 ▼25.37 | 39.24 ▼7.74 |
Posts /wp-admin/edit.php | 1,252 ▼837 | 1.95 ▼0.07 | 36.64 ▲0.18 | 33.03 ▲1.77 |
Add New Post /wp-admin/post-new.php | 1,540 ▲26 | 23.27 ▲5.72 | 630.77 ▼29.54 | 59.98 ▲6.89 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.23 ▲0.04 | 95.43 ▼9.22 | 42.83 ▲0.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/fs-store-locator/fssl-store-locator.php+15
include(wp-content/plugins/fs-store-locator\includes\fssl-admin-function.php): failed to open stream: No such file or directory
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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 take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/fs-store-locator/fssl-store-locator.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function fssl_country() in wp-content/plugins/fs-store-locator/includes/template/fssl-map.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/fs-store-locator/includes/template/admin/fssl-store-form.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/fs-store-locator/includes/template/admin/fssl-stores-setting.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: store locator, locate your store on map
fs-store-locator/fssl-store-locator.php 77% from 13 tests
The primary PHP file in "Store Locator" version 1.0.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 256 characters long)
- 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 ("fs-store-locator.php" instead of "fssl-store-locator.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin2,433 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 104 | 64 | 1,009 |
JavaScript | 5 | 207 | 110 | 974 |
PHP | 8 | 102 | 46 | 449 |
JSON | 1 | 0 | 0 | 1 |
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.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 | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.21MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/search-icon.png | 3.75KB | 1.56KB | ▼ 58.42% |
assets/img/Screenshot_1.png | 145.29KB | 54.92KB | ▼ 62.20% |
assets/img/Screenshot_3.png | 32.53KB | 14.00KB | ▼ 56.97% |
assets/img/Screenshot_4.png | 15.74KB | 7.80KB | ▼ 50.43% |
assets/img/search-icon-mobile.png | 3.87KB | 1.20KB | ▼ 68.88% |