Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.26ms] Passed 4 tests
Analyzing server-side resources used by Location Picker
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.17 ▼2.90 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.73 ▼2.13 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.67 ▼1.94 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 87.67 ▼19.91 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 30.58 ▼4.10 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Location Picker
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,903 ▲142 | 15.55 ▲1.20 | 46.56 ▲44.83 | 40.48 ▲2.66 |
Dashboard /wp-admin | 2,192 ▲15 | 5.61 ▲0.05 | 92.19 ▲2.45 | 41.79 ▲2.39 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.98 ▲0.03 | 39.58 ▼2.33 | 35.24 ▼0.92 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 18.42 ▼4.53 | 589.71 ▼63.37 | 67.74 ▲15.41 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.18 ▼0.00 | 95.44 ▼17.64 | 40.47 ▼8.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- 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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/location-picker/location-picker.php:18
- > 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 83% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Tags: You are using too many tags: 14 tag instead of maximum 10
location-picker/location-picker.php 69% from 13 tests
The principal PHP file in "Location Picker" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
- Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
- Description: Keep the plugin description shorter than 140 characters (currently 232 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected431 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 173 | 58 | 340 |
JavaScript | 1 | 19 | 4 | 91 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
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 | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.40MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
logo.png | 10.78KB | 5.51KB | ▼ 48.85% |
screenshot-2.png | 51.09KB | 24.23KB | ▼ 52.57% |
screenshot-3.png | 135.99KB | 52.75KB | ▼ 61.21% |
screenshot-1.png | 67.00KB | 31.52KB | ▼ 52.95% |
screenshot-4.png | 140.72KB | 54.07KB | ▼ 61.58% |